Skip to content

Commit

Permalink
Add fixes to the tests for spp_idpass and spp_idqueue modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalesedwin1123 committed Jan 10, 2025
1 parent 8ab878e commit 29d76d8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,11 @@
</group>
<group colspan="6" col="6">
<group colspan="2">
<field name="gender" readonly="state != 'draft'" />
<field
name="gender"
readonly="state != 'draft'"
options="{'no_open':true,'no_edit':true,'no_create':true}"
/>
</group>
<group colspan="2">
<field
Expand Down Expand Up @@ -557,7 +561,7 @@
<field name="family_name" readonly="1" class="oe_edit_only" />
<field name="given_name" readonly="1" class="oe_edit_only" />
<field name="addl_name" readonly="1" class="oe_edit_only" />
<field name="gender" readonly="1" />
<field name="gender" readonly="1" options="{'no_open':true}" />
<field
name="phone"
readonly="1"
Expand Down
2 changes: 1 addition & 1 deletion spp_idpass/views/id_pass_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
title="Generate Auth Token"
icon="fa-key"
class="btn-success"
groups="g2p_registry_base.group_g2p_admin,spp_idqueue.group_g2p_id_validator"
groups="g2p_registry_base.group_g2p_admin"
/>
</tree>
</field>
Expand Down
1 change: 1 addition & 0 deletions spp_idqueue/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"wizard/batch_create_wizard.xml",
"wizard/multi_id_request_wizard.xml",
"views/registrant.xml",
"views/id_pass_view.xml",
"views/res_config_settings.xml",
],
"assets": {"web.assets_backend": ["spp_idqueue/static/src/js/form_controller.js"]},
Expand Down
14 changes: 14 additions & 0 deletions spp_idqueue/views/id_pass_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<odoo>
<record id="view_spp_idpass_tree_extend" model="ir.ui.view">
<field name="name">view_spp_idpass_tree_extend</field>
<field name="model">spp.id.pass</field>
<field name="inherit_id" ref="spp_idpass.view_spp_idpass_tree" />
<field name="arch" type="xml">
<xpath expr="//button[@name='generate_auth_token']" position="attributes">
<attribute
name="groups"
>g2p_registry_base.group_g2p_admin,spp_idqueue.group_g2p_id_validator</attribute>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 29d76d8

Please sign in to comment.