[FIX] point_of_sale: prevent Order Duplication from Backend
Prior to this commit, it was possible to duplicate a PoS order from the backend. opw-3839287 closes odoo/odoo#163018 Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
This commit is contained in:
@@ -261,7 +261,7 @@
|
||||
<field name="name">pos.order.tree</field>
|
||||
<field name="model">pos.order</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="POS Orders" create="0" sample="1" decoration-info="state == 'draft'" decoration-muted="state == 'cancel'">
|
||||
<tree string="POS Orders" create="0" sample="1" decoration-info="state == 'draft'" decoration-muted="state == 'cancel'" duplicate="0">
|
||||
<field name="currency_id" column_invisible="True"/>
|
||||
<field name="name" decoration-bf="1"/>
|
||||
<field name="session_id" readonly="state != 'draft'"/>
|
||||
|
||||
Reference in New Issue
Block a user