diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-06-09 12:08:02 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-06-09 14:38:21 +0000 |
| commit | 6aebf5d359a44ec78535afb2237557f1c75cfda5 (patch) | |
| tree | cf2123cb024fec0d2b548381592817431e88ab73 /addons/product | |
| parent | 3288304f59bb473be6d5a5f8caf66f54c131b116 (diff) | |
[FIX] product: import pricelist
When importing a file to populate a pricelist applying to a product
category, it is necessary to add a leading space to ` Product Category`
name to match with `2_product_category`.
We can simply remove it.
opw-2271033
closes odoo/odoo#52722
X-original-commit: 11809ee1a12df6b967f03591adb6d11579e3e947
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'addons/product')
| -rw-r--r-- | addons/product/models/product_pricelist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product/models/product_pricelist.py b/addons/product/models/product_pricelist.py index 680ed729cf9..880766ce545 100644 --- a/addons/product/models/product_pricelist.py +++ b/addons/product/models/product_pricelist.py @@ -408,7 +408,7 @@ class PricelistItem(models.Model): "Expressed in the default unit of measure of the product.") applied_on = fields.Selection([ ('3_global', 'All Products'), - ('2_product_category', ' Product Category'), + ('2_product_category', 'Product Category'), ('1_product', 'Product'), ('0_product_variant', 'Product Variant')], "Apply On", default='3_global', required=True, |
