[REF] stock: stock.inventory's set_check_qty() renamed into reset_real_qty()
bzr revid: qdp-launchpad@openerp.com-20140507094440-f11xqs3iao3je3ib
This commit is contained in:
parent
b3967dfece
commit
62c08817e6
|
@ -2469,7 +2469,7 @@ class stock_inventory(osv.osv):
|
||||||
'location_id': _default_stock_location,
|
'location_id': _default_stock_location,
|
||||||
}
|
}
|
||||||
|
|
||||||
def set_checked_qty(self, cr, uid, ids, context=None):
|
def reset_real_qty(self, cr, uid, ids, context=None):
|
||||||
inventory = self.browse(cr, uid, ids[0], context=context)
|
inventory = self.browse(cr, uid, ids[0], context=context)
|
||||||
line_ids = [line.id for line in inventory.line_ids]
|
line_ids = [line.id for line in inventory.line_ids]
|
||||||
self.pool.get('stock.inventory.line').write(cr, uid, line_ids, {'product_qty': 0})
|
self.pool.get('stock.inventory.line').write(cr, uid, line_ids, {'product_qty': 0})
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
</group>
|
</group>
|
||||||
<notebook attrs="{'invisible':[('state','=','draft')]}">
|
<notebook attrs="{'invisible':[('state','=','draft')]}">
|
||||||
<page string="Inventory Details" >
|
<page string="Inventory Details" >
|
||||||
<button name="set_checked_qty" states="confirm" string="⇒ Set quantities to 0" type="object" class="oe_link oe_right" groups="stock.group_stock_user"/>
|
<button name="reset_real_qty" states="confirm" string="⇒ Set quantities to 0" type="object" class="oe_link oe_right" groups="stock.group_stock_user"/>
|
||||||
<field name="line_ids" string="Inventory Details" context="{'default_location_id': location_id, 'default_product_id': product_id, 'default_prod_lot_id': lot_id, 'default_package_id': package_id, 'default_partner_id': partner_id}">
|
<field name="line_ids" string="Inventory Details" context="{'default_location_id': location_id, 'default_product_id': product_id, 'default_prod_lot_id': lot_id, 'default_package_id': package_id, 'default_partner_id': partner_id}">
|
||||||
<tree string="Inventory Details" editable="bottom" colors="blue: product_qty != theoretical_qty; red: theoretical_qty < 0">
|
<tree string="Inventory Details" editable="bottom" colors="blue: product_qty != theoretical_qty; red: theoretical_qty < 0">
|
||||||
<field context="{'location':location_id, 'uom':product_uom_id, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(product_id,product_uom_id,theoretical_qty,context)" domain="[('type','=','product')]"/>
|
<field context="{'location':location_id, 'uom':product_uom_id, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(product_id,product_uom_id,theoretical_qty,context)" domain="[('type','=','product')]"/>
|
||||||
|
|
Loading…
Reference in New Issue