When there are a lot of account.move.line (several millions) and print any of
the Qweb reports, that will generate also a lot of transient objects.
As these objects are created with an "insert" query, the cleaning normally
triggered by the count of the records in transient tables is not done, so only
the cleaning based on the age of the records is processed (by default, records
older than 1 hours are deleted), but the cron task is only ran one time per
day. For large setups this can lead to memory errors at that point. This change
prevents the memory error by executing the transient record cleanup for the
report models in this module in SQL.
This fixes failing tests in integration environments where `account_analytic_required` is installed, which fail with:
IntegrityError: null value in column "analytic_policy" violates not-null constraint
Module `account_fiscal_year` allows companies with fiscal years with duration
different from 1 year to make financial reporting, but the method used is
overwrting a standard method `compute_fiscalyear_dates` on company, so it's
transparent for this module, and you don't need to have it installed
for most of the companies, that have regular fiscal years.
File "/home/elbati/workspace/odoo/instances/demo9-community/parts/odoo-ocb/openerp/http.py", line 1502, in load_addons
manifest = ast.literal_eval(open(manifest_path).read())
File "/usr/lib/python2.7/ast.py", line 49, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python2.7/ast.py", line 37, in parse
return compile(source, filename, mode, PyCF_ONLY_AST)
File "<unknown>", line 15
'Odoo Community Association (OCA)',
^
SyntaxError: invalid syntax