[FIX] account analytic plan, account budget, hr_timesheet, project_planning: Fix warning on Openerp TEst
bzr revid: ara@tinyerp.com-20101005070021-1djnjreztc8z6ix5
This commit is contained in:
parent
74a1a53089
commit
772ac664ba
|
@ -326,7 +326,7 @@ class account_move_line(osv.osv):
|
|||
'journal_id': line.journal_id.analytic_journal_id.id,
|
||||
'ref': line.ref,
|
||||
}
|
||||
ali_id=analytic_line_obj.create(cr, uid, al_vals, context=context)
|
||||
analytic_line_obj.create(cr, uid, al_vals, context=context)
|
||||
return True
|
||||
|
||||
account_move_line()
|
||||
|
|
|
@ -73,7 +73,6 @@ class account_budget_post_dotation(osv.osv):
|
|||
if line.period_id:
|
||||
obj_period = self.pool.get('account.period').browse(cr, uid, line.period_id.id)
|
||||
|
||||
total_days = strToDate(obj_period.date_stop) - strToDate(obj_period.date_start)
|
||||
budget_id = line.post_id and line.post_id.id or False
|
||||
query="SELECT id FROM crossovered_budget_lines WHERE \
|
||||
general_budget_id= %s AND (date_from >=%s AND date_from <= %s ) \
|
||||
|
|
|
@ -172,7 +172,7 @@ class hr_si_project(osv.osv_memory):
|
|||
context = {}
|
||||
for data in self.browse(cr, uid, ids, context=context):
|
||||
emp_id = data.emp_id.id
|
||||
success = emp_obj.attendance_action_change(cr, uid, [emp_id], type = 'sign_in' ,dt=data.date or False)
|
||||
emp_obj.attendance_action_change(cr, uid, [emp_id], type = 'sign_in' ,dt=data.date or False)
|
||||
return {}
|
||||
|
||||
def default_get(self, cr, uid, fields_list, context=None):
|
||||
|
|
|
@ -25,7 +25,6 @@ from datetime import datetime
|
|||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from osv import fields, osv
|
||||
from tools.translate import _
|
||||
import tools
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue