Commit graph

805 commits

Author SHA1 Message Date
Marc Durepos
c19f2e29e6 [MIG] bemade_search_supplier_code to 18.0 2025-09-09 15:27:10 -04:00
Marc Durepos
8662ad3ffd [MIG] bemade_so_followers_to_picking to 18.0 2025-09-09 15:19:49 -04:00
Marc Durepos
975870333a [MIG] bemade_stock_quant_valuation to 18.0 2025-09-09 14:57:21 -04:00
Marc Durepos
ca493863cb [MIG] fsm_visit_confirmation to 18.0 2025-09-09 14:38:36 -04:00
Marc Durepos
5793351bbe g This is a combination of 2 commits.
[MIG] bemade_fsm to 18.0

Aside from fixing standard 17.0..18.0 stuff and fixing XML ID
references:

1. **Remove `_get_closed_stage_by_project()`**: This method is
obsolete - it was copied from base FSM but no longer exists in
18.0. Base system now uses `is_closed` field.
2. **Implement State Propagation**: Enhance the `write()` method
to propagate done/cancelled states to child tasks using `is_closed` field logic.
3. **Test Task Creation**: Thoroughly test the custom task creation logic
against base 18.0

All 56 tests are passing.
2025-09-09 14:05:34 -04:00
Marc Durepos
c7d0a1be2b [MIG] fsm_equipment to 18.0 2025-09-09 11:38:26 -04:00
Marc Durepos
bb8c1f2f35 [MIG] bemade_partner_root_ancestor to 18.0 2025-09-09 11:29:19 -04:00
Marc Durepos
06584b381a Migrate account_credit_hold to 18.0
Squashed commit of the following:

commit 5adce1fd15
Author: Marc Durepos <marc@bemade.org>
Date:   Thu Sep 4 12:33:00 2025 -0400

    [MIG] 17.0..18.0 account_credit_hold

    Migrated module account_credit_hold from 17.0 to 18.0. Fixed views and
    models and wrote test cases to check functionality.

commit 91c52af6f4
Author: Marc Durepos <marc@bemade.org>
Date:   Thu Sep 4 11:38:37 2025 -0400

    Initial migration of account_credit_hold for testing in 18.0
2025-09-04 12:34:47 -04:00
Marc Durepos
6ea4b324b3 Port bemade_utils from 17.0 to 18.0 2025-09-04 08:33:58 -04:00
Denis Durepos
15f96ec795 feat(bemade_sports_clinic): add Team Role Mass Assign wizard, views, and ACLs
- Add wizard models: team_role_mass_assign_wizard.py (wizard + line)
- Register in models/__init__.py
- Add views/team_role_mass_assign_wizard_views.xml
- Update res_users_views.xml to expose the wizard (button/action)
- Define ACLs for wizard and lines in security/ir.model.access.csv
- Update __manifest__.py to load new security and views
2025-09-03 20:52:12 -04:00
Denis Durepos
917e04d018 Correctly set default is_venue=true when using quick-create to create new venues from the event form (internal). 2025-09-03 20:25:42 -04:00
Marc Durepos
1fe33c306a add author to manifest 2025-09-03 11:33:02 -04:00
Marc Durepos
c43a615dd4 new module to prompt for reason when applying a single inventory adjustment 2025-09-03 11:15:33 -04:00
Marc Durepos
ce69990df6 Remove modules with 17.0 versions 2025-09-03 09:42:04 -04:00
mathis
8424815d53 Ported manifest to 18.0 2025-09-03 09:42:04 -04:00
Denis Durepos
fc8248ff2e Ensuring sanitized filenames on uploaded sports.injury.document even if files previously uploaded with illegal characters. 2025-09-02 07:15:51 -04:00
Denis Durepos
06b9c6d201 portal(events): polish headers and detail view
- Stack action buttons onto a second line in list/detail views\n- Remove redundant team/venue under event title (retained in details card)\n- Minor styling/consistency tweaks
2025-09-01 20:21:36 -04:00
Denis Durepos
a47e829935 bemade_sports_clinic: enforce DOB range validation and improve form errors
- Add DOB validation (not in future, not >120y) in controllers:\n  - controllers/team_management_portal.py: portal_create_player_full, portal_add_player_submit\n  - controllers/player_management_portal.py: create_player_submit, edit_player_submit\n- Preserve form inputs and display clear error messages on invalid DOB\n- Add dateutil.relativedelta import for date range checks\n- Minor template/context tweaks for consistent error rendering
2025-09-01 09:48:47 -04:00
Denis Durepos
6872e5fac2 portal: refactor teams list to responsive card grid; adjust events therapist badge styling
- Convert  from table to Bootstrap card grid in  for better long name visibility and mobile UX
- Preserve fields: team name, parent org, player/injured counts, therapist-only activity count; keep pagination; no sorting/grouping changes
- Events portal templates: set therapist initials badge to #783E88; leave event type badges unchanged
- Add portal static assets scaffolding under  and update manifest accordingly
- Minor template cleanups; no functional changes beyond layout/styling
2025-08-31 18:52:59 -04:00
Marc Durepos
65b301b2e8 add purchase_stock to dependencies for purchase_delivery_carrier 2025-08-31 07:50:22 -04:00
xtremxpert
583e25e092 product_supplierinfo_tracking 2025-08-29 09:43:24 -04:00
Marc Durepos
e5e90d6c7e [ADD] New module replenish_by_first_vendor.
Added a new module for setting the vendor on manual replenishments that
are created by the system. This permits buyers using the Replenishment
interface (stock.orderpoint list view) to more easily order items as
they can group by vendor when working to set up purchase orders.
2025-08-28 10:16:46 -04:00
Denis Durepos
736f7011a7 Corrected access error for coaches attempting to view the patient record for a patient that was also on teams the coach did not have access to. 2025-08-22 06:03:49 -04:00
Denis Durepos
6c096430d5 Overrode res_partner.merge() to ensure correct merge behaviour on res_partners attached to sports_patients. 2025-08-21 19:09:50 -04:00
Marc Durepos
0c156f089b update pre-commit config 2025-08-21 14:27:22 -04:00
Marc Durepos
03ca1649c9 fix date comparison bug for full-day events 2025-08-21 14:16:05 -04:00
Denis Durepos
f5e1751da7 bemade_sports_clinic:
- Add 'account' to depends to ensure invoice portal templates are present
- Hide invoice cards for coaches/therapists via override of account.portal_my_home_invoice
- Events portal: create/edit templates and controller adjustments for therapist workflow
- Minor portal home styling and visibility tweaks for clinic roles
2025-08-21 06:20:07 -04:00
Denis Durepos
8ca4ef5af3 Added value conservation on error to sports.event portal edit and create forms. 2025-08-20 13:28:20 -04:00
Denis Durepos
c03886e812 Corrected sports.event timezone discrepancies in edit and create portal views. 2025-08-20 13:25:53 -04:00
Denis Durepos
29a087b207 Corrected ACLs for patient and patient.injury documents to enable portal users to view all patient documents. 2025-08-19 11:25:03 -04:00
Denis Durepos
37ac446c1e Added filters to sports.patient portal view. 2025-08-15 20:54:37 -04:00
Denis Durepos
a48450849c Modified auto-assignment logic for therapists on new injuries. Added tests for defaults and auto-assignment. 2025-08-15 20:29:33 -04:00
Denis Durepos
580e61d840 Modified sports.event creation interfaces onchange events for start and end datetimes to adjust therapist start time to 120 min before. Extended functionality to internal views. Modified add activity interface to default to To-Do type. 2025-08-15 20:10:28 -04:00
Denis Durepos
2d052d630b Treatment notes section adjustment on injury create and edit forms 2025-08-15 19:58:51 -04:00
Denis Durepos
fd43de7443 Created Create Event portal template for portal treatment professionals to be able to add events. 2025-08-15 13:02:20 -04:00
Denis Durepos
aea07cb5a5 Portal: fix initial treatment note creation on injury creation; enforce DOB required on player creation (templates + server); injury form team-selection validation and cleanup 2025-08-15 10:14:35 -04:00
Denis Durepos
3ce8d051bc portal: enable player removal from Edit Player view; fix QWeb group checks
- Replace nested remove form with a submit button using HTML5 formaction to post directly to /my/team/{team_id}/player/{player_id}/remove
- Prevent outer save form from intercepting submission; preserves CSRF; confirmation retained; redirects to team page
- Replace user_has_group helper with request.env.user.has_group in QWeb to prevent NoneType callable errors

