odoo
odoo copied to clipboard
[FW][FIX] l10n_latam_invoice_document: Allow digitalization
Steps to reproduce:
- Install l10n_ar module (or any l10n_* module that depends on l10n_latam_invoice_document)
- Go to Accounting -> Vendors -> Bills
- Click on Upload and select a bill file
- Open draft bill
- Click on
Send For Digitalization
Issue:
Digitalization don't start and a warning message is displayed saying that some required fields are invalid.
Cause:
When clicking on the button to digitalize the invoice, we try to save the form first before executing the action. By doing so, if some fields are required and empty, a warning message will be displayed.
In this case, the issue is with the fields Document Type and
Document Number.
Solution:
Set Document Type and Document Number to not required if there is
no partner_id set on the bill.
opw-2797444
Forward-Port-Of: odoo/odoo#98020 Forward-Port-Of: odoo/odoo#96004
Ping @nboulif, @jco-odoo This PR targets master and is the last of the forward-port chain containing:
- odoo/odoo#98113
- odoo/odoo#98104
- odoo/odoo#98095
To merge the full chain, say
@fw-bot r+
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port
@fw-bot r+