bzr revid: fp@tinyerp.com-20081202180812-c19o24b1n4bl0777
This commit is contained in:
Fabien Pinckaers
2008-12-02 19:08:12 +01:00
parent 4acf2038e0
commit 4528e7eb21
4 changed files with 8 additions and 8 deletions
@@ -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')
+3 -3
View File
@@ -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':