mirror of
https://gitlab.com/flectra-hq/flectra.git
synced 2026-11-02 20:30:20 -06:00
[PATCH] Upstream patch - 24112023
This commit is contained in:
1 parent
c11a93f671
commit
edc471ca1a
30 files changed
+1893
-845
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user