summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-03-31 14:22:43 +0200
committerThibault Delavallée <tde@odoo.com>2017-05-10 17:09:29 +0200
commitdbe6aa4292dc3190987855f4b59a737503d1f7f6 (patch)
tree614e97228c8e8619289c9e3f7224f87a3a8b1e66 /addons
parent29d108601ff609b209974d4210cd869c57feb9dc (diff)
[FIX] account: finally allows to reinit the module
Otherwise a constraint is raised because new line are added to the payment term instead of recreating them from scratch. This constraint blocks people from reinitializing the module, which is quite boring when developing.
Diffstat (limited to 'addons')
-rw-r--r--addons/account/data/account_data.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/account/data/account_data.xml b/addons/account/data/account_data.xml
index e245314448a..f2bd9b1c8e8 100644
--- a/addons/account/data/account_data.xml
+++ b/addons/account/data/account_data.xml
@@ -28,7 +28,7 @@
<record id="account_payment_term_15days" model="account.payment.term">
<field name="name">15 Days</field>
<field name="note">Payment terms: 15 Days</field>
- <field name="line_ids" eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 15, 'option': 'day_after_invoice_date'})]"/>
+ <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 15, 'option': 'day_after_invoice_date'})]"/>
</record>
<record forcecreate="True" id="decimal_payment" model="decimal.precision">
@@ -39,7 +39,7 @@
<record id="account_payment_term_net" model="account.payment.term">
<field name="name">30 Net Days</field>
<field name="note">Payment terms: 30 Net Days</field>
- <field name="line_ids" eval="[(0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 30, 'option': 'day_after_invoice_date'})]"/>
+ <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 30, 'option': 'day_after_invoice_date'})]"/>
</record>
<!--