19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:07 +01:00
parent ba20ce7443
commit 768b70e05e
2357 changed files with 1057103 additions and 712486 deletions

View file

@ -12,7 +12,7 @@
type="object"
string="Refund"
groups="account.group_account_invoice"
attrs="{'invisible': [('amount_available_for_refund', '<=', 0)]}"
invisible="amount_available_for_refund <= 0"
class="btn-secondary"/>
</xpath>
<xpath expr="//div[@name='button_box']" position="inside">
@ -20,20 +20,21 @@
type="object"
class="oe_stat_button"
icon="fa-money"
attrs="{'invisible': [('refunds_count', '=', 0)]}">
invisible="refunds_count == 0">
<field name="refunds_count" widget="statinfo" string="Refunds"/>
</button>
</xpath>
<xpath expr='//group[2]' position="inside">
<field name="source_payment_id" attrs="{'invisible': [('source_payment_id', '=', False)]}"/>
<field name="payment_transaction_id" groups="base.group_no_one" attrs="{'invisible': [('use_electronic_payment_method', '!=', True)]}"/>
<field name="source_payment_id" invisible="not source_payment_id"/>
<field name="payment_transaction_id" groups="base.group_no_one" invisible="not use_electronic_payment_method"/>
</xpath>
<field name="payment_method_line_id" position="after">
<field name="payment_method_code" invisible="1"/>
<field name="suitable_payment_token_ids" invisible="1"/>
<field name="use_electronic_payment_method" invisible="1"/>
<field name="payment_token_id" options="{'no_create': True}"
attrs="{'invisible': [('use_electronic_payment_method', '!=', True)], 'readonly': [('state', '!=', 'draft')]}"/>
invisible="not use_electronic_payment_method"
readonly="state != 'draft'"/>
</field>
</field>
</record>