mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
fix remove_account_chart V17
This commit is contained in:
@@ -381,11 +381,18 @@ class ResConfigSettings(models.TransientModel):
|
||||
})
|
||||
except Exception as e:
|
||||
pass # raise Warning(e)
|
||||
|
||||
|
||||
try:
|
||||
rec = self.env['account.journal'].search([])
|
||||
rec.write({
|
||||
'default_account_id': False,
|
||||
'suspense_account_id': False
|
||||
})
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
seqs = []
|
||||
self.env.company.write({
|
||||
'chart_template_id': False,
|
||||
})
|
||||
|
||||
res = self.remove_app_data(to_removes, seqs)
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user