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 - + 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):