summaryrefslogtreecommitdiff
path: root/addons/note
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-05-05 15:03:06 +0200
committerRaphael Collet <rco@openerp.com>2015-05-05 17:33:16 +0200
commit0c665edb66098d95a407a0d2be9351bbea81b2db (patch)
tree4ed9585ecfdd7cbeb806c80a1411815fa268b7e0 /addons/note
parent071152216fe44039f75e821b0cbf31344b66d174 (diff)
[FIX] models: make sure an environment is available when we access field.digits
Accessing `field.digits` can crash if no environment is available at that point. This happens in function `get_pg_type()`, which is called from method `_auto_init()`. An environment is simply created in the method's scope to be available for `field.digits`.
Diffstat (limited to 'addons/note')
0 files changed, 0 insertions, 0 deletions