[FIX] purchase : correct line id for invoice origin
Steps to reproduce: 1. Create a bill from document, 2. Fill in PO in auto complete, confirm, check the bills list. 3. The source document is not populated in the list. What is the current behavior that you observe? The source document is in the log, but does not show up in the dashboard. What would be your expected behavior in this case? The PO should show up in the source document in the list OPW-3284992 closes odoo/odoo#122280 X-original-commit: e3289decaf95034f0ebba307350d3913a604eb8d Signed-off-by: William Henrotin (whe) <whe@odoo.com>
This commit is contained in:
@@ -67,7 +67,7 @@ class AccountMove(models.Model):
|
||||
)
|
||||
|
||||
# Compute invoice_origin.
|
||||
origins = set(self.line_ids.mapped('purchase_line_id.order_id.name'))
|
||||
origins = set(self.invoice_line_ids.mapped('purchase_line_id.order_id.name'))
|
||||
self.invoice_origin = ','.join(list(origins))
|
||||
|
||||
# Compute ref.
|
||||
|
||||
Reference in New Issue
Block a user