Skip to content
Snippets Groups Projects
Commit 4204f215 authored by Daniil Digtyar Vasilieva's avatar Daniil Digtyar Vasilieva :call_me:
Browse files

[IMP] energy_selfconsumption: updated wizard tree view

parent 680eaf12
No related branches found
No related tags found
1 merge request!250[IMP] energy_selfconsumption: add email template
This commit is part of merge request !247. Comments created here will be created in the context of that merge request.
......@@ -6,7 +6,7 @@ class InvoicingWizard(models.TransientModel):
_name = "energy_selfconsumption.invoicing.wizard"
power = fields.Float(string="Total Energy Generated (kWh)")
contract_ids = fields.Many2many("contract.contract")
contract_ids = fields.Many2many("contract.contract", readonly=True)
@api.constrains("contract_ids")
def constraint_contract_ids(self):
......
......@@ -10,8 +10,16 @@
<form string="Invoicing Energy Delivered">
<sheet>
<group>
<field name="power" />
<field name="contract_ids" />
<field name="power" />
<field name="contract_ids">
<tree>
<field name="partner_id" />
<field name="supply_point_name" />
<field name="code" />
<field name="next_period_date_start" />
<field name="next_period_date_end" />
</tree>
</field>
</group>
</sheet>
<footer>
......
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