diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2019-05-10 13:33:55 +0000 |
|---|---|---|
| committer | Hardik Prajapati <hpr@odoo.com> | 2019-05-15 05:00:45 +0000 |
| commit | e963aaeccae2b4b11a4664d77932327fb1105ec9 (patch) | |
| tree | 91341f3a150bffe73005a4e7afff4ce1a59b6f7e /addons/stock/views/product_views.xml | |
| parent | 43132ed5e6c05784fb9da415202c4fdb12a27f68 (diff) | |
[IMP] stock,mrp,repair,point_of_sale: remove ability to create or edit stock location on the fly
task-1958487
closes odoo/odoo#33351
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/stock/views/product_views.xml')
| -rw-r--r-- | addons/stock/views/product_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 906a14e93c9..0df68691c59 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -159,7 +159,7 @@ <field name="inherit_id" ref="product.product_search_form_view"/> <field name="arch" type="xml"> <field name="pricelist_id" position="before"> - <field name="location_id" context="{'location': self}"/> + <field name="location_id" options="{'no_create': True}" context="{'location': self}"/> <field name="warehouse_id" context="{'warehouse': self}"/> </field> </field> |
