You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.1 KiB

  1. <openerp>
  2. <data>
  3. <record model="ir.ui.view" id="beesdoo_purchase_order_form_view">
  4. <field name="name">beesdoo.purchase.order.form.view</field>
  5. <field name="model">purchase.order</field>
  6. <field name="inherit_id" ref="purchase.purchase_order_form" />
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='date_planned']/../../div" position="attributes">
  9. <attribute name="invisible">1</attribute>
  10. </xpath>
  11. <xpath expr="//label[@for='date_planned']" position="attributes">
  12. <attribute name="invisible">1</attribute>
  13. </xpath>
  14. <xpath expr="//tree/field[@name='date_planned']" position="attributes">
  15. <attribute name="invisible">1</attribute>
  16. </xpath>
  17. <field name="date_order" position="after">
  18. <field name="manual_date_planned" attrs="{'readonly': [('state', 'not in', ('draft', 'sent'))]}" />
  19. </field>
  20. </field>
  21. </record>
  22. </data>
  23. </openerp>