[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>
This commit is contained in:
@@ -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) -->
|
||||
|
||||
Reference in New Issue
Block a user