~mathieu-julius/extra-service-job/trunk-1

« back to all changes in this revision

Viewing changes to hr_employee_product_auto/employee.py

  • Committer: Mathieu VATEL
  • Date: 2013-02-18 14:24:24 UTC
  • Revision ID: mathieu@julius.fr-20130218142424-klc3tm20jfto6gf7
[IMP] replace osv.osv and osv.osv_memory by orm.Model and orm.TransientModel

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#
20
20
#################################################################################
21
21
 
22
 
from osv import fields, osv
 
22
from osv import fields, osv, orm
23
23
from tools.translate import _
24
24
 
25
 
class hr_employee(osv.osv):
 
25
class hr_employee(orm.Model):
26
26
    _inherit = 'hr.employee'
27
27
    
28
28
    _defaults = {
70
70
                if product_id:
71
71
                    self.pool.get('hr.employee').write(cr, uid, employee.id, {'product_id': product_id}, context=context)
72
72
        return True
73
 
    
74
 
hr_employee()
75
73
 
76
74
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
 
b'\\ No newline at end of file'