Community mailing list archives

community@mail.odoo.com

Re: Other color scheme for the test environment in odoo ... ?

by
NUMERIGRAPHE, Lionel Sausin
- 03/27/2015 07:15:55
As a simple solution here is the SQL transaction we automatically run on 
each test server when we build them from the production database's backups:
BEGIN;
               UPDATE res_partner SET image=NULL WHERE id IN (
                   SELECT partner_id FROM res_company);
               UPDATE res_company SET logo_web=NULl;
               -- remove email gateways (reception & sending)
               DELETE FROM ir_mail_server;
               DELETE FROM fetchmail_server;
             COMMIT;
It deletes the logo, and prevents the email gateway from messing with 
legitimate messages.

Probably some of us do better, and could propose something as part of 
OCA server-tools?