2
0

pre-commit update

This commit is contained in:
OCA-git-bot 2020-03-14 11:47:13 +01:00 committed by Luis J. Salvatierra
parent 2d0280cdc3
commit 98fd1e8c65
2 changed files with 268 additions and 214 deletions

View File

@ -20,7 +20,8 @@
<div class="content-group"> <div class="content-group">
<div class="row mt16" /> <div class="row mt16" />
<div> <div>
<button string="Update chart template" <button
string="Update chart template"
name="%(action_wizard_update_chart)d" name="%(action_wizard_update_chart)d"
context="{'default_company_id': company_id}" context="{'default_company_id': company_id}"
type="action" type="action"

View File

@ -2,7 +2,6 @@
<!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com> <!-- Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). --> License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo> <odoo>
<record id="view_update_multi_chart" model="ir.ui.view"> <record id="view_update_multi_chart" model="ir.ui.view">
<field name="name">Update Chart of Accounts from a Chart Template</field> <field name="name">Update Chart of Accounts from a Chart Template</field>
<field name="model">wizard.update.charts.accounts</field> <field name="model">wizard.update.charts.accounts</field>
@ -14,7 +13,8 @@
select="2" select="2"
widget="statusbar" widget="statusbar"
statusbar_visible="init,ready,done" statusbar_visible="init,ready,done"
statusbar_colors='{"ready":"blue","done":"blue"}' /> statusbar_colors='{"ready":"blue","done":"blue"}'
/>
</header> </header>
<group attrs="{'invisible':[('state','!=','init')]}"> <group attrs="{'invisible':[('state','!=','init')]}">
<h3> <h3>
@ -27,12 +27,17 @@
</p> </p>
</h3> </h3>
</group> </group>
<group string="Chart of Accounts" attrs="{'invisible':[('state','!=','init')]}"> <group
<field name="company_id" string="Chart of Accounts"
attrs="{'invisible':[('state','!=','init')]}"
>
<field
name="company_id"
attrs="{'invisible':[('state','!=','init')]}" attrs="{'invisible':[('state','!=','init')]}"
/> />
<field name="code_digits" invisible="1" /> <field name="code_digits" invisible="1" />
<field name="chart_template_id" <field
name="chart_template_id"
domain="[('visible', '=', True)]" domain="[('visible', '=', True)]"
attrs="{'invisible': [('state','!=','init')], 'required': True}" attrs="{'invisible': [('state','!=','init')], 'required': True}"
/> />
@ -46,7 +51,10 @@
<field name="update_account" /> <field name="update_account" />
<field name="update_fiscal_position" /> <field name="update_fiscal_position" />
</group> </group>
<group string="Other options" attrs="{'invisible':[('state','!=','init')]}"> <group
string="Other options"
attrs="{'invisible':[('state','!=','init')]}"
>
<field name="continue_on_errors" /> <field name="continue_on_errors" />
<field name="recreate_xml_ids" /> <field name="recreate_xml_ids" />
</group> </group>
@ -64,7 +72,8 @@
</h5> </h5>
</group> </group>
</page> </page>
<page string="Field options" <page
string="Field options"
attrs="{'invisible': [ attrs="{'invisible': [
('update_tax', '=', False), ('update_tax', '=', False),
('update_account', '=', False), ('update_account', '=', False),
@ -78,36 +87,43 @@
</p> </p>
</h3> </h3>
<notebook> <notebook>
<page string="Taxes" <page
string="Taxes"
name="page_fields_taxes" name="page_fields_taxes"
attrs="{'invisible': [('update_tax', '=', False)]}" attrs="{'invisible': [('update_tax', '=', False)]}"
> >
<field name="tax_field_ids" <field
name="tax_field_ids"
widget="many2many_checkboxes" widget="many2many_checkboxes"
context="{'account_chart_update': True}" context="{'account_chart_update': True}"
/> />
</page> </page>
<page string="Accounts" <page
string="Accounts"
name="page_fields_accounts" name="page_fields_accounts"
attrs="{'invisible': [('update_account', '=', False)]}" attrs="{'invisible': [('update_account', '=', False)]}"
> >
<field name="account_field_ids" <field
name="account_field_ids"
widget="many2many_checkboxes" widget="many2many_checkboxes"
context="{'account_chart_update': True}" context="{'account_chart_update': True}"
/> />
</page> </page>
<page string="Fiscal positions" <page
string="Fiscal positions"
name="page_fields_fps" name="page_fields_fps"
attrs="{'invisible': [('update_fiscal_position', '=', False)]}" attrs="{'invisible': [('update_fiscal_position', '=', False)]}"
> >
<field name="fp_field_ids" <field
name="fp_field_ids"
widget="many2many_checkboxes" widget="many2many_checkboxes"
context="{'account_chart_update': True}" context="{'account_chart_update': True}"
/> />
</page> </page>
</notebook> </notebook>
</page> </page>
<page string="Matching" <page
string="Matching"
attrs="{'invisible': [ attrs="{'invisible': [
('update_tax', '=', False), ('update_tax', '=', False),
('update_account', '=', False), ('update_account', '=', False),
@ -118,12 +134,17 @@
<p>Here you can set the matching order.</p> <p>Here you can set the matching order.</p>
</h3> </h3>
<notebook> <notebook>
<page string="Taxes" <page
string="Taxes"
name="page_matching_taxes" name="page_matching_taxes"
attrs="{'invisible': [('update_tax', '=', False)]}" attrs="{'invisible': [('update_tax', '=', False)]}"
> >
<field name="tax_matching_ids"> <field name="tax_matching_ids">
<tree create="false" edit="false" default_order="sequence"> <tree
create="false"
edit="false"
default_order="sequence"
>
<field name="sequence" widget="handle" /> <field name="sequence" widget="handle" />
<field name="matching_value" /> <field name="matching_value" />
</tree> </tree>
@ -132,12 +153,17 @@
</form> </form>
</field> </field>
</page> </page>
<page string="Accounts" <page
string="Accounts"
name="page_matching_accounts" name="page_matching_accounts"
attrs="{'invisible': [('update_account', '=', False)]}" attrs="{'invisible': [('update_account', '=', False)]}"
> >
<field name="account_matching_ids"> <field name="account_matching_ids">
<tree create="false" edit="false" default_order="sequence"> <tree
create="false"
edit="false"
default_order="sequence"
>
<field name="sequence" widget="handle" /> <field name="sequence" widget="handle" />
<field name="matching_value" /> <field name="matching_value" />
</tree> </tree>
@ -146,12 +172,17 @@
</form> </form>
</field> </field>
</page> </page>
<page string="Fiscal positions" <page
string="Fiscal positions"
name="page_matching_fps" name="page_matching_fps"
attrs="{'invisible': [('update_fiscal_position', '=', False)]}" attrs="{'invisible': [('update_fiscal_position', '=', False)]}"
> >
<field name="fp_matching_ids"> <field name="fp_matching_ids">
<tree create="false" edit="false" default_order="sequence"> <tree
create="false"
edit="false"
default_order="sequence"
>
<field name="sequence" widget="handle" /> <field name="sequence" widget="handle" />
<field name="matching_value" /> <field name="matching_value" />
</tree> </tree>
@ -163,10 +194,15 @@
</notebook> </notebook>
</page> </page>
</notebook> </notebook>
<group attrs="{'invisible':[('state','!=','ready'),]}" <group
string="Records to create/update"> attrs="{'invisible':[('state','!=','ready'),]}"
string="Records to create/update"
>
<notebook colspan="4"> <notebook colspan="4">
<page string="Taxes" attrs="{'invisible': [('update_tax', '=', False)]}"> <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" />
@ -177,7 +213,10 @@
</tree> </tree>
</field> </field>
</page> </page>
<page string="Accounts" attrs="{'invisible': [('update_account', '=', False)]}"> <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" />
@ -187,9 +226,15 @@
</tree> </tree>
</field> </field>
</page> </page>
<page string="Fiscal positions" attrs="{'invisible': [('update_fiscal_position', '=', False)]}"> <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" /> <field name="notes" />
@ -197,12 +242,13 @@
</tree> </tree>
</field> </field>
</page> </page>
</notebook> </notebook>
</group> </group>
<group
<group col="4" colspan="4" col="4"
attrs="{'invisible':[('state','!=','done'),]}"> colspan="4"
attrs="{'invisible':[('state','!=','done'),]}"
>
<separator colspan="4" string="Log" /> <separator colspan="4" string="Log" />
<field name="log" colspan="4" nolabel="1" /> <field name="log" colspan="4" nolabel="1" />
<group colspan="4"> <group colspan="4">
@ -219,14 +265,23 @@
<field name="updated_fps" /> <field name="updated_fps" />
</group> </group>
</group> </group>
<footer> <footer>
<span states="init"> <span 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"
/>
</span> </span>
<span states="ready"> <span 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"
/>
</span> </span>
<span states="init,ready"> or </span> <span states="init,ready"> or </span>
<button special="cancel" string="Close" class="oe_link" /> <button special="cancel" string="Close" class="oe_link" />
@ -234,7 +289,6 @@
</form> </form>
</field> </field>
</record> </record>
<record id="action_wizard_update_chart" model="ir.actions.act_window"> <record id="action_wizard_update_chart" model="ir.actions.act_window">
<field name="name">Update chart of accounts</field> <field name="name">Update chart of accounts</field>
<field name="type">ir.actions.act_window</field> <field name="type">ir.actions.act_window</field>
@ -242,5 +296,4 @@
<field name="view_mode">form</field> <field name="view_mode">form</field>
<field name="target">new</field> <field name="target">new</field>
</record> </record>
</odoo> </odoo>