diff options
| author | william <wan@odoo.com> | 2020-03-20 10:39:54 +0000 |
|---|---|---|
| committer | Josse Colpaert <jco@odoo.com> | 2020-03-31 16:41:23 +0000 |
| commit | d2851b203924dcb0e56e534751a552e99757971b (patch) | |
| tree | 1525abf49227ccc17d22b8bb8b9607b8b7f8ecdd /addons/l10n_ve | |
| parent | b6e2bb655b8f539053a88246040ff0689b74a934 (diff) | |
[IMP] l10n_*: add demo company
Task 2198388
When testing and demoing localization, it can but cumbersome to create a
Company with the right credentials and install the chart of account on
it.
This commit aims to shorten the process. The first version only contains
a valid vat (or similar) number, but we should add fields specific to
localization in the future so that we have a working environment as soon
as we install the localization.
change manifest
closes odoo/odoo#48102
Signed-off-by: Josse Colpaert <jco@openerp.com>
Diffstat (limited to 'addons/l10n_ve')
| -rw-r--r-- | addons/l10n_ve/__manifest__.py | 17 | ||||
| -rw-r--r-- | addons/l10n_ve/demo/demo_company.xml | 34 |
2 files changed, 44 insertions, 7 deletions
diff --git a/addons/l10n_ve/__manifest__.py b/addons/l10n_ve/__manifest__.py index 3ff1cc2493a..5f1c07726d2 100644 --- a/addons/l10n_ve/__manifest__.py +++ b/addons/l10n_ve/__manifest__.py @@ -16,15 +16,15 @@ Chart of Account for Venezuela. =============================== Venezuela doesn't have any chart of account by law, but the default -proposed in Odoo should comply with some Accepted best practices in Venezuela, +proposed in Odoo should comply with some Accepted best practices in Venezuela, this plan comply with this practices. -This module has been tested as base for more of 1000 companies, because -it is based in a mixtures of most common software in the Venezuelan -market what will allow for sure to accountants feel them first steps with +This module has been tested as base for more of 1000 companies, because +it is based in a mixtures of most common software in the Venezuelan +market what will allow for sure to accountants feel them first steps with Odoo more confortable. -This module doesn't pretend be the total localization for Venezuela, +This module doesn't pretend be the total localization for Venezuela, but it will help you to start really quickly with Odoo in this country. This module give you. @@ -34,10 +34,10 @@ This module give you. - Have basic data to run tests with community localization. - Start a company from 0 if your needs are basic from an accounting PoV. -We recomend use of account_anglo_saxon if you want valued your +We recomend use of account_anglo_saxon if you want valued your stocks as Venezuela does with out invoices. -If you install this module, and select Custom chart a basic chart will be proposed, +If you install this module, and select Custom chart a basic chart will be proposed, but you will need set manually account defaults for taxes. """, 'depends': ['account', @@ -50,4 +50,7 @@ but you will need set manually account defaults for taxes. 'data/account_tax_data.xml', 'data/account_chart_template_data.xml' ], + 'demo': [ + 'demo/demo_company.xml', + ], } diff --git a/addons/l10n_ve/demo/demo_company.xml b/addons/l10n_ve/demo/demo_company.xml new file mode 100644 index 00000000000..b3ed7fbc151 --- /dev/null +++ b/addons/l10n_ve/demo/demo_company.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="partner_demo_company_ve" model="res.partner"> + <field name="name">VE Company</field> + <field name="vat">J770023598</field> + <field name="street">a</field> + <field name="city">Maracaibo</field> + <field name="country_id" ref="base.ve"/> + + <field name="zip">4032</field> + <field name="phone">+58 412-1234567</field> + <field name="email">info@company.veexample.com</field> + <field name="website">www.veexample.com</field> + </record> + + <record id="demo_company_ve" model="res.company"> + <field name="name">VE Company</field> + <field name="partner_id" ref="partner_demo_company_ve"/> + </record> + + <function model="res.company" name="_onchange_country_id"> + <value eval="[ref('demo_company_ve')]"/> + </function> + + <function model="res.users" name="write"> + <value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/> + <value eval="{'company_ids': [(4, ref('l10n_ve.demo_company_ve'))]}"/> + </function> + + <function model="account.chart.template" name="try_loading"> + <value eval="[ref('l10n_ve.ve_chart_template_amd')]"/> + <value model="res.company" eval="obj().env.ref('l10n_ve.demo_company_ve')"/> + </function> +</odoo> |
