Kirti Savalia(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-902445-ksa into
lp:openobject-addons.
Requested reviews:
Rucha (Open ERP) (rpa-openerp)
Related bugs:
Bug #902445 in OpenERP Addons: "incoming stock - process - missing stock
location for new products"
https://bugs.launchpad.net/openobject-addons/+bug/902445
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902445-ksa/+merge/85319
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-902445-ksa/+merge/85319
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-902445-ksa.
=== modified file 'stock/wizard/stock_partial_picking.py'
--- stock/wizard/stock_partial_picking.py 2011-11-22 10:09:07 +0000
+++ stock/wizard/stock_partial_picking.py 2011-12-12 11:51:25 +0000
@@ -32,8 +32,8 @@
'quantity' : fields.float("Quantity", digits_compute=dp.get_precision('Product UoM'), required=True),
'product_uom': fields.many2one('product.uom', 'Unit of Measure', required=True, ondelete='CASCADE'),
'prodlot_id' : fields.many2one('stock.production.lot', 'Production Lot', ondelete='CASCADE'),
- 'location_id': fields.many2one('stock.location', 'Location', required=True, ondelete='CASCADE'),
- 'location_dest_id': fields.many2one('stock.location', 'Dest. Location', required=True, ondelete='CASCADE'),
+ 'location_id': fields.many2one('stock.location', 'Location', required=True, ondelete='CASCADE', domain = [('usage','<>','view')]),
+ 'location_dest_id': fields.many2one('stock.location', 'Dest. Location', required=True, ondelete='CASCADE',domain = [('usage','<>','view')]),
'move_id' : fields.many2one('stock.move', "Move", ondelete='CASCADE'),
'wizard_id' : fields.many2one('stock.partial.picking', string="Wizard", ondelete='CASCADE'),
'update_cost': fields.boolean('Need cost update'),
=== modified file 'stock/wizard/stock_partial_picking_view.xml'
--- stock/wizard/stock_partial_picking_view.xml 2011-11-21 12:52:39 +0000
+++ stock/wizard/stock_partial_picking_view.xml 2011-12-12 11:51:25 +0000
@@ -36,6 +36,8 @@
<field name="product_id" />
<field name="quantity" />
<field name="product_uom" />
+ <field name="location_id" />
+ <field name="location_dest_id" />
<field name="update_cost" invisible="1"/>
<field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
<field name="currency" attrs="{'invisible': [('update_cost','=', False)]}"/>
@@ -51,6 +53,8 @@
<field name="product_id" />
<field name="quantity" />
<field name="product_uom" />
+ <field name="location_id" />
+ <field name="location_dest_id" />
<field name="update_cost" invisible="1"/>
<field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
<field name="currency" attrs="{'invisible': [('update_cost','=', False)]}"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp