diff --git a/app_odoo_customize/__manifest__.py b/app_odoo_customize/__manifest__.py index 0a6e26b4..3ce128b7 100644 --- a/app_odoo_customize/__manifest__.py +++ b/app_odoo_customize/__manifest__.py @@ -23,7 +23,7 @@ { 'name': 'Odoo Customize(Debranding, My Odoo)', - 'version': '12.19.06.02', + 'version': '12.19.07.06', 'author': 'Sunpop.cn', 'category': 'Productivity', 'website': 'https://www.sunpop.cn', @@ -69,6 +69,7 @@ 25. Add remove expense data 26. Add multi uninstall modules 27. Add odoo 13 support, Just install this app on odoo 13, master branch of odoo github. + 28. Fix pos remove data for account close. This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user. diff --git a/app_odoo_customize/models/res_config_settings.py b/app_odoo_customize/models/res_config_settings.py index 74f54c62..4729db89 100644 --- a/app_odoo_customize/models/res_config_settings.py +++ b/app_odoo_customize/models/res_config_settings.py @@ -203,6 +203,11 @@ class ResConfigSettings(models.TransientModel): seq.write({ 'number_next': 1, }) + # 更新要关帐的值,因为 store=true 的计算字段要重置 + statement = self.env['account.bank.statement'].search([]) + for s in statement: + s._end_balance() + except Exception as e: pass # raise Warning(e) return True