[PATCH] Upstream patch - 24112023

This commit is contained in:
Parthiv Patel committed 2023-11-24 08:35:17 +00:00
1 parent c11a93f671
commit edc471ca1a
30 files changed
+1893 -845

No files matched your search

+1 -1
View File
@@ -252,7 +252,7 @@ class ProductProduct(models.Model):
# bom specific to this variant or global to template
action['context'] = {
'default_product_tmpl_id': template_ids[0],
'default_product_id': self.ids[0],
'default_product_id': self.env.user.has_group('product.group_product_variant') and self.ids[0] or False,
}
action['domain'] = ['|', ('product_id', 'in', self.ids), '&', ('product_id', '=', False), ('product_tmpl_id', 'in', template_ids)]
return action