| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<record id="view_account_journal_pos_user_form" model="ir.ui.view"> |
| 4 |
<field name="name">account.move.pos.form.inherit</field> |
| 5 |
<field name="model">account.move</field> |
| 6 |
<field name="inherit_id" ref="account.view_move_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//div[@name='button_box']" position="inside"> |
| 9 |
<button class="oe_stat_button" |
| 10 |
name="action_view_source_pos_orders" |
| 11 |
type="object" |
| 12 |
icon="fa-pencil-square-o" |
| 13 |
invisible="pos_order_count == 0 or move_type not in ('out_invoice', 'out_refund')"> |
| 14 |
<field string="POS Orders" name="pos_order_count" widget="statinfo"/> |
| 15 |
</button> |
| 16 |
</xpath> |
| 17 |
<xpath expr="//field[@name='tax_cash_basis_origin_move_id']" position="before"> |
| 18 |
<field name="reversed_pos_order_id" readonly="True" invisible="not reversed_pos_order_id"/> |
| 19 |
</xpath> |
| 20 |
</field> |
| 21 |
</record> |
| 22 |
</odoo> |