From 030427e8468368990bb6c32388cd17577bd4bb4a Mon Sep 17 00:00:00 2001 From: ronozoro Date: Wed, 7 Aug 2024 15:23:02 +0300 Subject: [PATCH] add value date for easy tracking --- .../views/account_budget_views.xml | 6 --- .../views/hr_expense_view.xml | 37 ------------------- .../models/account_payment.py | 31 +--------------- .../views/account_payment_views.xml | 4 -- .../models/account_budget.py | 1 + .../models/account_payment.py | 2 +- 6 files changed, 3 insertions(+), 78 deletions(-) diff --git a/odex25_accounting/account_budget_custom/views/account_budget_views.xml b/odex25_accounting/account_budget_custom/views/account_budget_views.xml index ad09f4343..269b48567 100755 --- a/odex25_accounting/account_budget_custom/views/account_budget_views.xml +++ b/odex25_accounting/account_budget_custom/views/account_budget_views.xml @@ -85,9 +85,6 @@ - - - @@ -103,9 +100,6 @@ - - - diff --git a/odex25_accounting/exp_budget_check/views/hr_expense_view.xml b/odex25_accounting/exp_budget_check/views/hr_expense_view.xml index dcdbd72db..9892be1dd 100644 --- a/odex25_accounting/exp_budget_check/views/hr_expense_view.xml +++ b/odex25_accounting/exp_budget_check/views/hr_expense_view.xml @@ -26,42 +26,5 @@ - - crossovered.budget.lines.tree - crossovered.budget.lines - - - - - - - - - - - crossovered.budget.lines.tree - crossovered.budget.lines - - - - - - - - - - - crossovered.budget.lines.tree - crossovered.budget.lines - - - - - - - - - - \ No newline at end of file diff --git a/odex25_accounting/odex25_account_accountant/models/account_payment.py b/odex25_accounting/odex25_account_accountant/models/account_payment.py index 1822c1345..a4f057239 100644 --- a/odex25_accounting/odex25_account_accountant/models/account_payment.py +++ b/odex25_accounting/odex25_account_accountant/models/account_payment.py @@ -6,8 +6,6 @@ from odoo.exceptions import UserError class AccountPayment(models.Model): _inherit = "account.payment" - analytic_account_id = fields.Many2one('account.analytic.account', string='Analytic Account', copy=False) - def action_open_manual_reconciliation_widget(self): ''' Open the manual reconciliation widget for the current payment. :return: A dictionary representing an action. @@ -32,31 +30,4 @@ class AccountPayment(models.Model): 'type': 'ir.actions.client', 'tag': 'manual_reconciliation_view', 'context': action_context, - } - - def action_post(self): - res = super(AccountPayment, self).action_post() - for payment in self: - payment.state= 'posted' - if payment.analytic_account_id and payment.move_id: - for line in payment.move_id.line_ids: - line.analytic_account_id = payment.analytic_account_id.id - return res - - def action_cancel(self): - res = super(AccountPayment, self).action_cancel() - for payment in self: - payment.state= 'cancel' - if payment.analytic_account_id and payment.move_id: - for line in payment.move_id.line_ids: - line.analytic_account_id = payment.analytic_account_id.id - return res - - def action_draft(self): - res = super(AccountPayment, self).action_draft() - for payment in self: - payment.state= 'draft' - if payment.analytic_account_id and payment.move_id: - for line in payment.move_id.line_ids: - line.analytic_account_id = payment.analytic_account_id.id - return res \ No newline at end of file + } \ No newline at end of file diff --git a/odex25_accounting/odex25_account_accountant/views/account_payment_views.xml b/odex25_accounting/odex25_account_accountant/views/account_payment_views.xml index fb23a37d5..00f14a244 100644 --- a/odex25_accounting/odex25_account_accountant/views/account_payment_views.xml +++ b/odex25_accounting/odex25_account_accountant/views/account_payment_views.xml @@ -8,10 +8,6 @@ account.group_account_manager - - - -