mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 20:02:07 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue