mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[MIG] account_move_budget: Migration to 14.0
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "Account Move Budget",
|
||||
"summary": "Create Accounting Budgets",
|
||||
"version": "13.0.1.0.0",
|
||||
"version": "14.0.1.0.0",
|
||||
"category": "Accounting & Finance",
|
||||
"website": "https://github.com/OCA/account-financial-tools",
|
||||
"author": "ForgeFlow, " "Odoo Community Association (OCA)",
|
||||
|
||||
@@ -10,18 +10,29 @@ class AccountMoveBudget(models.Model):
|
||||
_description = "Account Move Budget"
|
||||
_inherit = ["mail.thread", "mail.activity.mixin"]
|
||||
|
||||
name = fields.Char(required=True, track_visibility="onchange")
|
||||
description = fields.Char(track_visibility="onchange")
|
||||
name = fields.Char(
|
||||
required=True,
|
||||
tracking=True,
|
||||
)
|
||||
description = fields.Char(
|
||||
tracking=True,
|
||||
)
|
||||
date_range_id = fields.Many2one(comodel_name="date.range", string="Date range")
|
||||
date_from = fields.Date(
|
||||
required=True, string="From Date", track_visibility="onchange"
|
||||
required=True,
|
||||
string="From Date",
|
||||
tracking=True,
|
||||
)
|
||||
date_to = fields.Date(
|
||||
required=True,
|
||||
string="To Date",
|
||||
tracking=True,
|
||||
)
|
||||
date_to = fields.Date(required=True, string="To Date", track_visibility="onchange")
|
||||
state = fields.Selection(
|
||||
[("draft", "Draft"), ("confirmed", "Confirmed"), ("cancelled", "Cancelled")],
|
||||
required=True,
|
||||
default="draft",
|
||||
track_visibility="onchange",
|
||||
tracking=True,
|
||||
)
|
||||
line_ids = fields.One2many(
|
||||
comodel_name="account.move.budget.line", inverse_name="budget_id", copy=True
|
||||
|
||||
1
setup/account_move_budget/odoo/addons/account_move_budget
Symbolic link
1
setup/account_move_budget/odoo/addons/account_move_budget
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../../account_move_budget
|
||||
6
setup/account_move_budget/setup.py
Normal file
6
setup/account_move_budget/setup.py
Normal file
@@ -0,0 +1,6 @@
|
||||
import setuptools
|
||||
|
||||
setuptools.setup(
|
||||
setup_requires=['setuptools-odoo'],
|
||||
odoo_addon=True,
|
||||
)
|
||||
Reference in New Issue
Block a user