From 3dc18ce1c99dc944fad3d4212c3b6e1a38d92e72 Mon Sep 17 00:00:00 2001
From: JasminSForgeFlow
Date: Fri, 1 Mar 2024 15:46:39 +0530
Subject: [PATCH] [MIG] account_move_budget: Migration to 17.0
---
account_move_budget/README.rst | 4 ++--
account_move_budget/__manifest__.py | 2 +-
account_move_budget/models/account_move_budget.py | 2 +-
account_move_budget/readme/USAGE.md | 3 +--
account_move_budget/static/description/index.html | 4 ++--
account_move_budget/views/account_move_budget_views.xml | 6 +++---
6 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/account_move_budget/README.rst b/account_move_budget/README.rst
index 1d21e00b7..cfcc2d8c4 100644
--- a/account_move_budget/README.rst
+++ b/account_move_budget/README.rst
@@ -49,8 +49,8 @@ expenses report.
Usage
=====
-In order to set up the budget items go to *Invoicing / Accounting /
-Miscellaneous / Account Move Budgets*.
+In order to set up the budget items go to *Accounting / Accounting /
+Journals / Account Move Budgets*.
Bug Tracker
===========
diff --git a/account_move_budget/__manifest__.py b/account_move_budget/__manifest__.py
index 4a53be3bd..8af43d73e 100644
--- a/account_move_budget/__manifest__.py
+++ b/account_move_budget/__manifest__.py
@@ -4,7 +4,7 @@
{
"name": "Account Move Budget",
"summary": "Create Accounting Budgets",
- "version": "16.0.1.0.0",
+ "version": "17.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/account-financial-tools",
"author": "ForgeFlow, " "Odoo Community Association (OCA)",
diff --git a/account_move_budget/models/account_move_budget.py b/account_move_budget/models/account_move_budget.py
index 53dd8d469..c1227be19 100644
--- a/account_move_budget/models/account_move_budget.py
+++ b/account_move_budget/models/account_move_budget.py
@@ -50,7 +50,7 @@ class AccountMoveBudget(models.Model):
default = {}
if "name" not in default:
default["name"] = _("%s (copy)") % self.name
- return super(AccountMoveBudget, self).copy(default=default)
+ return super().copy(default=default)
@api.onchange("date_range_id")
def _onchange_date_range(self):
diff --git a/account_move_budget/readme/USAGE.md b/account_move_budget/readme/USAGE.md
index 9170609e3..627f9d85d 100644
--- a/account_move_budget/readme/USAGE.md
+++ b/account_move_budget/readme/USAGE.md
@@ -1,2 +1 @@
-In order to set up the budget items go to *Invoicing / Accounting /
-Miscellaneous / Account Move Budgets*.
+In order to set up the budget items go to *Accounting / Accounting / Journals / Account Move Budgets*.
diff --git a/account_move_budget/static/description/index.html b/account_move_budget/static/description/index.html
index 25786689c..5a7a0f240 100644
--- a/account_move_budget/static/description/index.html
+++ b/account_move_budget/static/description/index.html
@@ -394,8 +394,8 @@ expenses report.
-
In order to set up the budget items go to Invoicing / Accounting /
-Miscellaneous / Account Move Budgets.
+
In order to set up the budget items go to Accounting / Accounting /
+Journals / Account Move Budgets.
diff --git a/account_move_budget/views/account_move_budget_views.xml b/account_move_budget/views/account_move_budget_views.xml
index 7272ded6a..dc5a51404 100644
--- a/account_move_budget/views/account_move_budget_views.xml
+++ b/account_move_budget/views/account_move_budget_views.xml
@@ -13,20 +13,20 @@
name="action_draft"
string="Set draft"
type="object"
- attrs="{'invisible': [('state', '=', 'draft')]}"
+ invisible="state == 'draft'"
/>