summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshreya thakrar <sht@odoo.com>2020-03-25 06:09:55 +0000
committerDamien Bouvy <dbo@odoo.com>2020-06-15 12:08:35 +0000
commit9a2f55f06c1fccaa01088a28c15afaeb3715aa2f (patch)
tree5277847ecd73ef2a82c6554a21b6e5ed471590c2
parent5f174f1272b7029d1001b80416a42c30df30ae20 (diff)
[FIX] stock: issue when opening view in studio
When user is in an operation. For example, a delivery, when user opens studio and click on the move line, click on edit and close studio. The result is that user can't create record anymore. By this commit, this issue has been fixed. task - 2170090 closes odoo/odoo#52101 X-original-commit: cc10d8bccada44041f62243ab4785a422f354aaa Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
-rw-r--r--addons/stock/views/stock_move_line_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/views/stock_move_line_views.xml b/addons/stock/views/stock_move_line_views.xml
index f655cde96b6..ec810483aff 100644
--- a/addons/stock/views/stock_move_line_views.xml
+++ b/addons/stock/views/stock_move_line_views.xml
@@ -125,7 +125,7 @@
<field name="type">ir.actions.act_window</field>
<field name="view_mode">tree,kanban,pivot,form</field>
<field name="view_id" ref="view_move_line_tree"/>
- <field name="context">{'search_default_done': 1, 'search_default_groupby_product_id': 1}</field>
+ <field name="context">{'search_default_done': 1, 'search_default_groupby_product_id': 1, 'create': 0}</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
There's no product move yet