[FIX]product : remove lemda from defaults

bzr revid: mma@tinyerp.com-20121003113846-mjjtghoxdu8h2nq8
This commit is contained in:
Mayur Maheshwari (OpenERP) 2012-10-03 17:08:46 +05:30
parent a4da52f7f0
commit be42204adf
3 changed files with 11 additions and 11 deletions

View File

@ -649,8 +649,8 @@ class product_template(osv.osv):
'supply_method': fields.selection([('produce','Manufacture'),('buy','Buy')], 'Supply Method', required=True, help="Produce will generate production order or tasks, according to the product type. Buy will trigger purchase orders when requested."),
}
_defaults = {
'procure_method': lambda *a: 'make_to_stock',
'supply_method': lambda *a: 'buy',
'procure_method': 'make_to_stock',
'supply_method': 'buy',
}
product_template()

View File

@ -345,17 +345,17 @@ class product_template(osv.osv):
_defaults = {
'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'product.template', context=c),
'list_price': lambda *a: 1,
'cost_method': lambda *a: 'standard',
'standard_price': lambda *a: 0.0,
'sale_ok': lambda *a: 1,
'produce_delay': lambda *a: 1,
'list_price': 1,
'cost_method': 'standard',
'standard_price': 0.0,
'sale_ok': 1,
'produce_delay': 1,
'uom_id': _get_uom_id,
'uom_po_id': _get_uom_id,
'uos_coeff' : lambda *a: 1.0,
'mes_type' : lambda *a: 'fixed',
'uos_coeff' : 1.0,
'mes_type' : 'fixed',
'categ_id' : _default_category,
'type' : lambda *a: 'consu',
'type' : 'consu',
}
def _check_uom(self, cursor, user, ids, context=None):

View File

@ -1102,7 +1102,7 @@ class product_template(osv.osv):
'purchase_ok': fields.boolean('Can be Purchased', help="Determine if the product is visible in the list of products within a selection from a purchase order line."),
}
_defaults = {
'purchase_ok': lambda *a: 1,
'purchase_ok': 1,
}
product_template()