[IMP] pos_usability: search on products from pos.order search view

This commit is contained in:
Alexis de Lattre
2025-01-29 19:22:53 +01:00
parent d84b4bc8ac
commit 9f4392b6bd
2 changed files with 15 additions and 3 deletions

View File

@@ -11,6 +11,8 @@ class PosOrder(models.Model):
# field displayed in pos.order list view
payments_char = fields.Char(
string="Payment Methods", compute="_compute_payments_char", store=True)
# Used to search on products in pos.order search view
product_id = fields.Many2one(related='lines.product_id')
@api.depends('payment_ids')
def _compute_payments_char(self):