mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt pos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user