[FIX] sale: paylink does'nt work
if partner_id is diff than partner_invoice_id on sale.order. https://github.com/odoo/odoo/blob/16.0/addons/sale/controllers/portal.py#L346 - go to runbot - create a sale.order - set partner_invoice_id != partner_id - create a link go to the link --> error closes odoo/odoo#121905 X-original-commit: 811ed2fb763155abbaba29e8c9193166a9cc34cc Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
committed by
Victor Feyens
parent
4f37525de4
commit
4382e003fd
@@ -1467,7 +1467,7 @@ class SaleOrder(models.Model):
|
||||
return {
|
||||
'description': self.name,
|
||||
'currency_id': self.currency_id.id,
|
||||
'partner_id': self.partner_id.id,
|
||||
'partner_id': self.partner_invoice_id.id,
|
||||
'amount': amount,
|
||||
'amount_max': amount,
|
||||
'amount_paid': self.amount_paid,
|
||||
|
||||
Reference in New Issue
Block a user