OCA / l10n-italy

Odoo Italian localization
https://www.odoo-italia.org
GNU Affero General Public License v3.0
142 stars 297 forks source link

FIX DdT Reference in Invoice #4124

Open Borruso opened 2 months ago

Borruso commented 2 months ago

Module

l10n_it_delivery_note

Describe the bug

Use another DdT related to sale line not in invoice.

To Reproduce

14.0:

Steps to reproduce the behavior:

  1. Create sale order with product with 50 qty
  2. Create two picking e DdT with 10 qty
  3. Select DdT and create invoice
  4. Create another two picking e DdT with 10 qty
  5. Select DdT and create invoice, in second invoice there are wrong DdT note

PR