[IMP] improved code
bzr revid: tpa@tinyerp.com-20130904114335-jfptxzwdgt2xjzm1
This commit is contained in:
parent
b63f89a74e
commit
6e1b899aa9
|
@ -29,7 +29,7 @@ class account_invoice_report(osv.osv):
|
|||
_auto = False
|
||||
_rec_name = 'date'
|
||||
|
||||
def def _compute_amounts_in_user_currency(self, cr, uid, ids, field_names, args, context=None):
|
||||
def _compute_amounts_in_user_currency(self, cr, uid, ids, field_names, args, context=None):
|
||||
"""Compute the amounts in the currency of the user
|
||||
"""
|
||||
if context is None:
|
||||
|
|
|
@ -86,8 +86,9 @@ class crm_lead_report(osv.osv):
|
|||
('opportunity','Opportunity'),
|
||||
],'Type', help="Type is used to separate Leads and Opportunities"),
|
||||
}
|
||||
|
||||
|
||||
def init(self, cr):
|
||||
|
||||
"""
|
||||
CRM Lead Report
|
||||
@param cr: the current row, from the database cursor
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<field name="nbr" sum="# of Lines"/>
|
||||
<field name="product_uom_qty" sum="# of Qty"/>
|
||||
<field name="product_uom" invisible="not context.get('set_visible',False)"/>
|
||||
<field name="user_price_total" sum="Total Price"/>
|
||||
<field name="price_total" sum="Total Price"/>
|
||||
<field name="delay" sum="Commitment Delay"/>
|
||||
<field name="state" invisible="1"/>
|
||||
<field name="analytic_account_id" invisible="1" groups="analytic.group_analytic_accounting"/>
|
||||
|
|
Loading…
Reference in New Issue