[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:
niyasraphy
2023-10-06 09:39:22 +00:00
parent 4ab79fff7a
commit 3b4e8ea422
+1 -1
View File
@@ -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)