Pricelist : Error when context['date']=False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP Publisher's Warranty Team |
Bug Description
In product/
<<
At least one pricelist has no active version ! Please create or activate one.
>>
For example, one scenario where you enter the function function price_get_multi() with context['date'] = False or None is when you use the module "product_
in product_
list_price = pricelist_
(the function price_get() calls price_get_multi())
and the default value for the variable "date_order" is False, as you can see in the proto of the function product_
I think that the proper fix for this is simply to test if context['date'] has a value before using it for the 'date' variable in the function price_get_multi() in product/
Related branches
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedproduct/pricelist.py (+1/-1)
- Martin Trigaux (OpenERP) (community): Approve
- Naresh(OpenERP) (community): Approve
-
Diff: 14 lines (+1/-3)1 file modifiedproduct/pricelist.py (+1/-3)
- Naresh(OpenERP): Pending requested
-
Diff: 14 lines (+1/-3)1 file modifiedproduct/pricelist.py (+1/-3)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
importance: | Undecided → Medium |
Changed in openobject-addons: | |
milestone: | none → 7.0 |
I forgot to mention that I found this bug in OpenERP 6.1, but the code is the same in OpenERP 7.0 and trunk.