55b04db229b95c1e3e450e147d0474a671dddfc8
Current behaviour: When an indonesian customer buys from the POS and generates an invoice, we get an error of missing kode_transaksi of the customer, even tough it it correctly set on the invoice details of the contact. Expected behaviour: Every indonesian contact with correctly setup up invoice details, should be able to checkout from POS and generate an invoice without problems. Steps to reproduce: - Install indonesian accounting localisation, the efaktur module, POS and Contacts - Switch to the Indonesian company - Create a new Contact, add a VAT, check ID PKP, and in Invoicing fill the whole "Indonesian Taxes" section - Add a valid invoice range in the e-fakture general settings - Setup a POS Session if non is present, it's irrelevant, start a new session - Try to buy something with the new contact as customer, and generate a new invoice at checkout. - You should have a pop-up error about the "Kode Transaksi" missing. Reason for the problem: The `l10n_id_kode_transaksi` field is not present in the values used when generating the moves for the invoice. Fix: Add a compute that fetches the kode_transaksi from the partner_id linked to the move. In the meantime, we needed to inverse the readonly states logic (keeping the same behaviour) in order to avoid the compute being triggered in the constraint. Affected versions: - 14.0 - 15.0 - saas-15.2 - saas-15.3 - 16.0 - master opw-2993838 closes odoo/odoo#103457 X-original-commit: cfa43a9ccba225c84972a5d5f9443d9997bd7b31 Signed-off-by: Josse Colpaert <jco@odoo.com> Signed-off-by: Piryns Victor (pivi) <pivi@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%