Skip to content
Snippets Groups Projects

[IMP] energy_selfconsumption: importation of selfconsumption inscriptions, supply points and distribution tables by CSV

Compare and Show latest version
9 files
+ 38
16
Compare changes
  • Side-by-side
  • Inline
Files
9
@@ -8,7 +8,10 @@ class SupplyPoint(models.Model):
name = fields.Char(required=True)
code = fields.Char(string="CUPS", required=True)
owner_id = fields.Many2one("res.partner", string="Owner", required=True)
owner_id = fields.Many2one("res.partner", string="Owner", required=True,
help="Partner with the legal obligation of the supply point")
partner_id = fields.Many2one("res.partner", string="Partner", required=True,
help="Partner subscribed to the self-consumption project")
company_id = fields.Many2one(
"res.company", default=lambda self: self.env.company, readonly=True
)
Loading