We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c2a7878 + 6ba6169 commit 98027e0Copy full SHA for 98027e0
l10n_it_reverse_charge/models/account_move.py
@@ -486,6 +486,11 @@ def generate_supplier_self_invoice(self):
486
invoice_line_vals = []
487
for inv_line in self.invoice_line_ids:
488
line_vals = inv_line.copy_data()[0]
489
+ if line_vals.get("purchase_line_id"):
490
+ # soft integration: without depending on purchase module,
491
+ # disable possible link with purchase order line,
492
+ # because self invoice must not be linked to purchase order
493
+ line_vals["purchase_line_id"] = False
494
line_vals["rc_source_line_id"] = inv_line.id
495
line_vals["move_id"] = supplier_invoice.id
496
line_vals["analytic_distribution"] = False
0 commit comments