diff --git a/addons/procurement/procurement_view.xml b/addons/procurement/procurement_view.xml index 3085eb6d672..fe2b1d0ca69 100644 --- a/addons/procurement/procurement_view.xml +++ b/addons/procurement/procurement_view.xml @@ -182,10 +182,10 @@ - + - + @@ -228,8 +228,8 @@ - - + + diff --git a/addons/stock/stock.py b/addons/stock/stock.py index a279b8bea6c..6d8f6bb6fec 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -1726,10 +1726,15 @@ class stock_move(osv.osv): if location_xml_id: location_model, location_id = mod_obj.get_object_reference(cr, uid, 'stock', location_xml_id) return location_id + + def _default_destination_address(self, cr, uid, context=None): + user = self.pool.get('res.users').browse(cr, uid, uid, context=context) + return user.company_id.partner_id.id _defaults = { 'location_id': _default_location_source, 'location_dest_id': _default_location_destination, + 'partner_id': _default_destination_address, 'state': 'draft', 'priority': '1', 'product_qty': 1.0, diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index e90a2bb8162..d4acd4906ad 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -137,7 +137,7 @@ - + @@ -1266,27 +1266,28 @@ - + - -