Browse Source

[IMP] Allow to search on partner name on pos order load

pull/9/head
Sylvain Calador 10 years ago
parent
commit
7f620ad34a
  1. 5
      pos_order_load/point_of_sale.py

5
pos_order_load/point_of_sale.py

@ -27,7 +27,10 @@ class PosOrder(models.Model):
@api.model @api.model
def search_read_orders(self, query): def search_read_orders(self, query):
condition = [('pos_reference', 'ilike', query)]
condition = ['|',
('pos_reference', 'ilike', query),
('partner_id', 'ilike', query)
]
fields = ['pos_reference', 'partner_id'] fields = ['pos_reference', 'partner_id']
return self.search_read(condition, fields, limit=10) return self.search_read(condition, fields, limit=10)

Loading…
Cancel
Save