[IMP] l10n_in_edi: add neutralize on res.company
set test env and remove username,password,token and token validity so call never go to production server from test db closes odoo/odoo#90084 X-original-commit: 955a83f9e773ad1bf7ce0aa4a834d9ca833cd580 Signed-off-by: William André (wan) <wan@odoo.com>
This commit is contained in:
committed by
william-andre
parent
1ce17bde68
commit
b64348fa31
@@ -27,4 +27,10 @@ class ResCompany(models.Model):
|
||||
super()._neutralize()
|
||||
self.flush()
|
||||
self.invalidate_cache()
|
||||
self.env.cr.execute("UPDATE res_company SET l10n_in_edi_production_env = false")
|
||||
self.env.cr.execute("""UPDATE res_company SET
|
||||
l10n_in_edi_production_env = false,
|
||||
l10n_in_edi_username = Null,
|
||||
l10n_in_edi_password = Null,
|
||||
l10n_in_edi_token = Null,
|
||||
l10n_in_edi_token_validity = Null
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user