[MIG] Migration account_budget_forecast addons to v14.0
This commit is contained in:
24
account_budget_forecast/models/account_move.py
Normal file
24
account_budget_forecast/models/account_move.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import models, fields, api
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = "account.move.line"
|
||||
|
||||
budget_forecast_id = fields.Many2one(
|
||||
"budget.forecast",
|
||||
string="Budget line",
|
||||
index=True,
|
||||
store=True,
|
||||
readonly=False,
|
||||
copy=False,
|
||||
)
|
||||
|
||||
@api.depends("budget_forecast_id")
|
||||
def _transfer_budget_forecast_line(self):
|
||||
for record in self:
|
||||
import pdb
|
||||
|
||||
pdb.set_trace()
|
||||
record.analytic_line_ids.budget_forecast_id = record.budget_forecast_id.id
|
Reference in New Issue
Block a user