[MRG] set default values wms lp:~openerp-dev/openobject-addons/trunk-physical_inventory-sunil

bzr revid: tpa@tinyerp.com-20130906061037-zn3u28lgr7nwma00
This commit is contained in:
Turkesh Patel (Open ERP)
2013-09-06 11:40:37 +05:30
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -1836,7 +1836,7 @@ class stock_inventory(osv.osv):
domain = ' location_id in %s'
args = (tuple(location_ids),)
if inventory.partner_id:
domain += ' and partner_id = %s'
domain += ' and owner_id = %s'
args += (inventory.partner_id.id,)
if inventory.lot_id:
domain += ' and lot_id = %s'
+5 -5
View File
@@ -120,19 +120,19 @@
</group>
<div class="oe_grey" colspan="4">Specify filters to focus your inventory a on particular product, lot, pack and products owner</div>
<group>
<field name="product_id"/>
<field name="lot_id"/>
<field name="product_id" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="lot_id" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>
<group>
<field name="partner_id"/>
<field name="package_id"/>
<field name="partner_id" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="package_id" attrs="{'readonly':[('state','!=','draft')]}"/>
</group>
</group>
<notebook attrs="{'invisible':[('state','=','draft')]}">
<page string="Inventory Details" >
<button name="set_checked_qty" states="confirm" string="⇒ Set Checked Quantity to 0" type="object" class="oe_link oe_right" groups="stock.group_stock_user"/>
<field name="line_ids" string="Inventory Details">
<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}">
<tree string="Inventory Details" editable="bottom" colors="blue: product_qty != real_qty">
<field context="{'location':location_id, 'uom':product_uom_id, 'to_date':parent.date}" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom_id,parent.date)" domain="[('type','=','product')]"/>
<field name="real_qty" readonly="1"/>