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

« back to all changes in this revision

Viewing changes to service_job_usual_hours/hr_contract.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 openerp.osv import fields, osv
 
22
from openerp.osv import fields, osv, orm
23
23
from openerp.tools.translate import _
24
24
 
25
 
class hr_contract(osv.osv):
 
25
class hr_contract(orm.Model):
26
26
    _inherit = "hr.contract"
27
27
    
28
28
    def _get_partner_ids(self, cr, uid, ids, field_name, arg, context=None):
51
51
        'partner_contract_ids': fields.function(_get_partner_contract_ids, method=True, type='many2many', relation='account.analytic.account', string='Partner contracts'),
52
52
    }
53
53
 
54
 
hr_contract()
55
 
 
56
54
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:heures effectives / semaine x Nbre semaines travaillees / an / 12