Skip to content
Snippets Groups Projects
Commit 8140d9ca authored by Emanuel Buzey's avatar Emanuel Buzey Committed by Daniil Digtyar Vasilieva
Browse files

[FIX] energy_project: add project_id to contract model

parent 930a5d43
No related branches found
No related tags found
2 merge requests!253[REL] Release 06/11/23,!211[IMP] energy_selfconsumption: invoicing acquired power
This commit is part of merge request !211. Comments created here will be created in the context of that merge request.
__init__.py 0 → 100644
......@@ -3,3 +3,4 @@ from . import project_type
from . import inscription
from . import reseller
from . import supplier
from . import contract
from odoo import fields, models
class Contract(models.Model):
_inherit = "contract.contract"
project_id = fields.Many2one(
"energy_project.project",
required=True,
ondelete="restrict",
string="Energy Project",
check_company=True,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment