summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjay Chauhan (OpenERP) <cha@tinyerp.com>2012-09-28 11:14:45 +0530
committerAjay Chauhan (OpenERP) <cha@tinyerp.com>2012-09-28 11:14:45 +0530
commit425d285e2eb9eceb076711bc17875bfa6ea975e6 (patch)
tree739acc7d8da5623da03fda25be72dad4ed07d35d
parentb478be2675a4709b17d94cbb7663fc754fc5e31a (diff)
[IMP] hr_timesheet_invoice: made little change in condition
bzr revid: cha@tinyerp.com-20120928054445-ayg474ppng31318r
-rw-r--r--addons/hr_timesheet_invoice/hr_timesheet_invoice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
index 9baaf5b1b7f..22f21776c0d 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
@@ -135,7 +135,7 @@ class account_analytic_line(osv.osv):
def _default_general_account(self, cr, uid, context=None):
proxy = self.pool.get('hr.employee')
record_ids = proxy.search(cr, uid, [('user_id', '=', uid)], context=context)
- if not len(record_ids):
+ if not record_ids:
raise osv.except_osv(_('Error!'), _('Please create an employee and associate it with this user.'))
employee = proxy.browse(cr, uid, record_ids[0], context=context)
if employee.product_id and employee.product_id.property_account_income: