← Back to team overview

openerp-india team mailing list archive

[Bug 847886] Re: default source and dest locations for a stock_move, multicompany

 

** Branch linked: lp:~openerp-dev/openobject-addons/6.0-opw-17487-ksa

** Changed in: openobject-addons
   Importance: Undecided => Low

** Changed in: openobject-addons
       Status: New => Fix Committed

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

Title:
  default source and dest locations for a stock_move, multicompany

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  I'm creating a new stock move in a multicompany environment. So I go
  to 'product moves'  'deliver products' and hit new.

  That gives a permission error on 'location_id' and 'location_dest_id'.

  Some grepping and debugging showed me that there is a default set via the context in 
  http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/head:/stock/stock_view.xml#L1760
  and in
  http://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/head:/stock/stock_view.xml#L1897
  .

  That looks strange to me: we should not use as default the xml ID of a record (in that case 'Stock') that is created when installing a module.
  Users can see and modify locations, creating new xml ids for them, and should do that in a multicompany situation where every company should have his own locations.

  A nice solution could be using only defaults in the class definitions.

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