mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-26 19:22:04 +02:00
123 lines
5 KiB
XML
123 lines
5 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!--
|
|
Copyright (C) 2023 Akretion (http://www.akretion.com/)
|
|
@author: Mourad EL HADJ MIMOUNE <mourad.elhadj.mimoune@akretion.com>
|
|
-->
|
|
<odoo>
|
|
<record id="ecotax_classification_tree" model="ir.ui.view">
|
|
<field name="model">account.ecotax.classification</field>
|
|
<field name="arch" type="xml">
|
|
<tree decoration-muted="not active">
|
|
<field name="active" invisible="1" />
|
|
<field name="code" />
|
|
<field name="name" />
|
|
<field name="ecotax_type" />
|
|
<field
|
|
name="ecotax_coef"
|
|
attrs="{'invisible': [['ecotax_type', '!=', 'weight_based']]}"
|
|
/>
|
|
<field
|
|
name="default_fixed_ecotax"
|
|
attrs="{'invisible': [['ecotax_type', '!=', 'fixed']]}"
|
|
/>
|
|
<field name="categ_id" />
|
|
<field name="product_status" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="ecotax_classification_form" model="ir.ui.view">
|
|
<field name="model">account.ecotax.classification</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<sheet>
|
|
<widget
|
|
name="web_ribbon"
|
|
title="Archived"
|
|
bg_color="bg-danger"
|
|
attrs="{'invisible': [('active', '=', True)]}"
|
|
/>
|
|
<div class="oe_title oe_left">
|
|
<div class="oe_edit_only">
|
|
<label for="name" />
|
|
</div>
|
|
<h1>
|
|
<field name="name" default_focus="1" placeholder="Name" />
|
|
</h1>
|
|
</div>
|
|
<group name="Informations" col="4">
|
|
<field name="code" />
|
|
<field name="categ_id" />
|
|
<field name="sector_id" />
|
|
<field name="collector_id" />
|
|
<field name="product_status" />
|
|
<field name="supplier_status" />
|
|
<field name="intrastat_code" />
|
|
<field name="scale_code" />
|
|
<field name="company_id" groups="base.group_multi_company" />
|
|
<field name="active" invisible="1" />
|
|
</group>
|
|
<separator string="Ecotaxes settings" />
|
|
<group col="4" name="ecotax_settings">
|
|
<field name="ecotax_type" />
|
|
<field
|
|
name="ecotax_coef"
|
|
attrs="{'invisible': [['ecotax_type', '!=', 'weight_based']]}"
|
|
/>
|
|
<field
|
|
name="default_fixed_ecotax"
|
|
attrs="{'invisible': [['ecotax_type', '!=', 'fixed']]}"
|
|
/>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="ecotax_classification_search" model="ir.ui.view">
|
|
<field name="model">account.ecotax.classification</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Ecotaxe Classification">
|
|
<field
|
|
name="name"
|
|
filter_domain="['|', ('name','ilike',self), ('code','ilike',self)]"
|
|
string="Classification"
|
|
/>
|
|
<filter
|
|
name="fixed"
|
|
string="Fixed"
|
|
domain="[('ecotax_type','=','fixed')]"
|
|
icon="terp-camera_test"
|
|
/>
|
|
<filter
|
|
name="weight_based"
|
|
string="Weight based"
|
|
domain="[('ecotax_type','=','weight_based')]"
|
|
icon="terp-dialog-close"
|
|
/>
|
|
<group expand="0" string="Group By">
|
|
<filter
|
|
name="type"
|
|
string="Type"
|
|
context="{'group_by': 'ecotax_type'}"
|
|
icon="terp-stock_effects-object-colorize"
|
|
/>
|
|
</group>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<record id="action_ecotax_classification" model="ir.actions.act_window">
|
|
<field name="name">Ecotaxe Classification</field>
|
|
<field name="res_model">account.ecotax.classification</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="help" type="html">
|
|
<p class="oe_view_nocontent_create">
|
|
Click to start a new Ecotaxe Classification.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<menuitem
|
|
id="menu_ecotax_classification"
|
|
parent="account.account_account_menu"
|
|
action="action_ecotax_classification"
|
|
sequence="15"
|
|
/>
|
|
</odoo>
|