Skip to content

Add cross-org resource discovery view in Odoo #6

Description

@Soushi888

Summary

Implement a "Discover Resources" menu item in Odoo that queries the Nondominium DHT for resources shared by other organizations. This is the core PoC demonstration of cross-org resource discovery.

Tasks

  • Create a simple Odoo list view showing ResourceSpecifications fetched from the DHT
  • Implement action_discover_resources() calling get_all_resource_specifications via call_zome()
  • Implement action_discover_by_category() for filtered discovery using get_resource_specifications_by_category
  • Add menu item under Inventory: "Nondominium → Discover Resources"
  • Handle the empty state: show helpful message when no resources found

Design Notes

  • No transient wizard needed — a basic list view is sufficient for the PoC
  • Discovered resources displayed as transient records (not persisted in Odoo DB)
  • For PoC, displaying spec name + description + category is sufficient
  • Owner organization info requires zome_person bridge (future enhancement)

Cross-References

  • Sensorica/nondominium-erp-bridge bridge/discovery.py — reference implementation

Acceptance Criteria

  • Menu item appears under Inventory
  • Discovers and displays resources from other organizations on the DHT
  • Category-based filtering works
  • Clean UI with helpful empty state

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2-highHigh priority - important for milestoneenhancementNew feature or requestholochainHolochain/Nondominium integrationpocPoC demo and validation

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions