[Extra-addons]product_special_price read non existing field user.shop_id

Bug #984382 reported by Mariano Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
Amit Bhavsar (Open ERP)

Bug Description

Module product_special_price/sale.py, line 51:

if user.shop_id.special_price:

This launch this error:

AttributeError: "Field 'shop_id' does not exist in object 'browse_record(res.users, 1)'"

The error/question is: Where the attribute 'shop_id' is in the res.user model? Maybe in a unregistered (and not installed) depends module in __openerp__.py cause the problem?

Related branches

Changed in openobject-addons:
status: New → Incomplete
status: Incomplete → Confirmed
summary: - product_special_price read non existing field user.shop_id
+ [Extra-addons]product_special_price read non existing field user.shop_id
Changed in openobject-addons:
importance: Undecided → Low
assignee: nobody → Amit Bhavsar (Open ERP) (amb-openerp)
Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello,

It has been fixed on lp:openobject-addons/extra-6.0
branch with following revision number and revision ID.

Revision No :5759
Revision ID : <email address hidden>

Thanks!

Changed in openobject-addons:
status: Confirmed → Fix Released
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.