summaryrefslogtreecommitdiff
path: root/addons/l10n_lu
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2019-08-06 07:02:07 +0000
committerwan <wan@odoo.com>2019-12-04 08:37:19 +0000
commit30cf7bc798ddede8e610001146f4a76352aa582f (patch)
treeb7be7f8370a56e20b8b43caec56e861bcf89ef61 /addons/l10n_lu
parent363959784e7ed86973c03ab91e6b1976456e5104 (diff)
[IMP] account: add account.reconcile.model.line
Task 2046908 Instead of having all the fields duplicated with second_*, we have now a o2m allowing us to * have more than 2 lines * reduce duplicated code * fix bugs and add features at only one place We also remove the computation of writeoff and suggestions from the client side as some code was 4-upled before (twice in in client and twice in server side). The logic is now only at one place. closes odoo/odoo#38119 Related: odoo/enterprise#6324 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/l10n_lu')
-rw-r--r--addons/l10n_lu/data/account_reconcile_model_template_data.xml14
1 files changed, 10 insertions, 4 deletions
diff --git a/addons/l10n_lu/data/account_reconcile_model_template_data.xml b/addons/l10n_lu/data/account_reconcile_model_template_data.xml
index c0762c77139..2aa33c598b4 100644
--- a/addons/l10n_lu/data/account_reconcile_model_template_data.xml
+++ b/addons/l10n_lu/data/account_reconcile_model_template_data.xml
@@ -3,19 +3,25 @@
<record id="bank_fees_template" model="account.reconcile.model.template">
<field name="chart_template_id" ref="lu_2011_chart_1"/>
<field name="name">Bank Fees</field>
+ <field name="rule_type">writeoff_button</field>
+ </record>
+ <record id="bank_fees_line_template" model="account.reconcile.model.line.template">
+ <field name="model_id" ref="l10n_lu.bank_fees_template"/>
<field name="account_id" ref="lu_2011_account_61333"/>
<field name="amount_type">percentage</field>
- <field name="amount">100</field>
+ <field name="amount_string">100</field>
<field name="label">Bank Fees</field>
- <field name="rule_type">writeoff_button</field>
</record>
<record id="cash_discount_template" model="account.reconcile.model.template">
<field name="chart_template_id" ref="lu_2011_chart_1"/>
<field name="name">Cash Discount</field>
+ <field name="rule_type">writeoff_button</field>
+ </record>
+ <record id="cash_discount_line_template" model="account.reconcile.model.line.template">
+ <field name="model_id" ref="l10n_lu.cash_discount_template"/>
<field name="account_id" ref="lu_2020_account_65562"/>
<field name="amount_type">percentage</field>
- <field name="amount">100</field>
+ <field name="amount_string">100</field>
<field name="label">Cash Discount</field>
- <field name="rule_type">writeoff_button</field>
</record>
</odoo>