This commit is contained in:
Luis 2025-10-09 10:09:32 +02:00
parent 6aec5669be
commit 7ad70064a7
9 changed files with 640 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="view_pos_order_form_inherit_backend_ticket" model="ir.ui.view">
<field name="name">pos.order.form.inherit.backend.ticket</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
<field name="arch" type="xml">
<xpath expr="//header" position="inside">
<button name="action_print_backend_ticket" type="object" string="Print Ticket" attrs="{'invisible': [('state', 'not in', ('paid','done','invoiced'))]}"/>
</xpath>
</field>
</record>
</odoo>