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

Attendance Module including API #615

Open
celinenilla opened this issue Oct 3, 2024 · 1 comment · May be fixed by #616
Open

Attendance Module including API #615

celinenilla opened this issue Oct 3, 2024 · 1 comment · May be fixed by #616
Assignees

Comments

@celinenilla
Copy link

celinenilla commented Oct 3, 2024

Attendance Module API

Attendee
Data of the Individual / Person / Beneficiaries would be available on a server1 and would be sent from Server1 to Odoo UI via API1

Attendance
Attendance data of the Individual / Person / Beneficiaries would be available on a server2 and would be sent from Server2 to Odoo UI via API2.
Client ID and Client Secret is required to sync this data.

For testing purpose a pseudo-postman inside the UI is to be created. Only Admin would have access to it. Following would be the features required for this postman:

  • Access Token (POST Get Access Token)
    • Client would need to be created on UI. Which would provide Client ID and Client Secret
    • Access Token would need to be created on Postman? (TBC with Red)
    • Following would be required to be configured on Odoo UI:
      • URL and Auth Setting
      • Mappings
  • Create Attendance (POST Create Attendance)
    • User can create Attendance records for each Individual / Person / Beneficiaries
  • Get Attendance of a Person (POST Get Attendance of a Person)
    • User can get all the attendance records for a specific person using this option.
  • Get Attendance List (POST Get Attendance List)
    • User can get all the attendance records for all the individuals using this option
  • Get Present Subscriber based on Date (POST Get Present Subscriber based on Date)
    • Using this options user can filter the list of Attendees in a specific date range

Odoo UI

  • Attendance Subscriber - This is a view created under Attendance menu on the home page of Odoo UI. User can see the list of Attendees fetched via API1.
    • User can add new Individual / Person / Beneficiaries manually on this view.
    • User Roles
      • Attendance Manager - This user can Create / View / Edit / Delete
      • Attendance Viewer - This user can only View
  • Attendance Details - This is a view created inside of Attendee.
    • User can see the list of all the Attendance Records of the Attendee fetched via API2 under Attendance tab.
    • User Roles
      • Attendance Manager - This user can Create / View / Edit / Delete
      • Attendance Viewer - This user can only View
@reichie020212 reichie020212 linked a pull request Oct 3, 2024 that will close this issue
@reichie020212 reichie020212 linked a pull request Oct 3, 2024 that will close this issue
@singhkaranvir25 singhkaranvir25 changed the title Attendance module API Attendance Module including API Oct 3, 2024
@lyn88
Copy link

lyn88 commented Oct 17, 2024

Test environment: Attendance Server
Browser: Chrome version:129.0.6668.100 (Official Build) (arm64)
OS: MacOS Sonoma 14.3

Testing Steps:

  1. Install attendance module to Odoo UI
    -verified that "Attendance" menu is available
    Screenshot 2024-10-17 at 3 49 54 PM

  2. Configure "Attendance API client credentials"
    -verified that API Client and API Secret UUIDs are prefixed
    Note: "Show" button for API client and secret only appears once so make sure to copy keys on a notepad.

  3. Use postman to simulate API
    a.Access Token (POST Get Access Token)
    -verified that got response 200
    Screenshot 2024-10-17 at 4 10 12 PM

b.Create Attendance (POST Create Attendance)
-verified that got response 200
Screenshot 2024-10-17 at 4 32 26 PM
-verified that attendance declaration reflects on Odoo UI
Screenshot 2024-10-17 at 4 33 43 PM

c.Get Attendance of all person (POST Get Attendance List)
-verified that got response 200
Screenshot 2024-10-17 at 4 39 19 PM
d.Get Attendance of person (POST Get Person Attendance)
-verified that got response 200
Screenshot 2024-10-17 at 5 09 05 PM

e.Get Attendance Types
-verified that got response 200
Screenshot 2024-10-17 at 5 21 01 PM

f.Get Attendance Location
-verified that got response 200
Screenshot 2024-10-17 at 5 21 09 PM

  1. Also tested filters on "Get Attendance of person" and "Get Attendance of all person"
    -attendance_type
    -location_type

  2. Sent Attendance declaration via Self-registration app
    -verified that attendance declared successfully reflected on the attendance server

Conclusion:
Testing was successful. The new attendance module feature is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants