← Back to team overview

openerp-india team mailing list archive

[Bug 984382] [NEW] product_special_price read non existing field user.shop_id

 

Public bug reported:

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?

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/984382

Title:
  product_special_price read non existing field user.shop_id

Status in OpenERP Addons (modules):
  New

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?

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/984382/+subscriptions


Follow ups

References