summaryrefslogtreecommitdiff
path: root/addons/account_check_printing/views
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-02-20 14:51:34 +0000
committerwan <wan@odoo.com>2019-04-04 10:42:41 +0000
commit3c2e3b8c5a7d073fe8f0f6d781b1ccdbc320edd0 (patch)
treede7891241dfa92f9cfc03d25428e26aff80450c6 /addons/account_check_printing/views
parent2190568d9e6fda200db6e28bf13e24fa5d3bc634 (diff)
[REF] account: simplification of payments objects
simplification of payments objects and refactoring of the code * registering payment(s) from the list of invoice now generate a single payment per invoice selected * no more abstract object for payments/payment wizard as the logic is now really simple: - group_invoices option is now removed and we never try to group payments based on the currency/customer of whatsoever (see above), - the payment amount is the full residual amount of invoice and users cannot change it anymore * partner_bank_account_id not required as soon as visible (depends on the payment method) * refactoring to name tags and allow easier inheritance via xpath part of task #1918423
Diffstat (limited to 'addons/account_check_printing/views')
-rw-r--r--addons/account_check_printing/views/account_payment_views.xml27
1 files changed, 0 insertions, 27 deletions
diff --git a/addons/account_check_printing/views/account_payment_views.xml b/addons/account_check_printing/views/account_payment_views.xml
index bbb892881e9..82a97e89edc 100644
--- a/addons/account_check_printing/views/account_payment_views.xml
+++ b/addons/account_check_printing/views/account_payment_views.xml
@@ -19,33 +19,6 @@
</field>
</record>
- <record id="view_account_payment_invoice_form_inherited" model="ir.ui.view">
- <field name="name">account.payment.invoice.form.inherited</field>
- <field name="model">account.payment</field>
- <field name="inherit_id" ref="account.view_account_payment_invoice_form" />
- <field name="arch" type="xml">
- <xpath expr="//div[@name='amount_div']" position="after">
- <field name="check_amount_in_words" attrs="{'invisible': [('payment_method_code', '!=', 'check_printing')]}"/>
- </xpath>
- </field>
- </record>
-
- <record id="view_account_payment_from_invoices_inherited" model="ir.ui.view">
- <field name="name">account.register.payments.wizard.inherited</field>
- <field name="model">account.register.payments</field>
- <field name="inherit_id" ref="account.view_account_payment_from_invoices" />
- <field name="arch" type="xml">
- <xpath expr="//div[@name='amount_div']" position="after">
- <field name="check_amount_in_words"
- attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('multi', '=', True)]}"/>
- </xpath>
- <xpath expr="//field[@name='communication']" position="after">
- <field name="check_manual_sequencing" invisible="1" readonly="1"/>
- <field name="check_number" attrs="{'invisible': ['|', ('payment_method_code', '!=', 'check_printing'), ('check_manual_sequencing', '=', False)]}"/>
- </xpath>
- </field>
- </record>
-
<record id="view_payment_check_printing_search" model="ir.ui.view">
<field name="name">account.payment.check.printing.search</field>
<field name="model">account.payment</field>