From 0aea55ab3d9266f5f93ee417d85643e3918f766e Mon Sep 17 00:00:00 2001 From: jvm-odoo Date: Mon, 21 Oct 2019 13:22:43 +0000 Subject: [PATCH] [FIX] stock: fix delivery slip serial number creation In deliveries slips, you can directly create a new serial number. If you have multiples companies, a field "company" appears. But if you have only one company, it doesn't appears and there is no default value for it. As the field is required, it returns an error "Company field required". Before this commit: - The company_id field in stock_production_lot model does not have a default value. After this commit: - The company_id field has a default value which is the user current company id. OPW-2083099 closes odoo/odoo#39170 X-original-commit: 7b6d87519d3ba50688f9f49442cc3814ee427816 Signed-off-by: pimodoo --- addons/stock/views/stock_move_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/views/stock_move_views.xml b/addons/stock/views/stock_move_views.xml index bdc65247ff9..8c62fe1f15f 100644 --- a/addons/stock/views/stock_move_views.xml +++ b/addons/stock/views/stock_move_views.xml @@ -289,7 +289,7 @@ - +