From 7d2014fddd520d5ddbbbef46c1ed051125858e6d Mon Sep 17 00:00:00 2001 From: eman Date: Tue, 16 Jul 2024 02:26:09 +0300 Subject: [PATCH 1/2] FIX issue in account_budget_custom --- .../account_budget_custom/security/budget_groups.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/odex25_accounting/account_budget_custom/security/budget_groups.xml b/odex25_accounting/account_budget_custom/security/budget_groups.xml index 80ba9d059..60f4c2128 100644 --- a/odex25_accounting/account_budget_custom/security/budget_groups.xml +++ b/odex25_accounting/account_budget_custom/security/budget_groups.xml @@ -3,14 +3,14 @@ Budget User - + Budget Department Manager - + @@ -18,7 +18,7 @@ Budget Executive Director - + From abc75407406b55b2999670893eed76e3e06e7f4f Mon Sep 17 00:00:00 2001 From: ronozoro Date: Sun, 21 Jul 2024 13:45:08 +0300 Subject: [PATCH 2/2] fix migration accounting issue --- .../hr_expense_petty_cash/models/account_move.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/odex25_accounting/hr_expense_petty_cash/models/account_move.py b/odex25_accounting/hr_expense_petty_cash/models/account_move.py index d4692abd0..3320470c5 100644 --- a/odex25_accounting/hr_expense_petty_cash/models/account_move.py +++ b/odex25_accounting/hr_expense_petty_cash/models/account_move.py @@ -249,12 +249,11 @@ class AccountPayment(models.Model): def action_post(self): ''' update petty cash expenses state ''' - if self.payment_petty_cash_id: - self.payment_petty_cash_id.write({'state': 'done'}) - if self.petty_cash_id: - self.petty_cash_id.write({'is_paid': True}) - print("petty_cash_remaining",self.petty_cash_id.petty_cash_remaining) - print("amount",self.amount) + for rec in self: + if rec.payment_petty_cash_id: + rec.payment_petty_cash_id.write({'state': 'done'}) + if rec.petty_cash_id: + rec.petty_cash_id.write({'is_paid': True}) return super().action_post() def _prepare_move_line_default_vals(self, write_off_line_vals=None):