[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:
Nicolas Martinelli
2019-12-12 12:37:45 +00:00
parent 6cbfdbce2d
commit a0fc349f04
+1 -1
View File
@@ -76,7 +76,7 @@
<field eval="10" name="priority"/>
<field name="arch" type="xml">
<tree decoration-danger="inventory_quantity &lt; 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)]}"