-
Notifications
You must be signed in to change notification settings - Fork 0
fix(spp_change_request_v2): add no_create/no_open to lookup fields in CR detail views #33
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,7 +31,7 @@ | |
| <group> | ||
| <group string="Group Information"> | ||
| <field name="group_name" required="1" /> | ||
| <field name="group_type_id" options="{'no_create': True}" /> | ||
| <field name="group_type_id" options="{'no_create': True, 'no_open': True}" /> | ||
| </group> | ||
| <group string="Contact"> | ||
| <field name="phone" /> | ||
|
|
@@ -61,7 +61,7 @@ | |
| <field name="head_birthdate" /> | ||
| <field | ||
| name="head_gender_id" | ||
| options="{'no_create': True}" | ||
| options="{'no_create': True, 'no_open': True}" | ||
| /> | ||
| <field name="head_phone" /> | ||
| </group> | ||
|
|
@@ -75,9 +75,9 @@ | |
| <field name="city" /> | ||
| </group> | ||
| <group> | ||
| <field name="state_id" options="{'no_create': True}" /> | ||
| <field name="state_id" options="{'no_create': True, 'no_open': True}" /> | ||
| <field name="postal_code" /> | ||
| <field name="country_id" options="{'no_create': True}" /> | ||
| <field name="country_id" options="{'no_create': True, 'no_open': True}" /> | ||
|
Comment on lines
+78
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other views in this PR (e.g., |
||
| </group> | ||
| </group> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -47,7 +47,11 @@ | |
|
|
||
| <group> | ||
| <group string="Source Household"> | ||
| <field name="source_group_id" required="1" /> | ||
| <field | ||
| name="source_group_id" | ||
| required="1" | ||
| options="{'no_create': True, 'no_open': True}" | ||
| /> | ||
| <field name="source_group_name" invisible="1" /> | ||
| <field name="available_member_ids" invisible="1" /> | ||
| <field name="members_to_split_ids" invisible="1" /> | ||
|
|
@@ -89,7 +93,7 @@ | |
| <field name="new_group_name" required="1" /> | ||
| <field | ||
| name="new_group_type_id" | ||
| options="{'no_create': True}" | ||
| options="{'no_create': True, 'no_open': True}" | ||
| /> | ||
| </group> | ||
| <group> | ||
|
|
@@ -104,9 +108,9 @@ | |
| <field name="city" /> | ||
| </group> | ||
| <group string="Location"> | ||
| <field name="state_id" options="{'no_create': True}" /> | ||
| <field name="state_id" options="{'no_create': True, 'no_open': True}" /> | ||
| <field name="postal_code" /> | ||
| <field name="country_id" options="{'no_create': True}" /> | ||
| <field name="country_id" options="{'no_create': True, 'no_open': True}" /> | ||
|
Comment on lines
+111
to
+113
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other views in this PR (e.g., |
||
| </group> | ||
| <group string="Contact"> | ||
| <field name="phone" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,10 @@ | |
| <sheet> | ||
| <group> | ||
| <group string="Source"> | ||
| <field name="source_group_id" /> | ||
| <field | ||
| name="source_group_id" | ||
| options="{'no_create': True, 'no_open': True}" | ||
| /> | ||
| <field name="available_individual_ids" invisible="1" /> | ||
| <field | ||
| name="individual_id" | ||
|
|
@@ -47,7 +50,7 @@ | |
| options="{'no_create': True}" | ||
| required="1" | ||
| /> | ||
| <field name="new_role_id" options="{'no_create': True}" /> | ||
| <field name="new_role_id" options="{'no_create': True, 'no_open': True}" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other views in this PR (e.g., |
||
| </group> | ||
| </group> | ||
| <group> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ | |
| </group> | ||
| <group invisible="operation == 'remove'"> | ||
| <group string="ID Information"> | ||
| <field name="id_type_id" options="{'no_create': True}" /> | ||
| <field name="id_type_id" options="{'no_create': True, 'no_open': True}" /> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency with other views in this PR (e.g., |
||
| <field name="id_value" required="operation == 'add'" /> | ||
| <field name="expiry_date" /> | ||
| </group> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with other views in this PR (e.g.,
detail_add_member_views.xml), it would be better to format this field over multiple lines, with one attribute per line. This improves readability and makes future diffs cleaner.