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

[IMP] energy_selfconsumption: readonly if type is variable schedule

parent bd93d8f9
No related branches found
No related tags found
1 merge request!342Feature/variable hourly dist table
Pipeline #93540 passed
......@@ -65,7 +65,8 @@
widget="one2many"
mode="list"
context="{'default_distribution_table_id':id}"
attrs="{'readonly': [('state', 'not in', ['draft'])]}"
attrs="{'readonly': ['|', ('type', '=', 'variable_schedule'), '&', ('type', '=', 'fixed'), ('state', 'not in', ['draft'])]}"
>
>
<tree editable="bottom">
<field
......
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