58fb7c1df1b3a9c4ac76ad8984b8a173c40a5d12
Several fields in the l10n_it_edi XML template are adapted fairly often as work progresses on l10n_it_edi/l10n_it_edi_sdicoop. This refactor moves the computation of these field to the python code in _prepare_fattura_pa_export_values. The computation is done for the: (DettaglioLinee) Invoice Lines: NumeroLinea (line number), Descrizione (description), PrezzoUnitario (unit price), PrezzoTotale (line subtotal), (DatiRiepilogo) Tax Lines: Arrotondamento (tax rounding), ImponibileImporto (tax base), Imposta (tax amount). These are computed by the new functions _l10n_it_edi_prepare_line_details and _l10n_it_edi_prepare_tax_details and returned as lists of dictionaries, which are passed to the function that renders the template. The template is modified on the above fields, to reference the above dictionaries, instead of performing the computation in situ. Moving the computation of these fields to the python code has the benefit of: a) easier, more concise computation of these terms b) not requiring users to upgrade the l10n_it_edi module in order to benefit from future changes to these fields (they will only need to upgrade once). Part-of: odoo/odoo#98534
…
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%