[MERGE]: Merge with lp:~openerp-dev/openobject-addons/rpa-dev-addons2

bzr revid: rpa@tinyerp.com-20110113132333-mjvyynigbw3zg2qk
This commit is contained in:
rpa (Open ERP)
2011-01-13 18:53:33 +05:30
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -10,14 +10,14 @@
<record id="order_purchase1" model="purchase.order">
<field name="location_id" ref="stock.stock_location_stock"/>
<field model="product.pricelist" name="pricelist_id" search="[]"/>
<field name="pricelist_id" ref="purchase.list0"/>
<field name="partner_id" ref="base.res_partner_asus"/>
<field name="partner_address_id" ref="base.res_partner_address_tang"/>
</record>
<record id="order_purchase2" model="purchase.order">
<field name="location_id" ref="stock.stock_location_stock"/>
<field model="product.pricelist" name="pricelist_id" search="[]"/>
<field name="pricelist_id" ref="purchase.list0"/>
<field name="partner_id" ref="base.res_partner_3"/>
<field name="partner_address_id" ref="base.res_partner_address_zen"/>
</record>
+2
View File
@@ -2221,6 +2221,8 @@ class stock_move(osv.osv):
'tracking_id': move.tracking_id.id,
'prodlot_id': move.prodlot_id.id,
}
if move.location_id.usage <> 'internal':
default_val.update({'location_id': move.location_dest_id.id})
new_move = self.copy(cr, uid, move.id, default_val)
res += [new_move]