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',
|
'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',
|
'author': 'odooai.cn',
|
||||||
'category': 'Extra Tools',
|
'category': 'Extra Tools',
|
||||||
'website': 'https://www.odooai.cn',
|
'website': 'https://www.odooai.cn',
|
||||||
|
|||||||
@@ -381,11 +381,18 @@ class ResConfigSettings(models.TransientModel):
|
|||||||
})
|
})
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass # raise Warning(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 = []
|
seqs = []
|
||||||
self.env.company.write({
|
|
||||||
'chart_template_id': False,
|
|
||||||
})
|
|
||||||
res = self.remove_app_data(to_removes, seqs)
|
res = self.remove_app_data(to_removes, seqs)
|
||||||
return res
|
return res
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user