Please sign in to comment.
[IMP] product: corrected pricelist on product variant
current Behaviour: ================== Currently there is no way to set fix price on product variant when Multiple prices per product. if we add on variant it's directly applied on template(all variant) Case For Product Template : - If user put a fix price on the product (template) and then try to check the product, he will find a line with that fix price on the "Sales" tab "Pricing" section, now if the current user tries to change this price he/she can easily change it, untimately the current user has the information that the product has some pricelist on it and its clearly visible here. Case For Product Variants : - If User put a fix prices on the product variants and then try to check any product variant, he will not find any line with that fix price on the "Sales" tab "Pricing" section, so now if the product manager wants to change the price which is set by the pricelist (fixed price), he/she does not have a clue what is the price.. Fixed in brach: -In Product Pricelist(Prices computed from formulas): -Remove the product variant option. Keep only 3 radio (Global, Category and Porduct) -when 'product' is selected: Product field is mandatory Product Variant isn't mandatory(invisible if variant is disabled) -Put filters to show only products that can be sold. -put filter to show product variants of selected product only. - In Multiple prices per product: - Able to add pricelist only for single variant. - As the option "product variant" has been removed from model itself, It had to be removed from test cases too. Related Task ID : 1870321
- Loading branch information...
Showing with 56 additions and 39 deletions.
- +26 −13 addons/point_of_sale/tests/test_frontend.py
- +2 −9 addons/product/models/product.py
- +7 −4 addons/product/models/product_pricelist.py
- +7 −4 addons/product/tests/test_pricelist.py
- +3 −1 addons/product/tests/test_product_pricelist.py
- +3 −2 addons/product/views/product_pricelist_views.xml
- +8 −6 addons/product/views/product_views.xml