Mahamadasif Ansari 30992d8148 [FIX] l10n_it_edi: filter invoice lines whose display type is product
Currently, an exception is generated when the user selects multiple taxes
in the invoice line and runs cron "EDI : Perform web services operations"

This error is generated in V16 because the validation check failed due to old
code [1] (filtering invoice line ids that don't have a display type). Before
V16, the display_type's default value was False (see code [2]), but after the
change [1], its value was always set(also check upgrade [1]), so our filter
was not working here.

This commit fixes the above issue by filtering the invoice lines
whose display type is product.

code [1]- https://github.com/odoo/odoo/blob/c5928c900ee396ad0456ac77615facdfd73d5e78/addons/l10n_it_edi/models/account_edi_format.py#L150
code [2] - https://github.com/odoo/odoo/blob/d4614015d22e74ba4a54e6753ab567604f856fb3/addons/account/models/account_move.py#L3814-L3817
change [1]- https://github.com/odoo/odoo/commit/d8d47f9ff8554f4b39487fd2f13c153c7d6f958d#diff-78f3e1847de8ca0acf28d72a412947a549acdb08142d1dadf7646363d7972cb0R268-R280
upgdare [1]- https://github.com/odoo/upgrade/pull/3715/files#diff-d922f992286b3bd9a80f6c9e1248508a8fb23f06a47e2dba1e176b3e74846160R12

sentry-4320557982

closes odoo/odoo#130780

X-original-commit: 88ed12bb7a4a758149633feaae04b487a0d05f30
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-08-04 10:59:19 +02:00
…
2023-08-02 05:10:21 +02:00
…
…
…
…
…
…

Build Status Tech Doc Help Nightly Builds

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

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%