summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroco-odoo <oco@odoo.com>2019-09-23 12:26:49 +0000
committeroco-odoo <oco@odoo.com>2019-09-23 12:26:49 +0000
commit9ed4872ea03f28012118ed48a43d0800617a84f3 (patch)
treee79ceda4daea94022764a1b62cc5b7456ca84b86
parentac4fc6e7c7d71c3f8e2440a8ed8095c5aab15dd8 (diff)
[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 <smetl@users.noreply.github.com>
-rw-r--r--addons/account/views/account_move_views.xml1
1 files changed, 0 insertions, 1 deletions
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'))]
}"/>
<!-- Invoice payment terms (only invoices) + due date (only invoices / receipts) -->