Skip to content
Snippets Groups Projects
Commit 133374a5 authored by Emanuel Buzey's avatar Emanuel Buzey
Browse files

[IMP] energy_selfconsumption: add resseler field to form

parent 69121fdc
No related branches found
No related tags found
No related merge requests found
Pipeline #60468 passed
......@@ -88,6 +88,11 @@ class Selfconsumption(models.Model):
invoicing_mode = fields.Selection(INVOICING_VALUES, string="Invoicing Mode")
product_id = fields.Many2one("product.product", string="Product")
contract_template_id = fields.Many2one("contract.template")
reseller_id = fields.Many2one(
"energy_project.reseller",
string="Energy Reseller",
help="Select the associated Energy Reseller",
)
def get_distribution_tables(self):
self.ensure_one()
......
......@@ -165,6 +165,10 @@
<field
name="owner_id"
attrs="{'readonly': [('state', 'not in', ['draft', 'activation'])]}"
/>
<field
name="reseller_id"
attrs="{'readonly': [('state', 'not in', ['draft', 'activation'])]}"
/>
</group>
<group>
......
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