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.

27 lines
969 B

  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 __openerp__.py
  8. -->
  9. <odoo>
  10. <record model="ir.ui.view" id="view_pos_order_form">
  11. <field name="model">pos.order</field>
  12. <field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
  13. <field name="arch" type="xml">
  14. <xpath expr="//sheet" position="inside">
  15. <field name="require_customer" invisible="1"/>
  16. </xpath>
  17. <xpath expr="//field[@name='partner_id']" position="attributes">
  18. <attribute name="attrs">{'readonly': [('state','=','invoiced')], 'required': [('require_customer','=',True)]}</attribute>
  19. </xpath>
  20. </field>
  21. </record>
  22. </odoo>