[MIG] Migration account_budget_forecast addons to v14.0

This commit is contained in:
Stéphan Sainléger
2022-06-01 21:40:42 +02:00
parent 0cb6311966
commit 1883014efc
36 changed files with 3424 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
from odoo import api, models, fields
class BudgetCoefficientModel(models.Model):
_name = "budget.coefficient.model"
description = "Coefficient Models for the order line price calculation"
name = fields.Char(string="Name", required=True)
coeff = fields.Float(string="Coefficient", required=True, default=0.00)
note = fields.Text(string="Description")
class BudgetCoefficient(models.Model):
_name = "budget.coefficient"
_description = "Coefficients for the order line price calculation"
name = fields.Char(string="Name", required=True)
coeff = fields.Float(string="Coefficient", required=True, default=0.00)
budget_forecast = fields.Many2one("account.analytic.account", string="Budget")
note = fields.Text(string="Description")