[IMP] improved code

bzr revid: tpa@tinyerp.com-20130904114335-jfptxzwdgt2xjzm1
This commit is contained in:
Turkesh Patel (Open ERP) 2013-09-04 17:13:35 +05:30
parent b63f89a74e
commit 6e1b899aa9
3 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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

View File

@ -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"/>