~ecommerce-addons-core-editors/e-commerce-addons/github-6.1

« back to all changes in this revision

Viewing changes to base_sale_multichannels/partner.py

  • Committer: sebastien beau
  • Date: 2012-08-21 13:57:44 UTC
  • mto: (269.1.1)
  • mto: This revision was merged to the branch mainline in revision 273.
  • Revision ID: git-v1:5a17b67295468f3c90564a729144ebc41da38618
[REF] refactor/clean code due to orm change in 6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*- encoding: utf-8 -*-
2
2
#################################################################################
3
3
#                                                                               #
4
 
#    amazonerpconnect for OpenERP                                               #
 
4
#    base_sale_multichannels for OpenERP                                        #
5
5
#    Copyright (C) 2011 Akretion Sébastien BEAU <sebastien.beau@akretion.com>   #
6
6
#                                                                               #
7
7
#    This program is free software: you can redistribute it and/or modify       #
19
19
#                                                                               #
20
20
#################################################################################
21
21
 
22
 
from osv import osv, fields
23
 
 
24
 
class res_partner(osv.osv):
 
22
from openerp.osv.orm import Model
 
23
from openerp.osv import fields
 
24
 
 
25
 
 
26
class res_partner(Model):
25
27
    _inherit='res.partner'
26
28
    
27
29
    _columns = {
38
40
            })
39
41
        return defaults
40
42
 
41
 
res_partner()
42
 
 
43
 
class res_partner_address(osv.osv):
 
43
class res_partner_address(Model):
44
44
    _inherit='res.partner.address'
45
45
    
46
46
    def _transform_one_resource(self, *args, **kwargs):