update account 相关优化财务

This commit is contained in:
Ivan Office
2024-10-01 23:49:41 +08:00
parent b22e877415
commit e59938bd94
4 changed files with 17 additions and 5 deletions

View File

@@ -385,6 +385,18 @@ class ResConfigSettings(models.TransientModel):
self._cr.commit()
except Exception as e:
pass
# pos处理清支付清账本
try:
rec = self.env['pos.config'].search([])
rec.write({
'invoice_journal_id': None,
'journal_id': None,
'payment_method_ids': None,
'fiscal_position_ids': None,
})
self._cr.commit()
except Exception as e:
pass
# 日记账处理
try:
rec = self.env['account.journal'].search([])