Verification:
- Edit Player page renders without 500 error
- Clicking Remove removes the player and returns 303 redirect to /my/team/{team_id}
- Success notification displayed on team page

Notes:
- Removal route already implemented in controller (TeamManagementPortal.portal_remove_player)
2025-08-13 10:43:39 -04:00
Denis Durepos
78589bbcf3 Corrected function of N/A field on injury edit and created portal templates. 2025-08-12 20:30:22 -04:00
Denis Durepos
e779b4da94 feat: Allow duplicate task-to-event conversions for different teams
- Modified task-to-event wizard to allow same task to be converted to multiple events for different teams
- Changed duplicate prevention from time-based to team-specific checking
- Removed within-run duplicate prevention to support overlapping team events
- Enhanced task messages to include team name for better audit trail
- Supports therapists covering multiple teams with same background tasks

Fixes issue where therapists couldn't create overlapping events for different teams from the same task.
2025-08-12 11:47:57 -04:00
Denis Durepos
805c694e21 Fixing missing index.html 2025-08-12 10:08:35 -04:00
Denis Durepos
d2286d136e feat: Update bemade_sports_clinic to v18.0.2.0.0 with comprehensive activity management
- Added integrated mail.activity system for task management
- Implemented portal access to activities for treatment professionals
- Added activity creation, completion, and reassignment functionality
- Enhanced player management with Canadian address validation
- Improved injury tracking with parental consent and document attachments
- Implemented layered security architecture (ACL + Record Rules + Controller filtering)
- Added French Canadian (fr_CA) localization support
- Enhanced portal UI with activity counts and navigation
- Implemented RPC security protection with buddy method pattern
- Added comprehensive demo data and integration features
- Updated manifest to reflect all new capabilities and improvements
2025-08-12 09:23:05 -04:00
Denis Durepos
0c0d047f2e Fixed syntax error in fr_CA.po 2025-08-10 15:37:33 -04:00
Denis Durepos
b755b80150 Updated french translations. 2025-08-10 15:28:44 -04:00
Denis Durepos
721ab5776c Updated French Canadian translations. 2025-08-10 14:10:18 -04:00
Denis Durepos
fd1751b058 Fixed portal_team_coach group attribution. 2025-08-10 13:50:38 -04:00
Denis Durepos
e0c4fcba6f Added post-migration action to fix res_partner parent_id links. 2025-08-10 09:25:25 -04:00
Denis Durepos
7f3b330ca9 Fixed phone number formatting and disappearance glitch on sports_team_staff. 2025-08-10 07:59:42 -04:00
Denis Durepos
c135c3eef7 Fixed injured player count issue to reflect v16.0 logic of basing injured count on player stage rather than active injuries. 2025-08-10 05:47:16 -04:00
Denis Durepos
5abdebb3a1 disabled cron jobs that mess with migration 2025-08-07 21:18:20 -04:00
Denis Durepos
cdef6664d2 Corrected injury count issue due to injuries without injury dates set. 2025-08-03 20:10:18 -04:00