Skip to content
Snippets Groups Projects
Commit 9eb2dc3218f5 authored by Anael Lorimier's avatar Anael Lorimier
Browse files

The field analytic dimensions is now a function and not a char to avoid the...

The field analytic dimensions is now a function and not a char to avoid the creation of a database column
parent e56ef18f309c
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,8 @@
# Create a field that will be used for replacement in the view
if analytic:
columns['analytic_dimensions'] = fields.char(
string=u"",
columns['analytic_dimensions'] = fields.function(
lambda self, cr, uid, ids, *a: {i: '' for i in ids},
string=u"Analytic Dimensions",
readonly=True,
invisible=True,
......@@ -91,5 +92,6 @@
readonly=True,
invisible=True,
store=False,
)
col_pattern = '{pre}{n}_{suf}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment