Monday, January 16, 2023
1 change · master
Resolved issues and error corrections
Swiss companies can now correctly invoice SEPA customers with the appropriate QR code when SEPA QR codes are enabled. The change also prevents incompatible QR code settings from being used for Swiss customers, reducing invoice creation errors and confusion.
Original PR description
Aim : Allow customer from Switzerland to emit an invoice with a QR code to a SEPA customer. Context: In Switzerland, adding an extra page containing a QR Bill is mandatory in many cases, mainly when the customer is also from Switzerland (although there are other conditions). However, activating the option 'QR Codes' in the settings (which is not linked to the QR Bill) can cause problem. For instance, it will be impossible to bill a foreign customer, because we check that the conditions are right to emit a swiss QR (which is a bug). After this commit : The new behaviour is : - Swiss user --> swiss customer: don't change the invoice, allow to create a QR Bill - SEPA option activated, swiss user --> SEPA customer : join the SEPA QR to the invoice - SEPA option activated, swiss user --> swiss customer : raise error task-3062570 Manual fw-port of https://github.com/odoo/odoo/pull/109808 X-original-commit: a9980477048e4adffda4a71a72ff1cc8490637f9