[FIX] purchase: recover vendor bill auto-complete by vendor reference

Up to v11 it was possible to search by purchase vendor reference when
we're using the auto-complete function in a vendor bill. With the
refactor of this functionality, this useful feature was lost.

opw:3387397

closes odoo/odoo#132896

X-original-commit: 0e7257306bb3dc8258b9642a53e2eefe7493c487
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
Goffin Simon
2023-08-23 19:58:07 +02:00
committed by Nicolas Lempereur
parent fec00da16e
commit e2feb8c539
+1
View File
@@ -9,6 +9,7 @@ class PurchaseBillUnion(models.Model):
_auto = False
_description = 'Purchases & Bills Union'
_order = "date desc, name desc"
_rec_names_search = ['name', 'reference']
name = fields.Char(string='Reference', readonly=True)
reference = fields.Char(string='Source', readonly=True)