Contributors mailing list archives

Browse archives


Re: Weird issue: database does not run tests

ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
- 25/09/2020 13:40:53
Thank you all for your ideas.
I believe Moises has hit the nail in the head.

Looking at the database, I found that my custom module didn't have the demonstration data flag set:

12-work=# select demo, count(*) from ir_module_module where state='installed' group by demo;
 demo | count
 f    |     2
 t    |    36
(2 rows)

I tried the following:

12-work=# update ir_module_module set demo=True where state='installed' and demo=False;

After doing this, tests are now executed as expected. \o/
I still think this there is an Odoo framework bug somewhere, but it least the case is identified and a workaround to save the database was found.

Thanks again

On 24/09/2020 14:37, Moises Lopez wrote:
Hi Daniel

I noticed recently that if a module has errors loading data demo Odoo will disable it only for that module without errors but warnings.

Could you check if the boolean "ir_module_module.demo" is True or not for that module?

Moisés López Calderón
Mobile: (+521) 477-752-22-30
Twitter: @moylop260
hangout: - Odoo Gold Partner
Twitter: @vauxoo

Post to: