Trust-Code/odoo-brasil

View on GitHub
br_account/views/product_view.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="br_account_product_template_form_view" model="ir.ui.view">
        <field name="name">br_account_product_template_form_view</field>
        <field name="model">product.template</field>
        <field name="inherit_id" ref="account.product_template_form_view"/>
        <field name="arch" type="xml">
            <group name="accounting" position="inside">
                <group>
                    <field name="fiscal_category_id" />
                    <field name="fiscal_type" />
                    <field name="origin" attrs="{'required': [('fiscal_type', '=', 'product')], 'invisible': [('fiscal_type', '=', 'service')]}" />
                    <field name="fiscal_classification_id" attrs="{'required': [('fiscal_type', '=', 'product')], 'invisible': [('fiscal_type', '=', 'service')]}" />
                    <field name="service_type_id" attrs="{'required': [('fiscal_type', '=', 'service')], 'invisible': [('fiscal_type', '=', 'product')]}" domain="[('internal_type', '=', 'normal')]"/>
                    <field name="cest" attrs="{'invisible': [('fiscal_type', '=', 'service')]}" />
                </group>
            </group>
            <group name="description" position="inside">
                <separator string="Mensagens Documento EletrĂ´nico" colspan="4"/>
                <field name="fiscal_observation_ids" colspan="4" nolabel="1"/>
            </group>
        </field>
    </record>

</odoo>