account_cfdi.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="account_cfdi_view_tree" model="ir.ui.view">
  5. <field name="name">account_cfdi_view_tree</field>
  6. <field name="model">account.cfdi</field>
  7. <field name="arch" type="xml">
  8. <list string="Complementos CFDI">
  9. <header>
  10. <button name="action_done" string="Procesar" type="object" class="btn btn-primary"/>
  11. <button name="download_massive_xml_zip" string="Descargar XML" type="object"
  12. class="btn btn-secondary"/>
  13. <button name="download_massive_pdf_zip" string="Descargar PDF" type="object"
  14. class="btn btn-secondary"/>
  15. </header>
  16. <field name="name"/>
  17. <field name="date"/>
  18. <field name="emitter_id"/>
  19. <field name="receiver_id"/>
  20. <field name="uuid"/>
  21. <field name="serie"/>
  22. <field name="folio"/>
  23. <field name="move_id"/>
  24. <field name="cfdi_type"/>
  25. <field name="subtotal"/>
  26. <field name="total"/>
  27. <field name="state" widget="badge" decoration-success="state == 'done'"
  28. decoration-muted="state == 'cancel'" decoration-info="state == 'draft'"/>
  29. <field name="sat_state" width="badge" decoration-success="sat_state == 'valid'"
  30. decoration-danger="sat_state == 'cancelled'" decoration-warning="sat_state == 'not_found'"
  31. decoration-info="sat_state == 'none'" decoration-bf="sat_state == 'undefined'"/>
  32. </list>
  33. </field>
  34. </record>
  35. <record id="account_cfdi_view_form" model="ir.ui.view">
  36. <field name="name">account_cfdi_view_form</field>
  37. <field name="model">account.cfdi</field>
  38. <field name="arch" type="xml">
  39. <form string="Complementos CFDI">
  40. <header>
  41. <button name="action_done" default_focus="1" string="Procesar" icon="fa-gear" type="object"
  42. class="btn btn-primary" invisible="cfdi_type not in ('SI','I','SE') or (cfdi_type in ('SI','I','SE') and state != 'draft')"
  43. />
  44. <button name="action_unlink_move" default_focus="1" string="Desvincular" type="object"
  45. class="btn btn-secondary" invisible="cfdi_type not in ('SI','I','SE') or (cfdi_type in ('SI','I','SE') and state != 'done')"
  46. />
  47. <field name="state" widget="statusbar"/>
  48. </header>
  49. <sheet>
  50. <div>
  51. <h1>
  52. <field name="name" readonly="1"/>
  53. </h1>
  54. </div>
  55. <group col="3">
  56. <group string="Complemento">
  57. <field name="uuid" readonly="1"/>
  58. <field name="cfdi_type" readonly="1"/>
  59. <field name="attachment_id" readonly="1"/>
  60. <field name="pdf_id" readonly="1"/>
  61. <field name="date" readonly="1"/>
  62. <field name="emitter_id" options="{'no_create': True, 'no_create_edit':True}"
  63. readonly="1"/>
  64. <field name="receiver_id" options="{'no_create': True, 'no_create_edit':True}"
  65. readonly="1"/>
  66. <field name="version" readonly="1"/>
  67. <field name="serie" readonly="1"/>
  68. <field name="folio" readonly="1"/>
  69. </group>
  70. <group string="Detalle">
  71. <field name="payment_method" readonly="1"/>
  72. <field name="certificate_number" readonly="1"/>
  73. <field name="payment_condition" readonly="1"/>
  74. <field name="subtotal" readonly="1"/>
  75. <field name="tax_total"/>
  76. <field name="total" readonly="1"/>
  77. <field name="currency" readonly="1"/>
  78. <field name="cfdi_type" readonly="1"/>
  79. <field name="payment_type" readonly="1"/>
  80. <field name="location" readonly="1"/>
  81. <field name="move_id" readonly="1"/>
  82. <field name="company_id" readonly="1"/>
  83. </group>
  84. <group string="Contable">
  85. <field name="journal_id" options="{'no_create':True}"
  86. domain="[('type','in',('purchase','sale'))]"/>
  87. <field name="payable_account_id" options="{'no_create':True}"/>
  88. <field name="account_id" options="{'no_create':True}"/>
  89. <field name="account_analytic_account_id" invisible="1"/>
  90. <field string="Distribución analítica" name="analytic_distribution"
  91. widget="analytic_distribution"
  92. groups="analytic.group_analytic_accounting"
  93. optional="show"
  94. options="{'product_field': 'product_tmpl_id', 'account_field': 'account_id', 'force_applicability': 'optional'}"
  95. />
  96. <field name="fiscal_position_id" options="{'no_create':True}"/>
  97. <field name="tax_iva_id" options="{'no_create':True}"/>
  98. <field name="tax_isr_id" options="{'no_create':True}"/>
  99. </group>
  100. </group>
  101. <notebook>
  102. <page string="Conceptos/Impuestos">
  103. <group string="Conceptos">
  104. <field name="concept_ids" colspan="2" nolabel="1">
  105. <list string="Conceptos" create="false" delete="false" editable="top">
  106. <field name="description"/>
  107. <field name="no_identification" optional="hide"/>
  108. <field name="product_tmpl_id" string="Producto"
  109. options="{'no_create':True}"/>
  110. <field name="account_id" options="{'no_create':True}"/>
  111. <field name="product_code"/>
  112. <field invisible="1" name="account_analytic_account_id"/>
  113. <field string="Distribución analítica" name="analytic_distribution"
  114. widget="analytic_distribution"
  115. groups="analytic.group_analytic_accounting"
  116. optional="show"
  117. options="{'product_field': 'product_tmpl_id', 'account_field': 'account_id', 'force_applicability': 'optional'}"
  118. />
  119. <field name="quantity" sum="quantity"/>
  120. <field name="uom_code"/>
  121. <field name="unit_price" sum="unit_price"/>
  122. <field name="discount" sum="Total"/>
  123. <field name="amount" sum="amount"/>
  124. </list>
  125. </field>
  126. </group>
  127. <group string="Impuestos">
  128. <field name="tax_ids" colspan="2" nolabel="1">
  129. <list string="Impuestos" editable="bottom" create="0" delete="0">
  130. <field name="base" readonly="1"/>
  131. <field name="code" readonly="1"/>
  132. <field name="factor_type" readonly="1"/>
  133. <field name="rate" readonly="1"/>
  134. <field name="amount" sum="Total" readonly="1"/>
  135. <field name="tax_id" options="{'no_create':True}"/>
  136. </list>
  137. </field>
  138. </group>
  139. </page>
  140. <page string="Addenda" name="addenda_page" invisible="1">
  141. <group name="addenda_group">
  142. <field name="delivery_number"/>
  143. <field name="invoice_qty"/>
  144. </group>
  145. </page>
  146. </notebook>
  147. </sheet>
  148. <chatter/>
  149. </form>
  150. </field>
  151. </record>
  152. <record id="account_cfdi_view_search" model="ir.ui.view">
  153. <field name="name">account_cfdi_view_search</field>
  154. <field name="model">account.cfdi</field>
  155. <field name="arch" type="xml">
  156. <search>
  157. <field name="company_id" groups="base.group_multi_company" optional="show"/>
  158. <field name="uuid"/>
  159. <field name="serie"/>
  160. <field name="folio"/>
  161. <field name="cfdi_type"/>
  162. <field name="date"/>
  163. <field name="emitter_id"/>
  164. <field name="receiver_id"/>
  165. <field name="move_id"/>
  166. <field name="journal_id"/>
  167. <filter name="facturas_clientes" string="Facturas de clientes"
  168. domain="[('cfdi_type','=','I')]"/>
  169. <filter name="facturas_proveedor" string="Facturas de proveedor"
  170. domain="[('cfdi_type','=','SI')]"/>
  171. <filter name="notas_credito_clientes" string="Notas de crédito de clientes"
  172. domain="[('cfdi_type','=','E')]"/>
  173. <filter name="notas_credito_proveedor" string="Notas de crédito de proveedor"
  174. domain="[('cfdi_type','=','SE')]"/>
  175. <filter name="rep_clientes" string="REP de clientes" domain="[('cfdi_type','=','P')]"/>
  176. <filter name="rep_proveedor" string="REP de proveedor" domain="[('cfdi_type','=','SP')]"/>
  177. <filter name="nomina_empleados" string="Nómina de empleados"
  178. domain="[('cfdi_type','=','N')]"/>
  179. <filter name="nomina_propia" string="Nómina propia" domain="[('cfdi_type','=','SN')]"/>
  180. <filter name="facturas_traslado_clientes" string="Facturas de traslado de clientes"
  181. domain="[('cfdi_type','=','T')]"/>
  182. <filter name="facturas_traslado_proveedor" string="Facturas de traslado de proveedor"
  183. domain="[('cfdi_type','=','ST')]"/>
  184. <separator orientation="vertical"/>
  185. <filter name="state_draft" string="Por procesar" domain="[('state','=','draft')]"/>
  186. <filter name="state_done" string="Procesados" domain="[('state','=','done')]"/>
  187. <filter name="state_cancel" string="Anulados" domain="[('state','=','cancel')]"/>
  188. <separator orientation="vertical"/>
  189. <group expand="0" string="Agrupar por">
  190. <filter name="groupby_company" string="Empresa" domain="" context="{'group_by':'company_id'}"/>
  191. <separator orientation="vertical"/>
  192. <filter name="groupby_tipo_de_comprobante" string="Tipo de comprobante"
  193. context="{'group_by':'cfdi_type'}"/>
  194. <separator orientation="vertical"/>
  195. <filter name="groupby_fecha" string="Fecha" domain="" context="{'group_by':'date'}"/>
  196. <separator orientation="vertical"/>
  197. <filter name="groupby_emisor" string="Emisor" domain=""
  198. context="{'group_by':'emitter_id'}"/>
  199. <filter name="groupby_receptor" string="Receptor" context="{'group_by':'receiver_id'}"/>
  200. <separator orientation="vertical"/>
  201. <filter name="groupby_version" string="Versión" domain="" context="{'group_by':'version'}"/>
  202. <filter name="groupby_metodo_pago" string="Método de pago"
  203. context="{'group_by':'payment_method'}"/>
  204. <filter name="groupby_moneda" string="Moneda" domain="" context="{'group_by':'currency'}"/>
  205. <separator orientation="vertical"/>
  206. </group>
  207. </search>
  208. </field>
  209. </record>
  210. <record id="account_cfdi_action" model="ir.actions.act_window">
  211. <field name="name">Complementos CFDI</field>
  212. <field name="type">ir.actions.act_window</field>
  213. <field name="res_model">account.cfdi</field>
  214. <field name="view_mode">list,form</field>
  215. </record>
  216. <menuitem id="account_cfdi_action_parent_menu" parent="accountant.menu_accounting" sequence="10"
  217. name="SAT"/>
  218. <menuitem action="account_cfdi_action" id="menu_action_boveda_fiscal_cfdi"
  219. parent="custom_sat_connection.account_cfdi_action_parent_menu" sequence="100"
  220. name="Complementos CFDI"/>
  221. </data>
  222. </odoo>