The code comments say this should be happening before, but it was actually failing with:
2018-12-03 11:31:49,074 48 ERROR test openerp.sql_db: Programming error: column "last_rec_date" of relation "account_move_line" already exists
, in query alter table account_move_line add column last_rec_date date
2018-12-03 11:31:49,074 48 CRITICAL test openerp.service.server: Failed to initialize database `test`.
Traceback (most recent call last):
File "/opt/odoo/custom/src/odoo/openerp/service/server.py", line 941, in preload_registries
registry = RegistryManager.new(dbname, update_module=update_module)
File "/opt/odoo/custom/src/odoo/openerp/modules/registry.py", line 370, in new
openerp.modules.load_modules(registry._db, force_demo, status, update_module)
File "/opt/odoo/custom/src/odoo/openerp/modules/loading.py", line 354, in load_modules
loaded_modules, update_module)
File "/opt/odoo/custom/src/odoo/openerp/modules/loading.py", line 255, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/opt/odoo/custom/src/odoo/openerp/modules/loading.py", line 150, in load_module_graph
getattr(py_module, pre_init)(cr)
File "/opt/odoo/auto/addons/account_financial_report_webkit/hooks.py", line 11, in pre_init_hook
'alter table account_move_line add column last_rec_date date',
File "/opt/odoo/custom/src/odoo/openerp/sql_db.py", line 171, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo/custom/src/odoo/openerp/sql_db.py", line 247, in execute
res = self._obj.execute(query, params)
ProgrammingError: column "last_rec_date" of relation "account_move_line" already exists
* [FIX] account_financial_report_webkit: General Ledger, we have to escape the HTML characters when printing the label (e.g. '<' and '>' characters mess up the report layout)
This options exists in the partner balance from the account module. It
was not there in the webkit module though. The naming is the same as
from the odoo module.
A very old commit message for the webkit report mentions this
functionality but apparently it is not there.
By default all partners are shown as before. This option works for both
PDF and XLS reports.
With current code, the top level accounts (the 0 one) is ignored in
the population of debit, credit and balance data, provoking that the
report shows a line with all 0's, which leads to confussion to users.
I see no reason for zeroing this data, as it can be significant for
certain account charts, and can be easily ignored for those who not.