LaOsaCoop/Odoo16#14 migration pos_customer_required
This commit is contained in:
parent
b062c383d5
commit
08fca37c6d
27 changed files with 1438 additions and 0 deletions
21
pos_customer_required/views/pos_order_view.xml
Normal file
21
pos_customer_required/views/pos_order_view.xml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2004 apertoso NV - Jos DE GRAEVE <Jos.DeGraeve@apertoso.be>
|
||||
Copyright 2016 La Louve - Sylvain LE GAL <https://twitter.com/legalsylvain>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -->
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="view_pos_order_form">
|
||||
<field name="name">view.pos.order.form</field>
|
||||
<field name="model">pos.order</field>
|
||||
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="inside">
|
||||
<field name="require_customer" invisible="1" />
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='partner_id']" position="attributes">
|
||||
<attribute
|
||||
name="attrs"
|
||||
>{'readonly': [('state', '=', 'invoiced')], 'required': [('require_customer', '!=', 'no')]}</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue