[IMP] view for product, default value for analytic plans
bzr revid: fp@tinyerp.com-20100420135618-9kju1jofiz3jh1mw
This commit is contained in:
@@ -234,6 +234,9 @@ class account_analytic_plan_instance_line(osv.osv):
|
||||
'analytic_account_id':fields.many2one('account.analytic.account','Analytic Account', required=True),
|
||||
'rate':fields.float('Rate (%)', required=True),
|
||||
}
|
||||
_defaults = {
|
||||
'rate': lambda *args: 100.0
|
||||
}
|
||||
def name_get(self, cr, uid, ids, context={}):
|
||||
if not len(ids):
|
||||
return []
|
||||
|
||||
@@ -106,8 +106,8 @@
|
||||
|
||||
<group colspan="2" col="2" name="uom">
|
||||
<separator string="UOM" colspan="2"/>
|
||||
<field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)"/>
|
||||
<field name="uom_po_id"/>
|
||||
<field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)" widget="selection"/>
|
||||
<field name="uom_po_id" widget="selection"/>
|
||||
</group>
|
||||
|
||||
<group colspan="2" col="2" name="uos" groups="product.group_uos">
|
||||
|
||||
Reference in New Issue
Block a user