[FIX] stock: prevent import
Prevent import on `stock.quant` since the fields are read-only and the ACL explicitly prevent creation and edition. opw-2128053 closes odoo/odoo#41802 X-original-commit: 6a9e8faf567b9b0b508ba279405cb0ec80c7538b Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
<field eval="10" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<tree decoration-danger="inventory_quantity < 0" editable="bottom"
|
||||
create="1" edit="1" js_class="singleton_list">
|
||||
create="1" edit="1" import="0" js_class="singleton_list">
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="tracking" invisible="1"/>
|
||||
<field name="product_id" attrs="{'readonly': [('id', '!=', False)]}"
|
||||
|
||||
Reference in New Issue
Block a user