Thursday, June 15, 2023
1 change · master
Resolved issues and error corrections
Fixes an issue where users could not retry sending an invoice through Peppol after a previous attempt failed if the invoice XML had already been generated. The send wizard now keeps the Peppol option available and ensures the required XML is generated when Peppol sending is selected.
Original PR description
Currently: Create an invoice and send it using Peppol and make sure the PDF and the XML are well generated but Peppol failed for some reason. When opening the wizard later, the checkbox is no longer there since the XML is already generated. Fix: This commit adds `enable_peppol` to show the checkbox depending on this field, so that if there is already a ubl XML generated, we can still send an invoice via Peppol. Also, if the ubl generation is enabled but the ubl checkbox is not checked, and the user chooses to send via Peppol, we assume that the ubl XML needs to be generated as well. task-3358419 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr