price_get_multi - Date set to False from context.

Bug #1182748 reported by jordg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 2

Bug Description

When price_get_mutli is called there are some cases when the context has date:False. Looking at the code below the date is set as today. However if the key date exists even though it is False the date is set to False. This produces an pricelist error.

        date = time.strftime('%Y-%m-%d')
        if 'date' in context:
            date = context['date']

May I suggest to double check the dictionary.
        if 'date' in context and context['date']:

Regards

Related branches

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Dharmraj Zala(OpenERP) (dharmraj.zala-openerp) wrote :

Hello,
It has been fixed commited in
"https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1182748-dharmraj" branch.
Revision No : 8710
Revision ID: <email address hidden>

It will be available soon in trunk.

Thanks,
Dharmraj.

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.