Merge lp:~akretion-team/openobject-addons/trunk-addons-fix-price_get_multi into lp:openobject-addons
Status: | Rejected | ||||
---|---|---|---|---|---|
Rejected by: | Martin Trigaux (OpenERP) | ||||
Proposed branch: | lp:~akretion-team/openobject-addons/trunk-addons-fix-price_get_multi | ||||
Merge into: | lp:openobject-addons | ||||
Diff against target: |
12 lines (+1/-1) 1 file modified
product/pricelist.py (+1/-1) |
||||
To merge this branch: | bzr merge lp:~akretion-team/openobject-addons/trunk-addons-fix-price_get_multi | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+162324@code.launchpad.net |
Description of the change
This is a copy-paste of my explaination on the bug report https:/
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/
Unmerged revisions
- 8697. By Alexis de Lattre
-
[FIX] Don't raise an error when context['date'] is False or None
Hello,
We have already merged your fix into openerp 7.0 (revision 9470). The code will be forward ported to trunk soon and I will then reject this branch.
Thanks for the code and the report