Hello, I have merged into addons 7.0 a patch that fixes the problem in stock. Instead of the attached patch that does a search without much criteria, we still use the default data with xml but catch an exception if it does not exists (deleted) or no read access (other company). The advantage of this is that it won't change the behavior for people keeping the normal data.
revno: 9328 [merge] revision-id: [email protected] Regards -- 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/1178876 Title: Destination Location in stock move uses xml_id Status in OpenERP Addons (modules): Confirmed Bug description: 1.- Delete the stock location " Physical Locations / Your Company / Stock" Create a new stock move 2.- I have a error message: OpenERP Server Error Client Traceback (most recent call last): File "/home/yzaack/instancias/7/modules/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/home/yzaack/instancias/7/modules/web/controllers/main.py", line 1129, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/home/yzaack/instancias/7/modules/web/controllers/main.py", line 1121, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/home/yzaack/instancias/7/modules/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/home/yzaack/instancias/7/modules/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/home/yzaack/instancias/7/modules/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/home/yzaack/instancias/7/modules/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/home/yzaack/instancias/7/server/openerp/netsvc.py", line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/home/yzaack/instancias/7/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/home/yzaack/instancias/7/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/home/yzaack/instancias/7/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/home/yzaack/instancias/7/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/yzaack/instancias/7/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/yzaack/instancias/7/server/openerp/osv/orm.py", line 1581, in default_get defaults[f] = self._defaults[f](self, cr, uid, context) File "/home/yzaack/instancias/7/modules/stock/stock.py", line 1703, in _default_location_destination location_model, location_id = mod_obj.get_object_reference(cr, uid, 'stock', location_xml_id) File "/home/yzaack/instancias/7/server/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/yzaack/instancias/7/server/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/yzaack/instancias/7/server/openerp/addons/base/ir/ir_model.py", line 868, in get_object_reference data_id = self._get_id(cr, uid, module, xml_id) File "/home/yzaack/instancias/7/server/openerp/tools/cache.py", line 18, in lookup r = self.lookup(self2, cr, *args) File "/home/yzaack/instancias/7/server/openerp/tools/cache.py", line 46, in lookup value = d[key] = self.method(self2, cr, *args) File "/home/yzaack/instancias/7/server/openerp/addons/base/ir/ir_model.py", line 861, in _get_id raise ValueError('No such external ID currently defined in the system: %s.%s' % (module, xml_id)) ValueError: No such external ID currently defined in the system: stock.stock_location_stock 3.- Not have the error message and the field 'location_dest_id' must be blank. The default data doesn't must take data from xml_id. This problem is bigest when you work with Multicompany. 4.- Ubuntu 12.04 LTS / Chrome 5.- OpenERP 7.0 Server revno --> 4971 Addons revno --> 9110 Web revno --> 3919 To manage notifications about this bug go to: https://bugs.launchpad.net/openobject-addons/+bug/1178876/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~openerp-india Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-india More help : https://help.launchpad.net/ListHelp

