account_invoice.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record model="ir.ui.view" id="dikasa_invoice_form">
  5. <field name="name">dikasa_invoice_form</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_form"/>
  8. <field name="arch" type="xml">
  9. <field name="partner_id" position="replace">
  10. <field name="partner_id" domain="[('customer','=',True)]" options='{"always_reload": True}'/>
  11. </field>
  12. <field name="partner_id" position="after">
  13. <field name="street"/>
  14. <field name="state_id"/>
  15. <field name="country_id"/>
  16. <field name="email"/>
  17. <field name="phone"/>
  18. <field name="mobile"/>
  19. <field name="credit_limit"/>
  20. </field>
  21. <field name="user_id" position="attributes">
  22. <attribute name="string">Vendedor</attribute>
  23. </field>
  24. <field name="user_id" position="after">
  25. <field name="create_uid" readonly="1"/>
  26. </field>
  27. </field>
  28. </record>
  29. <record model="ir.ui.view" id="dikasa_invoice_supplier_form">
  30. <field name="name">dikasa_invoice_supplier_form</field>
  31. <field name="model">account.invoice</field>
  32. <field name="inherit_id" ref="account.invoice_supplier_form"/>
  33. <field name="arch" type="xml">
  34. <field name="partner_id" position="replace">
  35. <field name="partner_id" domain="[('supplier','=',True)]" options='{"always_reload": True}'/>
  36. </field>
  37. <field name="partner_id" position="after">
  38. <field name="street"/>
  39. <field name="state_id"/>
  40. <field name="country_id"/>
  41. <field name="email"/>
  42. <field name="phone"/>
  43. <field name="mobile"/>
  44. </field>
  45. <field name="user_id" position="attributes">
  46. <attribute name="string">Vendedor</attribute>
  47. </field>
  48. <field name="user_id" position="after">
  49. <field name="create_uid" readonly="1"/>
  50. </field>
  51. </field>
  52. </record>
  53. </data>
  54. </openerp>