diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-06-13 13:59:04 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-06-13 13:59:04 +0000 |
| commit | 382989c341935582f6ae47510796ecd8d9f6b710 (patch) | |
| tree | a2452cc9c1283719d452600173daa5583c93219a /addons | |
| parent | 6a2f83a08e61715097af7b594ec854163310748c (diff) | |
[FIX] product: remove useless create_from_tmpl context change
Since 0477bdb75afafa62b204f29e9dbfc3fc5fd012d4
The last use of `create_from_tmpl` was removed therefore it is better to not
change the context for no reason.
closes odoo/odoo#34107
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/product/models/product_template.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/models/product_template.py b/addons/product/models/product_template.py index a6b1b43251d..4d52ca6a5e2 100644 --- a/addons/product/models/product_template.py +++ b/addons/product/models/product_template.py @@ -354,7 +354,7 @@ class ProductTemplate(models.Model): ''' Store the initial standard price in order to be able to retrieve the cost of a product template for a given date''' templates = super(ProductTemplate, self).create(vals_list) if "create_product_product" not in self._context: - templates.with_context(create_from_tmpl=True).create_variant_ids() + templates.create_variant_ids() # This is needed to set given values to first variant after creation for template, vals in zip(templates, vals_list): |
