account_invoice.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="account_invoice_form_view" model="ir.ui.view">
  5. <field name="name">fields_security.account.invoice.form</field>
  6. <field name="model">account.invoice</field>
  7. <field name="inherit_id" ref="account.invoice_form"/>
  8. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  9. <field name="arch" type="xml">
  10. <button name="action_invoice_sent" position="attributes">
  11. <attribute name="invisible">1</attribute>
  12. </button>
  13. <field name="fiscal_position" position="attributes">
  14. <attribute name="invisible">1</attribute>
  15. </field>
  16. <field name="account_id" position="attributes">
  17. <attribute name="invisible">1</attribute>
  18. </field>
  19. <field name="partner_bank_id" position="attributes">
  20. <attribute name="invisible">1</attribute>
  21. </field>
  22. <field name="move_id" position="attributes">
  23. <attribute name="invisible">1</attribute>
  24. </field>
  25. <field name="period_id" position="attributes">
  26. <attribute name="invisible">1</attribute>
  27. </field>
  28. <field name="tax_line" position="attributes">
  29. <attribute name="invisible">1</attribute>
  30. </field>
  31. </field>
  32. </record>
  33. <record id="account_invoice_supplier_form_view" model="ir.ui.view">
  34. <field name="name">fields_security.account.invoice.supplier.form</field>
  35. <field name="model">account.invoice</field>
  36. <field name="inherit_id" ref="account.invoice_supplier_form"/>
  37. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  38. <field name="arch" type="xml">
  39. <field name="fiscal_position" position="attributes">
  40. <attribute name="invisible">1</attribute>
  41. </field>
  42. <field name="reference_type" position="attributes">
  43. <attribute name="invisible">1</attribute>
  44. </field>
  45. <field name="date_due" position="attributes">
  46. <attribute name="invisible">1</attribute>
  47. </field>
  48. <field name="account_id" position="attributes">
  49. <attribute name="invisible">1</attribute>
  50. </field>
  51. <field name="partner_bank_id" position="attributes">
  52. <attribute name="invisible">1</attribute>
  53. </field>
  54. <field name="move_id" position="attributes">
  55. <attribute name="invisible">1</attribute>
  56. </field>
  57. <field name="period_id" position="attributes">
  58. <attribute name="invisible">1</attribute>
  59. </field>
  60. </field>
  61. </record>
  62. </data>
  63. </openerp>