Skip to content

Commit

Permalink
resolved the bug g2p-1817 now the description pt enable and create cy…
Browse files Browse the repository at this point in the history
…cle is not editable if the program is ended
  • Loading branch information
Abhishek-Wagh committed Feb 7, 2024
1 parent af35093 commit 4939dc1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion g2p_program_cycleless/views/program_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
string="Create New Cycle"
icon="fa-undo"
class="btn-primary"
invisible="is_cycleless and state == 'active'"
invisible="is_cycleless or state != 'active'"
/>
</xpath>
<xpath expr="//field[@name='cycle_ids']/.." position="attributes">
Expand Down
2 changes: 1 addition & 1 deletion g2p_programs/views/programs_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Part of OpenG2P. See LICENSE file for full copyright and licensing details.
<!-- <field name="edit_css" force_save="1" nolabel="1" /> -->
</h1>
<label for="description" string="Description:" />
<field name="description" />
<field name="description" readonly="state == 'ended'" />
<div class="o_row">
<field name="have_members" invisible="1" />
<label for="target_type" string="Target Type:" />
Expand Down
8 changes: 6 additions & 2 deletions g2p_proxy_means_test/views/proxy_means_test_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ Part of OpenG2P. See LICENSE file for full copyright and licensing details.
<xpath expr="//notebook" position="inside">
<page string="PMT Configuration">
<group>
<field name="pmt_config" />
<field name="proxy_means_params_ids" invisible="not pmt_config" />
<field name="pmt_config" readonly="state == 'ended'" />
<field
name="proxy_means_params_ids"
invisible="not pmt_config"
readonly="state == 'ended'"
/>
</group>
</page>
</xpath>
Expand Down

0 comments on commit 4939dc1

Please sign in to comment.