[IMP] l10n_eg_edi_eta : neutralise production env
before this commit: The `odoo-bin neutralize` command would not neutralise l10n_eg_edi_eta closes odoo/odoo#92298 X-original-commit: 9a0a644444be4cceb4bdc43838dc6ce414608437 Signed-off-by: Josse Colpaert <jco@odoo.com>
This commit is contained in:
committed by
Josse Colpaert
parent
cfbd8990a3
commit
58b3625bc4
@@ -14,3 +14,17 @@ class ResCompany(models.Model):
|
||||
l10n_eg_invoicing_threshold = fields.Float('Invoicing Threshold', default=0.0,
|
||||
help="Threshold at which you are required to give the VAT number "
|
||||
"of the customer. ")
|
||||
|
||||
# ------------------------------------------------------------
|
||||
# neutralize
|
||||
# ------------------------------------------------------------
|
||||
|
||||
def _neutralize(self):
|
||||
super()._neutralize()
|
||||
self.flush_model()
|
||||
self.invalidate_model()
|
||||
self.env.cr.execute("""
|
||||
UPDATE res_company
|
||||
SET l10n_eg_production_env = False,
|
||||
l10n_eg_client_secret = 'dummy'
|
||||
""")
|
||||
|
||||
Reference in New Issue
Block a user