smile_account_asset column pg_proc-poisagg
luchovr opened this issue · comments
Hi,
I can't install smile_account_asset on odoo12 CE, i get a message that the column pg_proc.proisagg does not exist.
Reviewing the documentation i find that since postgresql 11 pg_proc.proisagg (boolean) was replaced with prokind
In account_asset_depreciation_line.py (line 22) it says:
SELECT * FROM pg_proc WHERE proname = 'last' AND proisagg;""")
I modified the line by:
SELECT * FROM pg_proc WHERE proname ? 'last' AND prokind ' 'a';""")
And now I can install.
Just for knowledge in case you consider making modifications.
Greetings and thanks