The plot thickens...

I was able to determine that only modules that depended upon a certain module 
were exhibiting this problem.  So in that certain module I have a class defined 
which has an _auto_init method:

class myclass(osv.osv):
        _name = "res.partner"
        _inherit = "res.partner"
        _description = "Partner attributes"
        _columns = {
                'id' : 
fields.integer('ID', readonly=True),
                'alias' : 
fields.char('Alias', size=64),
        }

        # def _auto_init(self, cr):  
           # openerp 4.x does not have 'context' 
arg
        # def _auto_init(self, cr, 
context={}): # openerp 5.x has 'context' arg
        def _auto_init(self, cr, 
context={}):
                # super(myclass, 
self)._auto_init(cr, context)  # openerp 5.x
                # super(myclass, 
self)._auto_init(cr)           # 
openerp 4.x
                super(myclass, 
self)._auto_init(cr, context)  # openerp 5.x
                cr.execute('alter 
table res_partner drop constraint res_partner_name_uniq')
                cr.commit()

Now, myclass works fine in v4.x server but is throwing the error when running 
in v5.0 (with the context arg added).

????

Regards,
Gerry




-------------------- m2f --------------------

--
http://www.openerp.com/forum/viewtopic.php?p=25574#25574

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to