Browse Source

[FIX] Use orm.Model instead of osv.osv

pull/2/head
Joao Alfredo Gama Batista 12 years ago
parent
commit
98fa1bfb01
  1. 2
      partner_auto_salesman/__openerp__.py
  2. 6
      partner_auto_salesman/res_partner.py

2
partner_auto_salesman/__openerp__.py

@ -28,7 +28,7 @@
'author': 'Savoir-faire Linux', 'author': 'Savoir-faire Linux',
'website': 'http://www.savoirfairelinux.com', 'website': 'http://www.savoirfairelinux.com',
'license': 'AGPL-3', 'license': 'AGPL-3',
'depends': ['crm'],
'depends': ['base'],
'installable': True, 'installable': True,
'auto_install': False, 'auto_install': False,
} }

6
partner_auto_salesman/res_partner.py

@ -19,11 +19,9 @@
# #
############################################################################## ##############################################################################
from openerp.osv import osv
from openerp.osv import orm
class res_partner(osv.osv):
class res_partner(orm.Model):
_inherit = 'res.partner' _inherit = 'res.partner'
_defaults = {'user_id': lambda self, cr, uid, context: uid} _defaults = {'user_id': lambda self, cr, uid, context: uid}
res_partner()
Loading…
Cancel
Save