Comment 3 for bug 996816

Revision history for this message
Amit Parik (amit-parik) wrote :

class test_test_new(osv.osv):
    _inherit = 'test.test'
    _name = 'test.test.new'
    _columns = {
        'addnew': fields.char('New', size=64),
        'partner' : fields.many2one('res.partner', 'Partner'),
        }
test_test_new()

class test_test(osv.osv):
 _inherit = 'test.test'
 _name = 'test.test'
 _columns = {
     'user': fields.many2one('res.user','User'),
     }
test_test()

So by suing this example if you check your print your table test_test_new then you didn't see the User field (which is the behaviour because test_test_new is loaded first then after we added a user field). If you change the seq of class like first main object then inherit main object and then load the test.test.new. You can see the User field (on test.test.new ).

*If we have update all object as you suggest then we have to check all the object list which are already inherited then we have to add this new field on all inherited object, I think which doesn't make sense. If I inherit a one object 10 times and then for all this 10 object we have to add new field.

That's I don't think we can consider this as a bug.

Please share your views

Thanks and waiting for your reply! Sorry for the inconvenience faced on comment!