[MIG] account_move_budget: Migration to 17.0

This commit is contained in:
JasminSForgeFlow
2024-03-01 15:46:39 +05:30
parent 318aa9a537
commit 3dc18ce1c9
6 changed files with 10 additions and 11 deletions

View File

@@ -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
===========

View File

@@ -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)",

View File

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

View File

@@ -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*.

View File

@@ -394,8 +394,8 @@ expenses report.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<p>In order to set up the budget items go to <em>Invoicing / Accounting /
Miscellaneous / Account Move Budgets</em>.</p>
<p>In order to set up the budget items go to <em>Accounting / Accounting /
Journals / Account Move Budgets</em>.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>

View File

@@ -13,20 +13,20 @@
name="action_draft"
string="Set draft"
type="object"
attrs="{'invisible': [('state', '=', 'draft')]}"
invisible="state == 'draft'"
/>
<button
name="action_confirm"
string="Confirm"
type="object"
attrs="{'invisible': [('state', '!=', 'draft')]}"
invisible="state != 'draft'"
class="oe_highlight"
/>
<button
name="action_cancel"
string="Cancel"
type="object"
attrs="{'invisible': [('state', '=', 'cancelled')]}"
invisible="state == 'cancelled'"
/>
<field name="state" widget="statusbar" />
</header>