Skip to Content
Menu

POS Hide Create Invoice Button

by
Odoo
v 17.0 Third Party 248
Download for v 17.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Point of Sale (point_of_sale)
Discuss (mail)
Inventory (stock)
Invoicing (account)
Lines of code 36
Technical Name pos_hide_create_invoice_button
LicenseLGPL-3
Versions 16.0 17.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Point of Sale (point_of_sale)
Discuss (mail)
Inventory (stock)
Invoicing (account)
Lines of code 36
Technical Name pos_hide_create_invoice_button
LicenseLGPL-3
Versions 16.0 17.0

POS Hide Create Invoice Button

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Works!
by
Daniel Chuc
on 12/2/24, 7:05 PM

It works,

Only in the "Refund" part an additional method is needed

For those who need it, it maintains the functionality.

Loaded in src/xml and added to the manifest with that route

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
​<t t-inherit="point_of_sale.InvoiceButton" t-inherit-mode="extension">
​<xpath expr="//button[@t-ref='invoice-button']" position="replace">
​<t t-if="!pos.config.invoice_visibility">
​<button class="control-button btn btn-light rounded-0 fw-bolder" t-on-click="() => this.click()" t-ref="invoice-button">
​​<i class="fa fa-file-pdf-o me-1"></i>
​<span> </span>
​<span><t t-esc="commandName"></t></span>
​</button>
​</t>
</xpath>
​</t>
</templates>

There are no comments yet!