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

« back to all changes in this revision

Viewing changes to base_sale_multichannels/product.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:
20
20
###############################################################################
21
21
 
22
22
 
23
 
from osv import osv, fields
 
23
from openerp.osv.orm import Model
 
24
from openerp.osv import fields
24
25
from base_external_referentials.decorator import only_for_referential
25
26
from base_external_referentials.decorator import commit_now
26
27
 
27
 
class product_product(osv.osv):
 
28
class product_product(Model):
28
29
    _inherit='product.product'
29
30
 
30
31
    def _check_if_export(self, cr, uid, external_session, product, context=None):
65
66
            res = (), {} # list of ids, dict of ids to date_changed
66
67
        return res
67
68
 
68
 
class product_category(osv.osv):
 
69
class product_category(Model):
69
70
    _inherit = "product.category"
70
71
    
71
72
    def collect_children(self, category, children=None):