product_category_tax, configura impuestos por cada categoría de producto.
This commit is contained in:
parent
afe8319936
commit
f6023acc5a
9 changed files with 143 additions and 0 deletions
17
product_category_tax/views/product_category.xml
Normal file
17
product_category_tax/views/product_category.xml
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<odoo>
|
||||
|
||||
<record id="product_category_form_view" model="ir.ui.view">
|
||||
<field name="name">product.category.form - product_category_tax</field>
|
||||
<field name="model">product.category</field>
|
||||
<field name="inherit_id" ref="product.product_category_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="parent_id" position="after">
|
||||
<field name="sell_tax_id" class="oe_inline" widget="selection" domain="[('type_tax_use', '=', 'sale')]" />
|
||||
<field name="buy_tax_id" class="oe_inline" widget="selection" domain="[('type_tax_use', '=', 'purchase')]" />
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
27
product_category_tax/views/res_config_settings_views.xml
Normal file
27
product_category_tax/views/res_config_settings_views.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright 2018 Eficent Business and IT Consulting Services S.L.
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.product</field>
|
||||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="product.res_config_settings_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<div id="product_general_settings" position="inside">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="use_parent_categories_to_determine_taxes" />
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="use_parent_categories_to_determine_taxes"
|
||||
string="Use parent categories to determine the taxes" />
|
||||
<div class="text-muted">
|
||||
Use parent categories to determine the taxes if the category
|
||||
has no settings for the prefix.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
Loading…
Add table
Add a link
Reference in a new issue