br_account/views/br_account_view.xml
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<menuitem id="menu_br_account" name="Brasil" parent="account.menu_finance_configuration" sequence="0"/>
<record id="view_br_account_import_declaration_line_form" model="ir.ui.view">
<field name="name">br_account.import.declaration.line.form</field>
<field name="model">br_account.import.declaration.line</field>
<field name="arch" type="xml">
<form>
<group>
<field name="sequence"/>
<field name="name"/>
<field name="manufacturer_code"/>
<field name="amount_discount"/>
<field name="drawback_number"/>
</group>
</form>
</field>
</record>
<record id="view_br_account_import_declaration_line_tree" model="ir.ui.view">
<field name="name">br_account.import.declaration.line.tree</field>
<field name="model">br_account.import.declaration.line</field>
<field name="arch" type="xml">
<tree>
<field name="sequence"/>
<field name="name"/>
<field name="manufacturer_code"/>
<field name="amount_discount"/>
<field name="drawback_number" />
</tree>
</field>
</record>
<record id="view_br_account_fiscal_document_form" model="ir.ui.view">
<field name="name">br_account.fiscal.document</field>
<field name="model">br_account.fiscal.document</field>
<field name="arch" type="xml">
<form string="Documento Fiscal">
<sheet>
<group>
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="electronic" select="2"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_br_account_fiscal_document_tree" model="ir.ui.view">
<field name="name">br_account.fiscal.document</field>
<field name="model">br_account.fiscal.document</field>
<field name="arch" type="xml">
<tree string="Documento Fiscal">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="electronic" select="2"/>
</tree>
</field>
</record>
<record id="view_br_account_document_serie_form" model="ir.ui.view">
<field name="name">br_account.document.serie</field>
<field name="model">br_account.document.serie</field>
<field name="arch" type="xml">
<form string="Serie de Documentos Fiscais">
<sheet>
<group>
<field name="code" select="1"/>
<field name="active"/>
<field name="name" select="1"/>
<field name="fiscal_document_id" select="1"/>
<field name="fiscal_type"/>
<field name="internal_sequence_id" select="1"/>
<field name="company_id"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_br_account_document_serie_tree" model="ir.ui.view">
<field name="name">br_account.document.serie</field>
<field name="model">br_account.document.serie</field>
<field name="arch" type="xml">
<tree string="Serie de Documentos Fiscais">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="fiscal_document_id" select="1"/>
<field name="company_id" select="1"/>
<field name="active" select="1"/>
</tree>
</field>
</record>
<record id="view_br_account_cnae_form" model="ir.ui.view">
<field name="name">br_account.cnae.form</field>
<field name="model">br_account.cnae</field>
<field name="arch" type="xml">
<form string="CNAE">
<sheet>
<group>
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="version" select="1"/>
<field name="internal_type" select="1"/>
<field name="parent_id"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_br_account_cnae_tree" model="ir.ui.view">
<field name="name">br_account.cnae.tree</field>
<field name="model">br_account.cnae</field>
<field name="arch" type="xml">
<tree string="CNAE">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="version" select="1"/>
<field name="parent_id" select="1"/>
</tree>
</field>
</record>
<record id="view_br_account_cnae_structure" model="ir.ui.view">
<field name="name">br_account.cnae.structure</field>
<field name="model">br_account.cnae</field>
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree string="Estrutura do CNAE">
<field name="code"/>
<field name="name"/>
<field name="version"/>
<field name="internal_type"/>
</tree>
</field>
</record>
<record id="view_br_account_service_type_form" model="ir.ui.view">
<field name="name">br_account.service.type.form</field>
<field name="model">br_account.service.type</field>
<field name="arch" type="xml">
<form string="Tipo de Serviço">
<sheet>
<group>
<field name="code"/>
<field name="name"/>
<field name="internal_type"/>
<field name="parent_id"/>
<field name="federal_nacional" />
<field name="federal_importado" />
<field name="estadual_imposto" />
<field name="municipal_imposto" />
</group>
</sheet>
</form>
</field>
</record>
<record id="view_br_account_service_type_tree" model="ir.ui.view">
<field name="name">br_account.service.type.tree</field>
<field name="model">br_account.service.type</field>
<field name="arch" type="xml">
<tree string="Tipo de Serviço">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="parent_id" select="1"/>
</tree>
</field>
</record>
<record id="view_br_account_service_type_structure" model="ir.ui.view">
<field name="name">br_account.service.type.structure</field>
<field name="model">br_account.service.type</field>
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree string="Estrutura de Tipo de Serviço">
<field name="code"/>
<field name="name"/>
<field name="internal_type"/>
</tree>
</field>
</record>
<record id="br_account_cfop_form" model="ir.ui.view">
<field name="name">br_account.cfop.name</field>
<field name="model">br_account.cfop</field>
<field name="arch" type="xml">
<form string="CFOP">
<sheet>
<group>
<field name="code" select="1" />
<field name="name" select="1" />
<field name="small_name" select="2" />
<field name="type" select="2" />
<field name="internal_type" select="2"/>
<field name="parent_id"/>
</group>
<group string="Descrição do CFOP" colspan="4">
<field name="description" nolabel="1" colspan="4" select="2"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="br_account_cfop_search" model="ir.ui.view">
<field name="name">br_account.cfop.search</field>
<field name="model">br_account.cfop</field>
<field name="arch" type="xml">
<search string="CFOP">
<filter string="Entrada" icon="terp-accessories-archiver+" domain="[('type', '=', 'input')]" />
<filter string="Saída" icon="terp-accessories-archiver-minus" domain="[('type','=','output')]"/>
<separator orientation="vertical"/>
<field name="code"/>
<field name="name"/>
<field name="small_name"/>
<newline/>
<group expand='0' string='Agrupar Por...' groups="base.group_extended">
<filter string='Tipo' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
</group>
</search>
</field>
</record>
<record id="br_account_cfop_tree" model="ir.ui.view">
<field name="name">br_account.cfop.tree</field>
<field name="model">br_account.cfop</field>
<field name="arch" type="xml">
<tree string="CFOP">
<field name="code" select="1"/>
<field name="name" select="1" />
<field name="type" select="2"/>
</tree>
</field>
</record>
<record id="br_account_cfop_structure" model="ir.ui.view">
<field name="name">br_account.cfop.structure</field>
<field name="model">br_account.cfop</field>
<field name="field_parent">child_ids</field>
<field name="arch" type="xml">
<tree string="Estrutura do CFOP">
<field name="code"/>
<field name="name"/>
<field name="internal_type"/>
</tree>
</field>
</record>
<record id="br_account_fiscal_observation_form" model="ir.ui.view">
<field name="name">br_account.fiscal.observation.form</field>
<field name="model">br_account.fiscal.observation</field>
<field name="arch" type="xml">
<form string="Observações Fiscais">
<group>
<field name="name" />
<field name="document_id"/>
<field name="tipo"/>
</group>
<group string="Mensagem a ser destacada no documento eletrônico">
<field name="message" nolabel="1" placeholder="Utilize ${invoice.origin} para campos dinâmicos"/>
</group>
</form>
</field>
</record>
<record id="br_account_fiscal_observation_tree" model="ir.ui.view">
<field name="name">br_account.fiscal.observation.tree</field>
<field name="model">br_account.fiscal.observation</field>
<field name="arch" type="xml">
<tree string="Observações Fiscais">
<field name="sequence" widget="handle"/>
<field name="name"/>
<field name="document_id"/>
</tree>
</field>
</record>
<record id="view_br_account_fiscal_category_form" model="ir.ui.view">
<field name="name">br_account.fiscal.category.form</field>
<field name="model">br_account.fiscal.category</field>
<field name="arch" type="xml">
<form string="Categoria Fiscal">
<sheet>
<group>
<field name="name"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="view_br_account_fiscal_category_tree" model="ir.ui.view">
<field name="name">br_account.fiscal.category.tree</field>
<field name="model">br_account.fiscal.category</field>
<field name="arch" type="xml">
<tree string="Categoria Fiscal">
<field name="name" />
</tree>
</field>
</record>
<record id="br_account_cfop_action" model="ir.actions.act_window">
<field name="name">CFOP</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.cfop</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="br_account_cfop_tree"/>
</record>
<record id="br_account_cfop_structure_action" model="ir.actions.act_window">
<field name="name">Estrutura do CFOP</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.cfop</field>
<field name="view_type">tree</field>
<field name="domain">[('parent_id','=',False)]</field>
<field name="view_id" ref="br_account_cfop_structure"/>
</record>
<record id="action_br_account_fiscal_document_form" model="ir.actions.act_window">
<field name="name">Documento Fiscal</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.fiscal.document</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_br_account_fiscal_document_tree"/>
</record>
<record id="action_br_account_document_serie_form" model="ir.actions.act_window">
<field name="name">Document Serie</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.document.serie</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_br_account_document_serie_tree"/>
</record>
<record id="action_br_account_cnae_form" model="ir.actions.act_window">
<field name="name">CNAE</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.cnae</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_br_account_cnae_tree"/>
</record>
<record id="action_br_account_cnae_structure" model="ir.actions.act_window">
<field name="name">Estrutura do CNAE</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.cnae</field>
<field name="view_type">tree</field>
<field name="domain">[('parent_id','=',False)]</field>
<field name="view_id" ref="view_br_account_cnae_structure"/>
</record>
<record id="action_br_account_service_type_form" model="ir.actions.act_window">
<field name="name">Tipo de Serviço</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.service.type</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_br_account_service_type_tree"/>
</record>
<record id="action_br_account_service_type_structure" model="ir.actions.act_window">
<field name="name">Estrutura de Tipo de Serviço</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.service.type</field>
<field name="view_type">tree</field>
<field name="domain">[('parent_id','=',False)]</field>
<field name="view_id" ref="view_br_account_service_type_structure"/>
</record>
<record id="action_br_account_fiscal_category" model="ir.actions.act_window">
<field name="name">Fiscal Category</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">br_account.fiscal.category</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_br_account_fiscal_category_tree"/>
</record>
<menuitem id="menu_br_account_fiscal_manager" name="Cadastros" parent="menu_br_account" sequence="0"/>
<menuitem id="br_account_cfop_menu" name="CFOP" parent="br_account.menu_br_account_fiscal_manager" action="br_account_cfop_action" sequence="10" />
<menuitem id="br_account_cfop_structure_menu" name="Estrutura do CFOP" parent="br_account.menu_br_account_fiscal_manager" action="br_account_cfop_structure_action" sequence="20" />
<menuitem id="menu_action_cnae_form" name="CNAE" parent="menu_br_account_fiscal_manager" action="action_br_account_cnae_form" sequence="30" />
<menuitem id="menu_action_cnae_structure" name="Estrutura do CNAE" parent="menu_br_account_fiscal_manager" action="action_br_account_cnae_structure" sequence="40" />
<menuitem id="menu_action_service_type_form" name="Tipo de Serviço" parent="menu_br_account_fiscal_manager" action="action_br_account_service_type_form" sequence="50" />
<menuitem id="menu_action_service_type_structure" name="Estrutura de Tipo de Serviço" parent="menu_br_account_fiscal_manager" action="action_br_account_service_type_structure" sequence="60" />
<menuitem id="menu_action_br_account_fiscal_document_form" name="Documento Fiscal" parent="menu_br_account" action="action_br_account_fiscal_document_form"/>
<menuitem id="menu_action_document_serie_form" name="Serie de Documento Fiscal" parent="menu_br_account" action="action_br_account_document_serie_form"/>
<menuitem id="menu_action_fiscal_category_form" name="Categoria Fiscal" parent="br_account.menu_br_account_fiscal_manager" action="action_br_account_fiscal_category"/>
</odoo>