~camptocamp/stock-logistic-warehouse/7.0-port-base_product_merge

« back to all changes in this revision

Viewing changes to base_product_merge/wizard/base_product_merge.py

  • Committer: Yannick Vaucher
  • Date: 2013-05-02 13:32:51 UTC
  • Revision ID: yannick.vaucher@camptocamp.com-20130502133251-xgn6zag1ggxp5op1
[IMP] base_product_merge - use orm.TransientModel instead of osv_memory alias

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
# TODO : create a base_merge module to provide abstractions for merges ?
33
33
 
34
 
from osv import fields, osv
 
34
from openerp.osv import orm, fields
35
35
from tools.translate import _
36
36
import tools
37
37
from osv.orm import browse_record
38
38
 
39
 
class base_product_merge(osv.osv_memory):
 
39
class BaseProductMerge(orm.TransientModel):
40
40
    """ Merges two products """
41
41
    _name = 'base.product.merge'
42
42
    _description = 'Merges Two Products'
70
70
        'description':fields.selection ([('', '')], 'Description',),
71
71
        'description_sale':fields.selection ([('', '')], 'Sale Description',),
72
72
        'description_purchase':fields.selection ([('', '')], 'Purchase Description',)
73
 
    }
 
73
        }
74
74
 
75
75
    _values = {}
76
76
 
280
280
        """
281
281
        pass
282
282
 
283
 
base_product_merge()
284
 
 
285
 
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
 
b'\\ No newline at end of file'
 
283
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: