← Back to team overview

openerp-india team mailing list archive

[Bug 1206910] Re: error when adding product to saleorder in multi-company

 

Hello Kris,

I have checked same at my end, but I got the access error for the location object due to the record rule of the stock.location object.
I will update the record rule for this object and try again but it will works fine at mt end. 

Would you please check it again or let me know If missed something.

Thank you!

** Changed in: openobject-addons
       Status: New => Incomplete

-- 
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/1206910

Title:
  error when adding product to saleorder in multi-company

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  Hi

  When i want to add a product to a sale order in a multi-company
  enviroment. i get the following error

  Client Traceback (most recent call last): File "C:\Program
  Files\OpenERP 7.0\Server\server\openerp\addons\web\http.py", line 204,
  in dispatch File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\web\controllers\main.py", line 1128,
  in call_kw File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\web\controllers\main.py", line 1120,
  in _call_kw File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\web\session.py", line 42, in proxy
  File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\web\session.py", line 30, in
  proxy_method File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\web\session.py", line 103, in send

  Server Traceback (most recent call last): File "C:\Program
  Files\OpenERP 7.0\Server\server\openerp\addons\web\session.py", line
  89, in send File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\netsvc.py", line 292, in dispatch_rpc File
  "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\service\web_services.py", line 626, in
  dispatch File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\osv\osv.py", line 188, in execute_kw File
  "C:\Program Files\OpenERP 7.0\Server\server.\openerp\osv\osv.py", line
  131, in wrapper File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\osv\osv.py", line 197, in execute File
  "C:\Program Files\OpenERP 7.0\Server\server.\openerp\osv\osv.py", line
  185, in execute_cr File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\sale_stock\sale_stock.py", line 613,
  in product_id_change File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\osv\orm.py", line 484, in __getattr__ File
  "C:\Program Files\OpenERP 7.0\Server\server.\openerp\osv\orm.py", line
  399, in __getitem__ File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\osv\orm.py", line 3604, in read File
  "C:\Program Files\OpenERP 7.0\Server\server.\openerp\osv\orm.py", line
  3712, in _read_flat File "C:\Program Files\OpenERP
  7.0\Server\server.\openerp\osv\fields.py", line 1133, in get File
  "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\stock\product.py", line 358, in
  _product_available File "C:\Program Files\OpenERP
  7.0\Server\server\openerp\addons\stock\product.py", line 219, in
  get_product_available TypeError: 'bool' object is unsubscriptable

  i get this error when using a user in a subcompany to the main
  company. the administrator doen't get this error

  i'm using Openerp Versie 7.0-20130730-231022 on windows 7 32bit profesional
  Kno

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


References