mirror of
https://github.com/bringout/oca-ocb-pos.git
synced 2026-04-25 03:22:02 +02:00
19.0 vanilla
This commit is contained in:
parent
6e54c1af6c
commit
3ca647e428
1087 changed files with 132065 additions and 108499 deletions
|
|
@ -6,8 +6,9 @@
|
|||
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='user_id']" position='replace'>
|
||||
<field string='Cashier' name="employee_id" readonly="1" attrs="{'invisible': [('employee_id','=',False)]}"/>
|
||||
<field string='Cashier' name="user_id" readonly="1" attrs="{'invisible': [('employee_id','!=',False)]}"/>
|
||||
<field name="employee_id" readonly="1" invisible="not employee_id or context.get('from_frontend')"/>
|
||||
<field name="employee_id" readonly="1" invisible="not employee_id or not context.get('from_frontend')" options="{'no_open': True}"/>
|
||||
<field name="user_id" readonly="1" invisible="employee_id"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -27,12 +28,12 @@
|
|||
</record>
|
||||
|
||||
<record id="view_pos_order_tree_inherit" model="ir.ui.view">
|
||||
<field name="name">pos.order.tree.inherit</field>
|
||||
<field name="name">pos.order.list.inherit</field>
|
||||
<field name="model">pos.order</field>
|
||||
<field name="inherit_id" ref="point_of_sale.view_pos_order_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='user_id']" position="replace">
|
||||
<field name="employee_id" widget="many2one_avatar_employee"/>
|
||||
<field name="employee_id" widget="many2one_avatar_employee" readonly="account_move or state == 'done'"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue