[FIX] account_chart_update: Selection of operations to do now is working.
[FIX] account_chart_update: Adapted to work with inherited account chart templates. [FIX] account_chart_update: Remove required=True for chart_template_id on DB and put on screen to avoid error when removing chart templates. [FIX] account_chart_update: Change method to compare taxes of fiscal positions to match with the one comparing taxes. [FIX] account_chart_update: Change method to compare accounts of fiscal positions to match with the one comparing accounts. [IMP] account_chart_update: Wizard now shows in tree view modification notes. [IMP] account_chart_update: For new data to be created, it is marked on notes the reason for the creation (just for clarity). [IMP] account_chart_update: Tabs for operations that are not going to be performed are hidden. [IMP] account_chart_update: Some PEP8 here and there. [IMP] account_chart_update: Enhance a little the mapping searches (there's more room to improve). [IMP] account_chart_update: Now it takes into account name and description for mapping taxes.
This commit is contained in:
parent
3e5d4a173c
commit
e3de4cbc1d
File diff suppressed because it is too large
Load Diff
@ -8,9 +8,8 @@
|
|||||||
<field name="name">Update Chart of Accounts from a Chart Template
|
<field name="name">Update Chart of Accounts from a Chart Template
|
||||||
</field>
|
</field>
|
||||||
<field name="model">wizard.update.charts.accounts</field>
|
<field name="model">wizard.update.charts.accounts</field>
|
||||||
<!-- <field name="type">form</field> -->
|
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<form string="Update Chart of Accounts from a Chart Template" version="7.0">
|
<form string="Update chart of accounts from a template" version="7.0">
|
||||||
<header>
|
<header>
|
||||||
<field name="state" select="2" widget="statusbar"
|
<field name="state" select="2" widget="statusbar"
|
||||||
statusbar_visible="init,ready,done" statusbar_colors='{"ready":"blue","done":"blue"}' />
|
statusbar_visible="init,ready,done" statusbar_colors='{"ready":"blue","done":"blue"}' />
|
||||||
@ -18,14 +17,15 @@
|
|||||||
<group attrs="{'invisible':[('state','!=','init')]}">
|
<group attrs="{'invisible':[('state','!=','init')]}">
|
||||||
<h3>
|
<h3>
|
||||||
<p><center>This wizard will update your accounts, taxes and fiscal positions according to the selected chart template</center></p>
|
<p><center>This wizard will update your accounts, taxes and fiscal positions according to the selected chart template</center></p>
|
||||||
|
|
||||||
</h3>
|
</h3>
|
||||||
</group>
|
</group>
|
||||||
<group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}">
|
<group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}">
|
||||||
<field name="company_id" on_change="onchange_company_id(company_id)"
|
<field name="company_id" on_change="onchange_company_id(company_id)"
|
||||||
attrs="{'invisible':[('state','!=','init')]}" />
|
attrs="{'invisible':[('state','!=','init')]}" />
|
||||||
<field name="code_digits" attrs="{'invisible':[('state','!=','init')]}" />
|
<field name="code_digits" attrs="{'invisible':[('state','!=','init')]}" />
|
||||||
<field name="chart_template_id" attrs="{'invisible':[('state','!=','init')]}" />
|
<field name="chart_template_id"
|
||||||
|
domain="[('visible', '=', True)]"
|
||||||
|
attrs="{'invisible': [('state','!=','init')], 'required': True}"/>
|
||||||
<field name="lang" attrs="{'invisible':[('state','!=','init')]}" />
|
<field name="lang" attrs="{'invisible':[('state','!=','init')]}" />
|
||||||
</group>
|
</group>
|
||||||
<group attrs="{'invisible':[('state','!=','init')]}">
|
<group attrs="{'invisible':[('state','!=','init')]}">
|
||||||
@ -50,73 +50,45 @@
|
|||||||
<group attrs="{'invisible':[('state','!=','ready'),]}"
|
<group attrs="{'invisible':[('state','!=','ready'),]}"
|
||||||
string="Records to create/update">
|
string="Records to create/update">
|
||||||
<notebook colspan="4">
|
<notebook colspan="4">
|
||||||
<page string="Tax codes">
|
<page string="Tax codes" attrs="{'invisible': [('update_tax_code', '=', False)]}">
|
||||||
<field name="tax_code_ids">
|
<field name="tax_code_ids">
|
||||||
<tree string="Tax codes" colors="red:type=='updated'">
|
<tree string="Tax codes" colors="red:type=='updated'">
|
||||||
<field name="tax_code_id" />
|
<field name="tax_code_id" />
|
||||||
<field name="update_tax_code_id" />
|
<field name="update_tax_code_id" />
|
||||||
|
<field name="notes" readonly="1" />
|
||||||
<field name="type" invisible="1" />
|
<field name="type" invisible="1" />
|
||||||
</tree>
|
</tree>
|
||||||
<form string="Tax code" version="7.0">
|
|
||||||
<group>
|
|
||||||
<field name="tax_code_id" />
|
|
||||||
<field name="type" />
|
|
||||||
<field name="update_tax_code_id" />
|
|
||||||
<field name="notes" readonly="1" class="oe_inline" />
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
|
||||||
<page string="Taxes">
|
<page string="Taxes" attrs="{'invisible': [('update_tax', '=', False)]}">
|
||||||
<field name="tax_ids" nolabel="1">
|
<field name="tax_ids" nolabel="1">
|
||||||
<tree string="Taxes" colors="red:type=='updated'">
|
<tree string="Taxes" colors="red:type=='updated'">
|
||||||
<field name="tax_id" />
|
<field name="tax_id" />
|
||||||
<field name="update_tax_id" />
|
<field name="update_tax_id" />
|
||||||
|
<field name="notes" readonly="1"/>
|
||||||
<field name="type" invisible="1" />
|
<field name="type" invisible="1" />
|
||||||
</tree>
|
</tree>
|
||||||
<form string="Tax" version="7.0">
|
|
||||||
<group>
|
|
||||||
<field name="tax_id" />
|
|
||||||
<field name="type" />
|
|
||||||
<field name="update_tax_id" />
|
|
||||||
<field name="notes" readonly="1" class="oe_inline" />
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
<page string="Accounts">
|
<page string="Accounts" attrs="{'invisible': [('update_account', '=', False)]}">
|
||||||
<field name="account_ids" nolabel="1">
|
<field name="account_ids" nolabel="1">
|
||||||
<tree string="Accounts" colors="red:type=='updated'">
|
<tree string="Accounts" colors="red:type=='updated'">
|
||||||
<field name="account_id" />
|
<field name="account_id" />
|
||||||
<field name="update_account_id" />
|
<field name="update_account_id" />
|
||||||
|
<field name="notes" readonly="1"/>
|
||||||
<field name="type" invisible="1" />
|
<field name="type" invisible="1" />
|
||||||
</tree>
|
</tree>
|
||||||
<form string="Account" version="7.0">
|
|
||||||
<group>
|
|
||||||
<field name="account_id" />
|
|
||||||
<field name="type" />
|
|
||||||
<field name="update_account_id" />
|
|
||||||
<field name="notes" readonly="1" class="oe_inline" />
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
<page string="Fiscal positions">
|
<page string="Fiscal positions" attrs="{'invisible': [('update_fiscal_position', '=', False)]}">
|
||||||
<field name="fiscal_position_ids" nolabel="1">
|
<field name="fiscal_position_ids" nolabel="1">
|
||||||
<tree string="Fiscal positions" colors="red:type=='updated'">
|
<tree string="Fiscal positions" colors="red:type=='updated'">
|
||||||
<field name="fiscal_position_id" />
|
<field name="fiscal_position_id" />
|
||||||
<field name="update_fiscal_position_id" />
|
<field name="update_fiscal_position_id" />
|
||||||
|
<field name="notes" readonly="1" />
|
||||||
<field name="type" invisible="1" />
|
<field name="type" invisible="1" />
|
||||||
</tree>
|
</tree>
|
||||||
<form string="Fiscal position" version="7.0">
|
|
||||||
<group>
|
|
||||||
<field name="fiscal_position_id" />
|
|
||||||
<field name="type" />
|
|
||||||
<field name="update_fiscal_position_id" />
|
|
||||||
<field name="notes" readonly="1" class="oe_inline" />
|
|
||||||
</group>
|
|
||||||
</form>
|
|
||||||
</field>
|
</field>
|
||||||
</page>
|
</page>
|
||||||
|
|
||||||
@ -146,15 +118,18 @@
|
|||||||
<footer>
|
<footer>
|
||||||
<div states="init">
|
<div states="init">
|
||||||
<button name="action_find_records" string="Next" class="oe_highlight" type="object" />
|
<button name="action_find_records" string="Next" class="oe_highlight" type="object" />
|
||||||
o
|
or
|
||||||
<button special="cancel" string="Cancel" class="oe_link" />
|
<button special="cancel" string="Cancel" class="oe_link" />
|
||||||
</div>
|
</div>
|
||||||
<div states="ready">
|
<div states="ready">
|
||||||
<button name="action_init" string="Previous" type="object" />
|
<button name="action_init" string="Previous" type="object" />
|
||||||
<button name="action_update_records" string="Create/Update" type="object" class="oe_highlight" />
|
<button name="action_update_records" string="Create/Update" type="object" class="oe_highlight" />
|
||||||
o
|
or
|
||||||
<button special="cancel" string="Cancel" class="oe_link" />
|
<button special="cancel" string="Cancel" class="oe_link" />
|
||||||
</div>
|
</div>
|
||||||
|
<div states="done">
|
||||||
|
<button special="cancel" string="Close" class="oe_link" />
|
||||||
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user