OCA / account-invoice-reporting

Odoo Invoicing reports
GNU Affero General Public License v3.0
73 stars 221 forks source link

Amounts error in invoices grouped by delivery note #321

Open cramosh opened 5 months ago

cramosh commented 5 months ago

Module

account_invoice_report_grouped_by_picking

Describe the bug

When in an invoice grouped by delivery notes, one of the lines is divided into different delivery notes, the amount field is showing the price with taxes included instead of the taxable base, as the rest of the lines do.

To Reproduce

Affected versions: 17.0

Steps to reproduce the behavior: 1.Create an order with a product that has more than one unit. 2.Create a partial delivery note. 3.Invoice the order.

  1. Print report

Expected behavior In the printed report, the expected amount should not include taxes.

Additional context The problem seems to be that price_total is assigned where price_subtotal should be.

Module code that operates on the report:

...
cramosh commented 2 months ago

@pedrobaeza @extrememicro Do we know anything about this issue?

pedrobaeza commented 2 months ago

No