summaryrefslogtreecommitdiff
path: root/addons/account/demo
diff options
context:
space:
mode:
authorOlivier Colson <oco@odoo.com>2017-11-30 15:45:28 +0100
committerqdp-odoo <qdp@odoo.com>2017-11-30 16:08:30 +0100
commitcd5ce3c7dc84611ff42dc4e4bc89fbb85ff0ab10 (patch)
treef43f47d1d51efaabb96faa57f8f9135906b17638 /addons/account/demo
parentf38ace8de2aef173e4130f7dfd069f1040e56e3c (diff)
[IMP] account: payment terms usability
* Replace payment term lines options 'last_day_following_month' and 'last_day_current_month' by two new less specific ones allowing choosing the day directly, and thus not limited to the last one anymore (semantically different). * Rename payment term line option value 'fix_day_following_month' into 'after_invoice_month' for more clarity (no semantic change). Was task 24239. Was PR #15487
Diffstat (limited to 'addons/account/demo')
-rw-r--r--addons/account/demo/account_demo.xml12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/account/demo/account_demo.xml b/addons/account/demo/account_demo.xml
index 8f2f139f4b9..47aecbe57a6 100644
--- a/addons/account/demo/account_demo.xml
+++ b/addons/account/demo/account_demo.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
-
+
<!-- TAGS FOR RETRIEVING THE DEMO ACCOUNTS -->
<record id="demo_capital_account" model="account.account.tag">
@@ -20,22 +20,22 @@
<field name="name">Demo Coffe Machine Account</field>
</record>
<!-- Payment Terms -->
-
+
<record id="account_payment_term" model="account.payment.term">
<field name="name">End of Following Month</field>
<field name="note">Payment terms: End of Following Month</field>
- <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 0, 'option': 'last_day_following_month'})]"/>
+ <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 31, 'option': 'day_following_month'})]"/>
</record>
<record id="account_payment_term_advance" model="account.payment.term">
<field name="name">30% Advance End of Following Month</field>
<field name="note">Payment terms: 30% Advance End of Following Month</field>
- <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'percent', 'value_amount': 30.0, 'sequence': 400, 'days': 0, 'option': 'day_after_invoice_date'}),
- (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 0, 'option': 'last_day_following_month'})]"/>
+ <field name="line_ids" eval="[(5, 0), (0, 0, {'value': 'percent', 'value_amount': 30.0, 'sequence': 400, 'days': 0, 'option': 'day_after_invoice_date'}),
+ (0, 0, {'value': 'balance', 'value_amount': 0.0, 'sequence': 500, 'days': 31, 'option': 'day_following_month'})]"/>
</record>
<record id="base.user_demo" model="res.users">
- <field name="groups_id" eval="[(4,ref('account.group_account_invoice'))]"/>
+ <field name="groups_id" eval="[(4,ref('account.group_account_invoice'))]"/>
</record>
<!-- Add Payment terms on some demo partners -->