From 9ed4872ea03f28012118ed48a43d0800617a84f3 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Mon, 23 Sep 2019 12:26:49 +0000 Subject: [PATCH] [FIX] account: set partner_id field of account.move as not required in the view Having this field required in the view forbade the 'send for digitalization' button of account_invoice_extract to work, as it could be empty there (as the invoice was created via .create({})). The constraint defined in the view was checked before executing the code related to the button and caused everything to fail before running anything. closes odoo/odoo#37279 Signed-off-by: Laurent Smet --- addons/account/views/account_move_views.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 6d6f5fe2c9a..f89034aeaeb 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -558,7 +558,6 @@ options='{"always_reload": True, "no_quick_create": True}' attrs="{ 'invisible': [('type', 'not in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))], - 'required': [('type', 'in', ('out_invoice', 'out_refund', 'in_invoice', 'in_refund', 'out_receipt', 'in_receipt'))] }"/>