Contributors mailing list archives
contributors@odoo-community.org
Browse archives
Re: Weird issue: database does not run tests
by
ClosingAp Open Source Integrators Europe, LDA, Daniel Reis
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;
UPDATE 2
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
Daniel
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;
UPDATE 2
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
Daniel
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ónMobile: (+521) 477-752-22-30Twitter: @moylop260Twitter: @vauxoo_______________________________________________
Mailing-List: https://odoo-community.org/groups/contributors-15
Post to: mailto:contributors@odoo-community.org
Unsubscribe: https://odoo-community.org/groups?unsubscribe
Reference
-
Weird issue: database does not run tests
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis-
Re: Weird issue: database does not run tests
byClosingAp Open Source Integrators Europe, LDA, Daniel Reis -
Re: Weird issue: database does not run tests
byVauxoo, Moisés López Calderón -
Re: Weird issue: database does not run tests
byWeb-veistämö Oy/Avoin.Systems, Miku Laitinen. -
Re: Weird issue: database does not run tests
by Richard deMeester <richard.demeester@willdooit.com> - 24/09/2020 12:39:36 - 2 -
Re: Weird issue: database does not run tests
by Richard deMeester <richard.demeester@willdooit.com> - 24/09/2020 12:38:39 - 2 -
Re: Weird issue: database does not run tests
byAkretion France., David BEAL
-