This commit is contained in:
Ivan.x390
2019-07-06 21:24:18 +08:00
parent ac4a5b3f92
commit b4aef620f6
2 changed files with 7 additions and 1 deletions

View File

@@ -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