mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_chart_update: Whole refactoring
* Migrated to new API. * Provided hooks for detecting changes and for adding update/create values. * Purge dead error detection code (not applying). * Use global mapping dictionaries stored on class instead of passing arguments down to top and viceversa. * Number fields computed by a function field instead of being computed by hand. * Use recordsets as indexes instead of ids to avoid repetitive browses.
This commit is contained in:
BIN
account_chart_update/static/description/icon.png
Normal file
BIN
account_chart_update/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
File diff suppressed because it is too large
Load Diff
@@ -20,12 +20,14 @@
|
||||
</h3>
|
||||
</group>
|
||||
<group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}">
|
||||
<field name="company_id" on_change="onchange_company_id(company_id)"
|
||||
attrs="{'invisible':[('state','!=','init')]}" />
|
||||
<field name="company_id"
|
||||
attrs="{'invisible':[('state','!=','init')]}"
|
||||
/>
|
||||
<field name="code_digits" attrs="{'invisible':[('state','!=','init')]}" />
|
||||
<field name="chart_template_id"
|
||||
domain="[('visible', '=', True)]"
|
||||
attrs="{'invisible': [('state','!=','init')], 'required': True}"/>
|
||||
domain="[('visible', '=', True)]"
|
||||
attrs="{'invisible': [('state','!=','init')], 'required': True}"
|
||||
/>
|
||||
<field name="lang" attrs="{'invisible':[('state','!=','init')]}" />
|
||||
</group>
|
||||
<group attrs="{'invisible':[('state','!=','init')]}">
|
||||
|
||||
Reference in New Issue
Block a user