summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-10-08 10:47:25 +0200
committerRaphael Collet <rco@openerp.com>2014-10-08 16:39:59 +0200
commit619a844428a46c731a6a4add0c73b6b963622993 (patch)
tree9d882b13c9b3c66eac5b813a2231a741c4d4f8ea /addons/analytic_user_function/analytic_user_function_view.xml
parent10142d7dc7aa178d68c17c657d4ae445199a8aa0 (diff)
[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.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions