[FIX] added context arguments in required method of account_analytic_plans/account_analytic_plans.py, analytic_journal_billing_rate/analytic_journal_billing_rate.py, hr_timesheet_invoice/hr_timesheet_invoice.py
bzr revid: bde@tinyerp.com-20111215090730-s64n85bjm5rurfrr
This commit is contained in:
parent
ef580a12f6
commit
43c3646206
|
@ -380,7 +380,7 @@ class account_invoice(osv.osv):
|
|||
res['analytics_id'] = x.get('analytics_id', False)
|
||||
return res
|
||||
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
def _get_analytic_lines(self, cr, uid, id, context=None):
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
cur_obj = self.pool.get('res.currency')
|
||||
invoice_line_obj = self.pool.get('account.invoice.line')
|
||||
|
@ -391,7 +391,7 @@ class account_invoice(osv.osv):
|
|||
else:
|
||||
sign = -1
|
||||
|
||||
iml = invoice_line_obj.move_line_get(cr, uid, inv.id)
|
||||
iml = invoice_line_obj.move_line_get(cr, uid, inv.id, context=context)
|
||||
|
||||
for il in iml:
|
||||
if il.get('analytics_id', False):
|
||||
|
|
|
@ -100,8 +100,8 @@ hr_analytic_timesheet()
|
|||
class account_invoice(osv.osv):
|
||||
_inherit = "account.invoice"
|
||||
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id)
|
||||
def _get_analytic_lines(self, cr, uid, id, context=None):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id, context=context)
|
||||
for il in iml:
|
||||
if il['account_analytic_id'] and il.get('analytic_lines', False):
|
||||
|
||||
|
|
|
@ -169,8 +169,8 @@ hr_analytic_timesheet()
|
|||
class account_invoice(osv.osv):
|
||||
_inherit = "account.invoice"
|
||||
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id)
|
||||
def _get_analytic_lines(self, cr, uid, id, context=None):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id, context=context)
|
||||
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
if inv.type == 'in_invoice':
|
||||
|
|
Loading…
Reference in New Issue