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

« back to all changes in this revision

Viewing changes to product_links_goodies/product_links.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:
19
19
#                                                                             #
20
20
###############################################################################
21
21
 
22
 
from osv import osv, fields
 
22
from openerp.osv.orm import Model
 
23
from openerp.osv import fields
23
24
import netsvc
24
25
from datetime import datetime
25
26
 
26
 
class product_link(osv.osv):
 
27
class product_link(Model):
27
28
    _inherit = "product.link"
28
29
    
29
30
    _columns = {
73
74
                        ], context=context)
74
75
        self.write(cr, uid, to_active_ids, {'is_active': True}, context=context)
75
76
 
76
 
class product_product(osv.osv):
 
77
class product_product(Model):
77
78
    _inherit = 'product.product'
78
79
    
79
80
    def _get_supplier_goodies_ids(self, cr, uid, ids, name, arg, context=None):