[IMP] point_of_sale: copy combo lines on duplicating a combo
before this commit, on duplicating a combo product, the combo lines are not copied to new records after this commit, the combo lines will get copied during the duplicate closes odoo/odoo#135577 Signed-off-by: Vlad Stroia (vlst) <vlst@odoo.com>
This commit is contained in:
@@ -20,7 +20,7 @@ class PosCombo(models.Model):
|
||||
_description = "Product combo choices"
|
||||
_order = "sequence, id"
|
||||
name = fields.Char(string="Name", required=True)
|
||||
combo_line_ids = fields.One2many("pos.combo.line", "combo_id", string="Products in Combo")
|
||||
combo_line_ids = fields.One2many("pos.combo.line", "combo_id", string="Products in Combo", copy=True)
|
||||
num_of_products = fields.Integer("No of Products", compute="_compute_num_of_products")
|
||||
sequence = fields.Integer(copy=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user