| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227 |
- <?xml version="1.0" encoding="utf-8"?>
- <odoo>
- <data>
- <record id="account_cfdi_view_tree" model="ir.ui.view">
- <field name="name">account_cfdi_view_tree</field>
- <field name="model">account.cfdi</field>
- <field name="arch" type="xml">
- <list string="Complementos CFDI">
- <header>
- <button name="action_done" string="Procesar" type="object" class="btn btn-primary"/>
- <button name="download_massive_xml_zip" string="Descargar XML" type="object"
- class="btn btn-secondary"/>
- <button name="download_massive_pdf_zip" string="Descargar PDF" type="object"
- class="btn btn-secondary"/>
- </header>
- <field name="name"/>
- <field name="date"/>
- <field name="emitter_id"/>
- <field name="receiver_id"/>
- <field name="uuid"/>
- <field name="serie"/>
- <field name="folio"/>
- <field name="move_id"/>
- <field name="cfdi_type"/>
- <field name="subtotal"/>
- <field name="total"/>
- <field name="state" widget="badge" decoration-success="state == 'done'"
- decoration-muted="state == 'cancel'" decoration-info="state == 'draft'"/>
- <field name="sat_state" width="badge" decoration-success="sat_state == 'valid'"
- decoration-danger="sat_state == 'cancelled'" decoration-warning="sat_state == 'not_found'"
- decoration-info="sat_state == 'none'" decoration-bf="sat_state == 'undefined'"/>
- </list>
- </field>
- </record>
- <record id="account_cfdi_view_form" model="ir.ui.view">
- <field name="name">account_cfdi_view_form</field>
- <field name="model">account.cfdi</field>
- <field name="arch" type="xml">
- <form string="Complementos CFDI">
- <header>
- <button name="action_done" default_focus="1" string="Procesar" icon="fa-gear" type="object"
- class="btn btn-primary" invisible="cfdi_type not in ('SI','I','SE') or (cfdi_type in ('SI','I','SE') and state != 'draft')"
- />
- <button name="action_unlink_move" default_focus="1" string="Desvincular" type="object"
- class="btn btn-secondary" invisible="cfdi_type not in ('SI','I','SE') or (cfdi_type in ('SI','I','SE') and state != 'done')"
- />
- <field name="state" widget="statusbar"/>
- </header>
- <sheet>
- <div>
- <h1>
- <field name="name" readonly="1"/>
- </h1>
- </div>
- <group col="3">
- <group string="Complemento">
- <field name="uuid" readonly="1"/>
- <field name="cfdi_type" readonly="1"/>
- <field name="attachment_id" readonly="1"/>
- <field name="pdf_id" readonly="1"/>
- <field name="date" readonly="1"/>
- <field name="emitter_id" options="{'no_create': True, 'no_create_edit':True}"
- readonly="1"/>
- <field name="receiver_id" options="{'no_create': True, 'no_create_edit':True}"
- readonly="1"/>
- <field name="version" readonly="1"/>
- <field name="serie" readonly="1"/>
- <field name="folio" readonly="1"/>
- </group>
- <group string="Detalle">
- <field name="payment_method" readonly="1"/>
- <field name="certificate_number" readonly="1"/>
- <field name="payment_condition" readonly="1"/>
- <field name="subtotal" readonly="1"/>
- <field name="tax_total"/>
- <field name="total" readonly="1"/>
- <field name="currency" readonly="1"/>
- <field name="cfdi_type" readonly="1"/>
- <field name="payment_type" readonly="1"/>
- <field name="location" readonly="1"/>
- <field name="move_id" readonly="1"/>
- <field name="company_id" readonly="1"/>
- </group>
- <group string="Contable">
- <field name="journal_id" options="{'no_create':True}"
- domain="[('type','in',('purchase','sale'))]"/>
- <field name="payable_account_id" options="{'no_create':True}"/>
- <field name="account_id" options="{'no_create':True}"/>
- <field name="account_analytic_account_id" invisible="1"/>
- <field string="Distribución analítica" name="analytic_distribution"
- widget="analytic_distribution"
- groups="analytic.group_analytic_accounting"
- optional="show"
- options="{'product_field': 'product_tmpl_id', 'account_field': 'account_id', 'force_applicability': 'optional'}"
- />
- <field name="fiscal_position_id" options="{'no_create':True}"/>
- <field name="tax_iva_id" options="{'no_create':True}"/>
- <field name="tax_isr_id" options="{'no_create':True}"/>
- </group>
- </group>
- <notebook>
- <page string="Conceptos/Impuestos">
- <group string="Conceptos">
- <field name="concept_ids" colspan="2" nolabel="1">
- <list string="Conceptos" create="false" delete="false" editable="top">
- <field name="description"/>
- <field name="no_identification" optional="hide"/>
- <field name="product_tmpl_id" string="Producto"
- options="{'no_create':True}"/>
- <field name="account_id" options="{'no_create':True}"/>
- <field name="product_code"/>
- <field invisible="1" name="account_analytic_account_id"/>
- <field string="Distribución analítica" name="analytic_distribution"
- widget="analytic_distribution"
- groups="analytic.group_analytic_accounting"
- optional="show"
- options="{'product_field': 'product_tmpl_id', 'account_field': 'account_id', 'force_applicability': 'optional'}"
- />
- <field name="quantity" sum="quantity"/>
- <field name="uom_code"/>
- <field name="unit_price" sum="unit_price"/>
- <field name="discount" sum="Total"/>
- <field name="amount" sum="amount"/>
- </list>
- </field>
- </group>
- <group string="Impuestos">
- <field name="tax_ids" colspan="2" nolabel="1">
- <list string="Impuestos" editable="bottom" create="0" delete="0">
- <field name="base" readonly="1"/>
- <field name="code" readonly="1"/>
- <field name="factor_type" readonly="1"/>
- <field name="rate" readonly="1"/>
- <field name="amount" sum="Total" readonly="1"/>
- <field name="tax_id" options="{'no_create':True}"/>
- </list>
- </field>
- </group>
- </page>
- <page string="Addenda" name="addenda_page" invisible="1">
- <group name="addenda_group">
- <field name="delivery_number"/>
- <field name="invoice_qty"/>
- </group>
- </page>
- </notebook>
- </sheet>
- <chatter/>
- </form>
- </field>
- </record>
- <record id="account_cfdi_view_search" model="ir.ui.view">
- <field name="name">account_cfdi_view_search</field>
- <field name="model">account.cfdi</field>
- <field name="arch" type="xml">
- <search>
- <field name="company_id" groups="base.group_multi_company" optional="show"/>
- <field name="uuid"/>
- <field name="serie"/>
- <field name="folio"/>
- <field name="cfdi_type"/>
- <field name="date"/>
- <field name="emitter_id"/>
- <field name="receiver_id"/>
- <field name="move_id"/>
- <field name="journal_id"/>
- <filter name="facturas_clientes" string="Facturas de clientes"
- domain="[('cfdi_type','=','I')]"/>
- <filter name="facturas_proveedor" string="Facturas de proveedor"
- domain="[('cfdi_type','=','SI')]"/>
- <filter name="notas_credito_clientes" string="Notas de crédito de clientes"
- domain="[('cfdi_type','=','E')]"/>
- <filter name="notas_credito_proveedor" string="Notas de crédito de proveedor"
- domain="[('cfdi_type','=','SE')]"/>
- <filter name="rep_clientes" string="REP de clientes" domain="[('cfdi_type','=','P')]"/>
- <filter name="rep_proveedor" string="REP de proveedor" domain="[('cfdi_type','=','SP')]"/>
- <filter name="nomina_empleados" string="Nómina de empleados"
- domain="[('cfdi_type','=','N')]"/>
- <filter name="nomina_propia" string="Nómina propia" domain="[('cfdi_type','=','SN')]"/>
- <filter name="facturas_traslado_clientes" string="Facturas de traslado de clientes"
- domain="[('cfdi_type','=','T')]"/>
- <filter name="facturas_traslado_proveedor" string="Facturas de traslado de proveedor"
- domain="[('cfdi_type','=','ST')]"/>
- <separator orientation="vertical"/>
- <filter name="state_draft" string="Por procesar" domain="[('state','=','draft')]"/>
- <filter name="state_done" string="Procesados" domain="[('state','=','done')]"/>
- <filter name="state_cancel" string="Anulados" domain="[('state','=','cancel')]"/>
- <separator orientation="vertical"/>
- <group expand="0" string="Agrupar por">
- <filter name="groupby_company" string="Empresa" domain="" context="{'group_by':'company_id'}"/>
- <separator orientation="vertical"/>
- <filter name="groupby_tipo_de_comprobante" string="Tipo de comprobante"
- context="{'group_by':'cfdi_type'}"/>
- <separator orientation="vertical"/>
- <filter name="groupby_fecha" string="Fecha" domain="" context="{'group_by':'date'}"/>
- <separator orientation="vertical"/>
- <filter name="groupby_emisor" string="Emisor" domain=""
- context="{'group_by':'emitter_id'}"/>
- <filter name="groupby_receptor" string="Receptor" context="{'group_by':'receiver_id'}"/>
- <separator orientation="vertical"/>
- <filter name="groupby_version" string="Versión" domain="" context="{'group_by':'version'}"/>
- <filter name="groupby_metodo_pago" string="Método de pago"
- context="{'group_by':'payment_method'}"/>
- <filter name="groupby_moneda" string="Moneda" domain="" context="{'group_by':'currency'}"/>
- <separator orientation="vertical"/>
- </group>
- </search>
- </field>
- </record>
- <record id="account_cfdi_action" model="ir.actions.act_window">
- <field name="name">Complementos CFDI</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">account.cfdi</field>
- <field name="view_mode">list,form</field>
- </record>
- <menuitem id="account_cfdi_action_parent_menu" parent="accountant.menu_accounting" sequence="10"
- name="SAT"/>
- <menuitem action="account_cfdi_action" id="menu_action_boveda_fiscal_cfdi"
- parent="custom_sat_connection.account_cfdi_action_parent_menu" sequence="100"
- name="Complementos CFDI"/>
- </data>
- </odoo>
|