Skip to content

Commit 15d0ad9

Browse files
committed
[IMP] separate custom filter UI
1 parent 572ae6f commit 15d0ad9

26 files changed

Lines changed: 1304 additions & 46 deletions

File tree

spp_base/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
"spp_custom_fields_ui",
2828
"spp_hide_menus",
2929
"spp_programs",
30-
"spp_custom_filter_ui",
30+
"spp_custom_filter_program_ui",
31+
"spp_custom_filter_registry_ui",
3132
"project_todo",
3233
"spreadsheet_dashboard",
3334
"queue_job",

spp_custom_filter_farmer_registry/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,10 @@ <h2>Purpose</h2>
400400
<div class="section" id="module-dependencies-and-integration">
401401
<h2>Module Dependencies and Integration</h2>
402402
<ol class="arabic simple">
403-
<li><a class="reference external" href="spp_custom_filter_ui">spp_custom_filter_ui</a>: This module directly
404-
depends on the <strong>SPP Custom Filter UI</strong> module, inheriting its core
403+
<li><a class="reference external" href="spp_custom_filter_program_ui">spp_custom_filter_program_ui</a>: This module directly
404+
depends on the <strong>SPP Custom Filter Program UI</strong> module, inheriting its core
405405
functionality for managing the visibility of fields in filter
406-
dropdown menus. The <strong>SPP Custom Filter UI</strong> module leverages this
406+
dropdown menus. The <strong>SPP Custom Filter Program UI</strong> module leverages this
407407
capability to configure the UI for specific models.</li>
408408
<li><a class="reference external" href="spp_farmer_registry_base">spp_farmer_registry_base</a>: The module interacts with
409409
the <strong>OpenSPP Farmer Registry Base</strong> module</li>
File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "OpenSPP Custom Filter Program UI",
3+
"category": "OpenSPP",
4+
"version": "17.0.1.3.0",
5+
"summary": "Customizes the OpenSPP UI to enhance filtering for Programs, improving usability and efficiency in managing registrants within social protection programs.",
6+
"author": "OpenSPP.org",
7+
"development_status": "Production/Stable",
8+
"maintainers": ["nhatnm0612", "emjay0921"],
9+
"website": "https://github.com/OpenSPP/openspp-modules",
10+
"license": "LGPL-3",
11+
"depends": ["spp_custom_filter", "g2p_programs"],
12+
"auto_install": False,
13+
"application": False,
14+
}

spp_custom_filter_ui/i18n/spp_custom_filter_ui.pot renamed to spp_custom_filter_program_ui/i18n/spp_custom_filter_ui.pot

File renamed without changes.
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from odoo import fields, models
2+
3+
4+
class ResPartner(models.Model):
5+
_name = "res.partner"
6+
_inherit = ["res.partner", "custom.filter.mixin"]
7+
8+
program_membership_ids = fields.One2many(allow_filter=True)
File renamed without changes.

0 commit comments

Comments
 (0)