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.

28 lines
1.0 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. Copyright (C) 2004-Today Apertoso NV (<http://www.apertoso.be>)
  4. Copyright (C) 2016-Today La Louve (<http://www.lalouve.net/>)
  5. @author: Jos DE GRAEVE (<Jos.DeGraeve@apertoso.be>)
  6. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  7. The licence is in the file __manifest__.py
  8. -->
  9. <odoo>
  10. <record model="ir.ui.view" id="view_pos_order_form">
  11. <field name="name">view.pos.order.form</field>
  12. <field name="model">pos.order</field>
  13. <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
  14. <field name="arch" type="xml">
  15. <xpath expr="//sheet" position="inside">
  16. <field name="require_customer" invisible="1"/>
  17. </xpath>
  18. <xpath expr="//field[@name='partner_id']" position="attributes">
  19. <attribute name="attrs">{'readonly': [('state', '=', 'invoiced')], 'required': [('require_customer', '!=', 'no')]}</attribute>
  20. </xpath>
  21. </field>
  22. </record>
  23. </odoo>