summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2021-03-24 09:53:59 +0000
committerGoffin Simon <sig@odoo.com>2021-03-24 10:08:13 +0000
commit81a8be7d115ffcfac0126c252811381a482bd6a9 (patch)
tree8f2343ef6e9e3463956728dc9e6ab085d8737aec
parent62e7b161d39e5f5f6751cf87826fa6f7b729f83d (diff)
[FIX] purchase: not possible to link to purchase order
Steps to reproduce the bug: - Create a bill - Click on Auto complete Bug: A traceback was raised. opw:2490125 closes odoo/odoo#68288 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
-rw-r--r--addons/purchase/report/purchase_bill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase/report/purchase_bill.py b/addons/purchase/report/purchase_bill.py
index e479bb4ce0b..05e64fa8ff8 100644
--- a/addons/purchase/report/purchase_bill.py
+++ b/addons/purchase/report/purchase_bill.py
@@ -61,4 +61,4 @@ class PurchaseBillUnion(models.Model):
if name:
domain = ['|', ('name', operator, name), ('reference', operator, name)]
purchase_bills_union_ids = self._search(expression.AND([domain, args]), limit=limit, access_rights_uid=name_get_uid)
- return self.browse(purchase_bills_union_ids).name_get()
+ return purchase_bills_union_ids