Thursday, January 26, 2023
1 change · master
Enhancements to existing features
Mexican online stores can now ask customers during checkout whether they need an invoice and collect the required fiscal details when needed. If no invoice is requested, the related CFDI can be issued as a general-public invoice, reducing manual follow-up and improving compliance with local invoicing flows.
Original PR description
Allow to send a CFDI as "publico en general" by adding a field on the account.move and on the sale.order. Also add the field `l10n_mx_edi_usage` on the SO. When creating a move from a SO, the value…
Allow to send a CFDI as "publico en general" by adding a field on the account.move and on the sale.order. Also add the field `l10n_mx_edi_usage` on the SO. When creating a move from a SO, the value of these fields are copied. In addition, add an extra tab "Extra Info" on the ecommerce for the customer to indicate whether he wants an invoice or not. If he wants an invoice, ask for the fiscal regime, the usage and the tax breakdown. If he doesn't want an invoice, it means we can send the related invoice in "publico en general" mode. The extra info tab appears only if: * the company is mexican * the automatic_invoice setting is True When displaying the extra info tab, we also need to add a flag to all the templates rendered during the checkout flow (because each of them calls the wizard_checkout template, responsible for the rendering of a continuous line on top of the screen with the current step of the checkout we are at), these template's ids are: * extra_info * cart * checkout * address * payment task-3089169 https://github.com/odoo/odoo/pull/108181