odoo/openerp/addons/test_inherit
Raphael Collet 619a844428 [FIX] fields: in to_column(), returning self.column is generally not correct
Consider the following example:

    class Foo(models.Model):
        _name = 'foo'
        _columns = {
            'state': fields.selection([('a', 'A')]),
        }

    class Bar(models.Model):
        _inherit = 'foo'
        state = fields.Selection(selection_add=[('b', 'B')])

The attribute 'column' of the field does not have the full selection list,
therefore the column object cannot not be reused, even a copy of it.  The
solution is to systematically recreate the column from the field's final
specification, except for function fields that have no sensible way for being
recreated.
2014-10-08 16:39:59 +02:00
..
tests [FIX] fields: in to_column(), returning self.column is generally not correct 2014-10-08 16:39:59 +02:00
__init__.py [MERGE] new v8 api by rco 2014-07-06 17:05:41 +02:00
__openerp__.py [FIX] fields: in to_column(), returning self.column is generally not correct 2014-10-08 16:39:59 +02:00
demo_data.xml [FIX] fields: in to_column(), returning self.column is generally not correct 2014-10-08 16:39:59 +02:00
ir.model.access.csv [IMP] test_inherit: add test case, redefine Many2one field in inherited model 2014-08-22 10:01:41 +02:00
models.py [FIX] fields: in to_column(), returning self.column is generally not correct 2014-10-08 16:39:59 +02:00