2021-05-18 11:52:53 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-05-04 15:17:28 +02:00
|
|
|
<!--
|
|
|
|
Copyright (C) 2018 - Today: GRAP (http://www.grap.coop)
|
|
|
|
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
|
|
|
|
@author: Quentin DUPONT <quentin.dupont@grap.coop>
|
|
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
-->
|
|
|
|
<odoo>
|
|
|
|
|
|
|
|
<record id="view_account_fiscal_position_template_tree" model="ir.ui.view">
|
|
|
|
<field name="model">account.fiscal.position.template</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_position_template_tree" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<xpath expr="//tree" position="attributes">
|
|
|
|
<attribute name="decoration-muted">not active</attribute>
|
|
|
|
</xpath>
|
|
|
|
<field name="name" position="after">
|
2021-05-18 11:52:53 +02:00
|
|
|
<field name="active" widget="boolean_toggle" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="view_account_fiscal_position_template_form" model="ir.ui.view">
|
|
|
|
<field name="model">account.fiscal.position.template</field>
|
|
|
|
<field name="inherit_id" ref="account.view_account_position_template_form" />
|
|
|
|
<field name="arch" type="xml">
|
2022-11-03 23:25:22 +01:00
|
|
|
<xpath expr="//field[@name='name']/.." position="before">
|
|
|
|
<widget
|
|
|
|
name="web_ribbon"
|
|
|
|
title="Archived"
|
|
|
|
bg_color="bg-danger"
|
|
|
|
attrs=" {'invisible': [('active', '=', True)]}"
|
|
|
|
/>
|
|
|
|
</xpath>
|
2020-05-04 15:17:28 +02:00
|
|
|
<field name="chart_template_id" position="after">
|
2022-11-03 23:25:22 +01:00
|
|
|
<field name="active" invisible="1" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</field>
|
|
|
|
<xpath expr="//field[@name='tax_ids']/tree" position="attributes">
|
|
|
|
<attribute name="decoration-muted">not active</attribute>
|
|
|
|
</xpath>
|
2021-05-18 11:52:53 +02:00
|
|
|
<xpath
|
|
|
|
expr="//field[@name='tax_ids']/tree/field[@name='tax_dest_id']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field name="active" widget="boolean_toggle" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</xpath>
|
2021-05-18 11:52:53 +02:00
|
|
|
<xpath
|
|
|
|
expr="//field[@name='tax_ids']/form/field[@name='tax_dest_id']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field name="active" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</xpath>
|
2021-05-18 11:52:53 +02:00
|
|
|
<xpath
|
|
|
|
expr="//field[@name='account_ids']/tree/field[@name='account_dest_id']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field name="active" widget="boolean_toggle" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</xpath>
|
2021-05-18 11:52:53 +02:00
|
|
|
<xpath
|
|
|
|
expr="//field[@name='account_ids']/form/field[@name='account_dest_id']"
|
|
|
|
position="after"
|
|
|
|
>
|
|
|
|
<field name="active" />
|
2020-05-04 15:17:28 +02:00
|
|
|
</xpath>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2021-05-18 11:52:53 +02:00
|
|
|
<record
|
2022-11-03 23:25:22 +01:00
|
|
|
id="account_usability.account_fiscal_position_template_action"
|
2021-05-18 11:52:53 +02:00
|
|
|
model="ir.actions.act_window"
|
|
|
|
>
|
2020-05-04 15:17:28 +02:00
|
|
|
<field name="context">{"active_test": False}</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|