@@ -317,7 +317,7 @@ class account_invoice(osv.osv):
|
||||
res['analytics_id']=x.get('analytics_id',False)
|
||||
return res
|
||||
|
||||
def _get_analityc_lines(self, cr, uid, id):
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
cur_obj = self.pool.get('res.currency')
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ class account_voucher(osv.osv):
|
||||
|
||||
}
|
||||
|
||||
def _get_analityc_lines(self, cr, uid, id):
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
cur_obj = self.pool.get('res.currency')
|
||||
|
||||
@@ -193,7 +193,7 @@ class account_voucher(osv.osv):
|
||||
return True
|
||||
|
||||
|
||||
def _get_analityc_lines(self, cr, uid, id):
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
cur_obj = self.pool.get('res.currency')
|
||||
|
||||
@@ -238,7 +238,7 @@ class account_voucher(osv.osv):
|
||||
line_ids = self.read(cr, uid, [inv.id], ['payment_ids'])[0]['payment_ids']
|
||||
ils = self.pool.get('account.voucher.line').read(cr, uid, line_ids)
|
||||
# one move line per invoice line
|
||||
iml = self._get_analityc_lines(cr, uid, inv.id)
|
||||
iml = self._get_analytic_lines(cr, uid, inv.id)
|
||||
# check if taxes are all computed
|
||||
diff_currency_p = inv.currency_id.id <> company_currency
|
||||
# create one move line for the total and possibly adjust the other lines amount
|
||||
|
||||
@@ -101,8 +101,8 @@ hr_analytic_timesheet()
|
||||
class account_invoice(osv.osv):
|
||||
_inherit = "account.invoice"
|
||||
|
||||
def _get_analityc_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analityc_lines(cr, uid, id)
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id)
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
for il in iml:
|
||||
if il['account_analytic_id']:
|
||||
|
||||
@@ -137,8 +137,8 @@ hr_analytic_timesheet()
|
||||
class account_invoice(osv.osv):
|
||||
_inherit = "account.invoice"
|
||||
|
||||
def _get_analityc_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analityc_lines(cr, uid, id)
|
||||
def _get_analytic_lines(self, cr, uid, id):
|
||||
iml = super(account_invoice, self)._get_analytic_lines(cr, uid, id)
|
||||
|
||||
inv = self.browse(cr, uid, [id])[0]
|
||||
if inv.type == 'in_invoice':
|
||||
|
||||
Reference in New Issue
Block a user