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:
@@ -23,7 +23,7 @@
|
||||
|
||||
{
|
||||
'name': 'odoo17 Tweak,Ai Employee,Boost,Customize All in One. Customize,UI,Boost,Security,Data,Development Enhance',
|
||||
'version': '23.11.16',
|
||||
'version': '24.02.27',
|
||||
'author': 'odooai.cn',
|
||||
'category': 'Extra Tools',
|
||||
'website': 'https://www.odooai.cn',
|
||||
|
||||
@@ -382,10 +382,17 @@ class ResConfigSettings(models.TransientModel):
|
||||
except Exception as e:
|
||||
pass # raise Warning(e)
|
||||
|
||||
seqs = []
|
||||
self.env.company.write({
|
||||
'chart_template_id': False,
|
||||
try:
|
||||
rec = self.env['account.journal'].search([])
|
||||
rec.write({
|
||||
'default_account_id': False,
|
||||
'suspense_account_id': False
|
||||
})
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
seqs = []
|
||||
|
||||
res = self.remove_app_data(to_removes, seqs)
|
||||
return res
|
||||
|
||||
|
||||
Reference in New Issue
Block a user