v7 pricelists on product search form display 0.00 on 'price' column

Bug #1178835 reported by charlee.papah
40
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Medium
OpenERP R&D Addons Team 2

Bug Description

the problem is as follows:

on v7, when selecting a pricelist on the product search form, the 'price' column is displayed. this colum is supposed to show the prices according to the pricelist selected, however the prices shown on this column are all displaying 0.00 no matter what pricelist is selected.

Tags: price product v7
Revision history for this message
charlee.papah (n-hartmann) wrote :
Revision history for this message
charlee.papah (n-hartmann) wrote :

this is the product.py code for the def _product_price section:

    def _product_price(self, cr, uid, ids, name, arg, context=None):
        res = {}
        if context is None:
            context = {}
        quantity = context.get('quantity') or 1.0
        pricelist = context.get('pricelist', False)
        partner = context.get('partner', False)
        if pricelist:
            for id in ids:
                try:
                    price = self.pool.get('product.pricelist').price_get(cr,uid,[pricelist], id, quantity, partner=partner, context=context)[pricelist]
                except:
                    price = 0.0
                res[id] = price
        for id in ids:
            res.setdefault(id, 0.0)
        return res

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

The fix has landed in addons 7.0 at revision 9418 rev-id: <email address hidden>.
Technically speaking, the problem was caused by a change of behavior in the way the web client handles the magical `self` reference when evaluating search domains (6.1 used the ID, 7.0 uses the record's display name).

Thanks for reporting!

Changed in openobject-addons:
milestone: none → 7.0
status: Confirmed → Fix Released
Revision history for this message
charlee.papah (n-hartmann) wrote :

great! thanks for the fix. will download rev now.

Revision history for this message
charlee.papah (n-hartmann) wrote : Re: [Bug 1178835] Re: v7 pricelists on product search form display 0.00 on 'price' column

any chance of getting the diff file. downloading the entire branch is time
consuming as the branch is quite heavy.

On Fri, Sep 6, 2013 at 12:17 PM, Olivier Dony (OpenERP) <
<email address hidden>> wrote:

> The fix has landed in addons 7.0 at revision 9418 rev-id:
> <email address hidden>.
> Technically speaking, the problem was caused by a change of behavior in
> the way the web client handles the magical `self` reference when evaluating
> search domains (6.1 used the ID, 7.0 uses the record's display name).
>
> Thanks for reporting!
>
> ** Changed in: openobject-addons
> Status: Confirmed => Fix Released
>
> ** Changed in: openobject-addons
> Milestone: None => 7.0
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1178835
>
> Title:
> v7 pricelists on product search form display 0.00 on 'price' column
>
> Status in OpenERP Addons (modules):
> Fix Released
>
> Bug description:
> the problem is as follows:
>
> on v7, when selecting a pricelist on the product search form, the
> 'price' column is displayed. this colum is supposed to show the prices
> according to the pricelist selected, however the prices shown on this
> column are all displaying 0.00 no matter what pricelist is selected.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-addons/+bug/1178835/+subscriptions
>

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

On 09/07/2013 06:55 PM, charlee.papah wrote:
> any chance of getting the diff file. downloading the entire branch is time
> consuming as the branch is quite heavy.

Sure, you can view and download patches via loggerhead, Launchpad's web
interface to the Bazaar repositories. You can access it via the "Code" menu on
the top of the page, select the 7.0 branch and then use the "Browse the code" link.
The direct link to the revision with the fix is:
   http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9418
(then use the "download diff" link on top)

Revision history for this message
charlee.papah (n-hartmann) wrote :

tanks alot for the concise and precise instructions!

On Mon, Sep 9, 2013 at 4:47 AM, Olivier Dony (OpenERP) <
<email address hidden>> wrote:

> On 09/07/2013 06:55 PM, charlee.papah wrote:
> > any chance of getting the diff file. downloading the entire branch is
> time
> > consuming as the branch is quite heavy.
>
> Sure, you can view and download patches via loggerhead, Launchpad's web
> interface to the Bazaar repositories. You can access it via the "Code"
> menu on
> the top of the page, select the 7.0 branch and then use the "Browse the
> code" link.
> The direct link to the revision with the fix is:
>
> http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/revision/9418
> (then use the "download diff" link on top)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1178835
>
> Title:
> v7 pricelists on product search form display 0.00 on 'price' column
>
> Status in OpenERP Addons (modules):
> Fix Released
>
> Bug description:
> the problem is as follows:
>
> on v7, when selecting a pricelist on the product search form, the
> 'price' column is displayed. this colum is supposed to show the prices
> according to the pricelist selected, however the prices shown on this
> column are all displaying 0.00 no matter what pricelist is selected.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-addons/+bug/1178835/+subscriptions
>

Revision history for this message
Cats&Dogs (catsanddogs) wrote :

Hello,

I'm kinda lost here. In our live server we have in the list of the advanced search the possibility to choose pricelist and price. The live isn't updated to the latest revision where this topic is fixed.

In our development server, which is up-to-date on revisions, I don't have the possibility to select pricelist nor price.
The development is running with a copy of our live database. So options and settings should be the same. I did an update -all on the development after copying the database from the live.

What am I missing here? Hints are welcome, searching for several hours now...

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

On 2013-10-19 00:03, Cats&Dogs wrote:
> I'm kinda lost here. In our live server we have in the list of the
> advanced search the possibility to choose pricelist and price.

This option does not appear in the advanced search, because it's not a real
field you can search on. You have to type the name of a pricelist in the normal
search box, and then select it from the suggested "Pricelist" section in the
auto-completion drop-down.
The "Price" column only appears after you have chosen a pricelist, otherwise
only the catalog price (Public Price) is visible.

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.