purchase_order.xml 1.4 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="purchase_form_view" model="ir.ui.view">
  5. <field name="name">fields_security.purchase.form</field>
  6. <field name="model">purchase.order</field>
  7. <field name="inherit_id" ref="purchase.purchase_order_form"/>
  8. <field name="groups_id" eval="[(6, 0, [ref('group_restrict_fields')])]"/>
  9. <field name="arch" type="xml">
  10. <xpath expr="//form/sheet/notebook//page[@string='RFQ &amp; Bid']" position="attributes">
  11. <attribute name="attrs">{'invisible':True}</attribute>
  12. </xpath>
  13. <field name="minimum_planned_date" position="attributes">
  14. <attribute name="attrs">{'invisible':True}</attribute>
  15. </field>
  16. <field name="fiscal_position" position="attributes">
  17. <attribute name="attrs">{'invisible':True}</attribute>
  18. </field>
  19. <field name="partner_ref" position="attributes">
  20. <attribute name="attrs">{'invisible':True}</attribute>
  21. </field>
  22. <xpath expr="//field[@name='order_line']/tree//field[@name='date_planned']" position="attributes">
  23. <attribute name="invisible">1</attribute>
  24. </xpath>
  25. </field>
  26. </record>
  27. </data>
  28. </openerp>