summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2014-10-02 17:01:03 +0200
committerRaphael Collet <rco@openerp.com>2014-10-09 09:18:02 +0200
commit36174fcc6e49fe11ed16325b229690bb48736e62 (patch)
tree95af78839d0f2acf9e1153ba0752e421f6fddacc /addons/analytic_user_function/analytic_user_function_view.xml
parent3f31081bc2351e352d8e6d8052f27a59b60adb1b (diff)
[IMP] fields: set the default value to the closest field.default or _defaults
This solves a subtle issue: in the following case, the class Bar should override the default value set by Foo. But in practice it was not working, because _defaults is looked up before field.default. class Foo(models.Model): _name = 'foo' _columns = { 'foo': fields.char('Foo'), } _defaults = { 'foo': "Foo", } class Bar(models.Model): _inherit = 'foo' foo = fields.Char(default="Bar") The change makes field.default and the model's _defaults consistent with each other.
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions