Daily updates from Odoo
Saturday, December 21, 2024
1 change
Code cleanup and technical improvements
Mexican electronic invoicing can now attach more than one addenda to an invoice and place required extra information in either the Addenda or Complemento sections. This improves compliance flexibility for businesses that need to send customer- or authority-specific XML details before government submission.
Original PR description
This commit refactors the usage of `l10n_mx_edi.addenda` to allow adding multiple addendas at once, and also to support injecting to Complemento instead of Addenda node. On top of it, we will now also be able to inject before sending to make sure the injected XML gets sent to the government. - l10n_mx_edi_addenda_id on res_partner and account_move is now l10n_mx_edi_addenda_ids (Many2many) - new fields in the addenda model to support specifying where to inject the XML, and when to inject so that it may be sent to government related-upgrade-PR: https://github.com/odoo/upgrade/pull/6862 task-id: 3894067