mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-24 19:42:03 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -1,9 +1,16 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field name="group_ids" eval="[(3, ref('account.group_account_manager'))]"/>
|
||||
</record>
|
||||
|
||||
<record id="base.default_user_group" model="res.groups">
|
||||
<field name="implied_ids" eval="[(4, ref('account.group_account_manager'))]"/>
|
||||
</record>
|
||||
</data>
|
||||
<data>
|
||||
|
||||
<!-- TAGS FOR RETRIEVING THE DEMO ACCOUNTS -->
|
||||
|
||||
<record id="demo_capital_account" model="account.account.tag">
|
||||
<field name="name">Demo Capital Account</field>
|
||||
</record>
|
||||
|
|
@ -19,6 +26,26 @@
|
|||
<record id="demo_office_furniture_account" model="account.account.tag">
|
||||
<field name="name">Office Furniture</field>
|
||||
</record>
|
||||
|
||||
<!-- Install the demo if demo installation is triggered manually after install without demo -->
|
||||
<function model="account.chart.template" name="_install_demo">
|
||||
<value model="res.company" search="[('chart_template', '!=', False)]"/>
|
||||
</function>
|
||||
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[]"/>
|
||||
<value>generic_coa</value>
|
||||
<value model="res.company" search="[('partner_id.country_id.code', '=', False)]"/>
|
||||
<value name="install_demo" eval="True"/>
|
||||
</function>
|
||||
|
||||
<function model="account.chart.template" name="try_loading">
|
||||
<value eval="[]"/>
|
||||
<value>generic_coa</value>
|
||||
<value model="res.company" eval="obj().env.ref('base.main_company')"/>
|
||||
<value name="install_demo" eval="True"/>
|
||||
</function>
|
||||
|
||||
<!-- Payment Terms -->
|
||||
|
||||
<record id="account_payment_term_advance" model="account.payment.term">
|
||||
|
|
@ -26,12 +53,8 @@
|
|||
<field name="note">Payment terms: 30% Advance End of Following Month</field>
|
||||
<field name="line_ids" eval="[
|
||||
Command.clear(),
|
||||
Command.create({'value': 'percent', 'value_amount': 30.0, 'days': 0}),
|
||||
Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True})]"/>
|
||||
</record>
|
||||
|
||||
<record id="base.user_demo" model="res.users">
|
||||
<field name="groups_id" eval="[(4,ref('account.group_account_invoice'))]"/>
|
||||
Command.create({'value': 'percent', 'value_amount': 30.0, 'nb_days': 0}),
|
||||
Command.create({'value': 'percent', 'value_amount': 70.0, 'delay_type': 'days_after_end_of_next_month','nb_days': 0})]"/>
|
||||
</record>
|
||||
|
||||
<!-- Add Payment terms on some demo partners -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue