[FIX] point_of_sale: add index on order_id of pos.order.line
closes odoo/odoo#92714 X-original-commit: 7c2cd8ff5ea8f4c137f574aedc6fc7a190b81c15 Signed-off-by: Masereel Pierre <pim@odoo.com>
This commit is contained in:
@@ -898,7 +898,7 @@ class PosOrderLine(models.Model):
|
||||
total_cost = fields.Float(string='Total cost', digits='Product Price', readonly=True)
|
||||
is_total_cost_computed = fields.Boolean(help="Allows to know if the total cost has already been computed or not")
|
||||
discount = fields.Float(string='Discount (%)', digits=0, default=0.0)
|
||||
order_id = fields.Many2one('pos.order', string='Order Ref', ondelete='cascade', required=True)
|
||||
order_id = fields.Many2one('pos.order', string='Order Ref', ondelete='cascade', required=True, index=True)
|
||||
tax_ids = fields.Many2many('account.tax', string='Taxes', readonly=True)
|
||||
tax_ids_after_fiscal_position = fields.Many2many('account.tax', compute='_get_tax_ids_after_fiscal_position', string='Taxes to Apply')
|
||||
pack_lot_ids = fields.One2many('pos.pack.operation.lot', 'pos_order_line_id', string='Lot/serial Number')
|
||||
|
||||
Reference in New Issue
Block a user