503ed1420c4f4641ebc997fc7d0ca70f0ffcc3c2
Current behaviour: Currently when settling an account in a POS session, in Saudi Arabia, there is QR code on the receipt and a title "Simplified Tax Invoice", which should not be present on settlement Expected behaviour: Receipts generated from a settlement in Saudi Arabia localisation shouldn't generate a QR code and a tax title. Steps to reproduce: - install the modules: `l10n_sa`, `l10n_sa_pos`, `settle_due` - Switch to the Saudi Arabia company - Enter POS and create at least 2 payment method: - Cash: Identify Customer = false, Journal = Cash - Customer Balance: Identify Customer = true, Journal = empty - Create a new POS Session, just add "Customer Balance" to payment methods, the rest of settings are as default (might need to add "Customer Invoices" to the journal of the session) - Start a new session, find a customer with some "Amount Due" and click on the value, choose one of the payment methods - On the payment screen choose "Customer Balance", now you should have 2 payment lines, one is the payment methods for settling, the other is the customer balance with a negative value. - When validating, the receipt has a QR code and Invoice title, when it shouldn't. Reason for the problem: There is currently no state that differentiate between a normal order and a settlement. Fix: Implement a settlement state (computed) in the localistation order model. Add the state to the data that goes to the templating engine. Add conditional rendering for the templates related to the QR code and the "Simplified Tax Invoice" title. Affected versions: - 15.0 - saas-15.2 - saas-15.3 - 16.0 - master opw-2976267 closes odoo/odoo#102853 X-original-commit: 0b04230d3c5e7fc1bc83340ec2fca9cf646cbc60 Signed-off-by: Piryns Victor (pivi) <pivi@odoo.com> Signed-off-by: Masereel Pierre <pim@odoo.com>
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%