mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
pre-commit update
This commit is contained in:
@@ -1,21 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_move_form" model="ir.ui.view">
|
||||
<field name="name">account.move.form (in account_move_line_tax_editable)</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="inherit_id" ref="account.view_move_form"/>
|
||||
<field name="inherit_id" ref="account.view_move_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='line_ids']/tree/field[@name='name']" position="after">
|
||||
<field name="is_tax_editable" invisible="1"/>
|
||||
<field name="tax_line_id" attrs="{'readonly': [('is_tax_editable', '=', False)], 'invisible': [('parent.type', '!=', 'entry')]}"/>
|
||||
<field name="tax_ids" attrs="{'readonly': [('is_tax_editable', '=', False)], 'invisible': [('parent.type', '!=', 'entry')]}"
|
||||
widget="many2many_tags"/>
|
||||
<xpath
|
||||
expr="//field[@name='line_ids']/tree/field[@name='name']"
|
||||
position="after"
|
||||
>
|
||||
<field name="is_tax_editable" invisible="1" />
|
||||
<field
|
||||
name="tax_line_id"
|
||||
attrs="{'readonly': [('is_tax_editable', '=', False)], 'invisible': [('parent.type', '!=', 'entry')]}"
|
||||
/>
|
||||
<field
|
||||
name="tax_ids"
|
||||
attrs="{'readonly': [('is_tax_editable', '=', False)], 'invisible': [('parent.type', '!=', 'entry')]}"
|
||||
widget="many2many_tags"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -1,26 +1,29 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2017 ACSONE SA/NV
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="view_move_line_form" model="ir.ui.view">
|
||||
<field name="name">account.move.line.form (in account_move_line_tax_editable)</field>
|
||||
<field
|
||||
name="name"
|
||||
>account.move.line.form (in account_move_line_tax_editable)</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_form"/>
|
||||
<field name="inherit_id" ref="account.view_move_line_form" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="tax_line_id" position="before">
|
||||
<field name="is_tax_editable" invisible="1"/>
|
||||
<field name="is_tax_editable" invisible="1" />
|
||||
</field>
|
||||
<field name="tax_line_id" position="attributes">
|
||||
<attribute name="readonly">0</attribute>
|
||||
<attribute name="attrs">{'readonly': [('is_tax_editable', '=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('is_tax_editable', '=', False)]}</attribute>
|
||||
</field>
|
||||
<field name="tax_ids" position="attributes">
|
||||
<attribute name="readonly">0</attribute>
|
||||
<attribute name="attrs">{'readonly': [('is_tax_editable', '=', False)]}</attribute>
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('is_tax_editable', '=', False)]}</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user