Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add enumerator detail group inside individual form "other" page #178

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion g2p_enumerator/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"author": "OpenG2P",
"website": "https://openg2p.org",
"license": "Other OSI approved licence",
"depends": ["g2p_registry_group", "base"],
"depends": ["g2p_registry_group", "g2p_registry_individual", "base"],
"data": [
"security/ir.model.access.csv",
"data/sequence.xml",
"views/g2p_enumerator_view.xml",
"views/group_view.xml",
"views/individual.xml",
"views/registration_portal_view.xml",
],
"assets": {
Expand Down
10 changes: 6 additions & 4 deletions g2p_enumerator/views/group_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,18 @@
<field name="model">res.partner</field>
<field name="inherit_id" ref="g2p_registry_group.view_groups_form" />
<field name="arch" type="xml">
<xpath expr="//page[@name='other']" position="after">
<page string="Enumerator Details" name="enumerator_details">
<group>
<xpath expr="//page[@name='other']" position="inside">

<group name="other_info" colspan="2" cols="2">
<group cols="1" colspan="1" name="enumerator_details" string="Enumerator Details">
<field name="create_uid" string="Created by" readonly="1" />
<field name="creator_eid" string="Creator's EID" readonly="1" />
<field name="enumerator_id" string="Enumerator" />
<field name="enumerator_user_id" string="Enumerator User ID" />
<field name="data_collection_date" />
</group>
</page>
</group>

</xpath>
</field>
</record>
Expand Down
26 changes: 26 additions & 0 deletions g2p_enumerator/views/individual.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Part of OpenG2P Registry. See LICENSE file for full copyright and licensing details.
-->
<odoo>
<record id="view_individual_form_enumerator_details" model="ir.ui.view">
<field name="name">view_individual_form_enumerator_details</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="g2p_registry_individual.view_individuals_form" />
<field name="arch" type="xml">

<xpath expr="//page[@name='other']" position="inside">
<group name="other_info" colspan="2" cols="2">
<group cols="1" colspan="1" name="enumerator_details" string="Enumerator Details">
<field name="creator_eid" string="Creator's EID" readonly="1" />
<field name="enumerator_id" string="Enumerator" />
<field name="enumerator_user_id" string="Enumerator User ID" />
<field name="data_collection_date" />
</group>
</group>

</xpath>
</field>
</record>

</odoo>
Loading