Commit graph

652 commits

Author SHA1 Message Date
Marc Durepos
1e57afd3ca Merge branch '17.0-changes' into '17.0'
Durpro inheritance mixin editing and work order print depending on language of work order contact

See merge request bemade/bemade-addons!107
2025-06-19 13:07:15 +00:00
Mathis Ouimet-Masson
7c38f76dea Durpro inheritance mixin editing and work order print depending on language of work order contact 2025-06-19 13:07:15 +00:00
Marc Durepos
20e4f6c8b3 caldav_sync: v0.8.0 - disable notifications when polling server
- Disable sending of notification emails when events are created or updated
  in Odoo during a CalDAV server synchronization.
- General code cleanup with improved type hints.
2025-06-10 10:13:45 -04:00
Marc Durepos
401818765a confirm_many2one_create: simplify js 2025-05-16 11:01:56 -04:00
Marc Durepos
d1e97e3448 fix confirm_many2one_create JS 2025-05-16 10:57:10 -04:00
Marc Durepos
0b5a791e1f add tests for caldav_sync, new module preamble_on_quotation 2025-05-16 09:52:07 -04:00
Marc Durepos
4b19f8262e caldav_sync: further fixes for organizer issues 2025-05-16 09:52:07 -04:00
Marc Durepos
3ebadcb969 caldav_sync: fix for incorrect organizer setting
Prior to this fix, the organizer on events was being incorrectly set to
the database's admin user in some cases, when synchronizing an event
from the CalDAV server.
2025-05-16 09:52:07 -04:00
Marc Durepos
db10db822c caldav_sync bug fixes:
* Fixed an issue where accepting events from an external organizer would send emails
  to the all event attendees upon synchronization.
* Corrected the data model for events where multiple Odoo users are attendees for the
  same event. Now, only one event is created in Odoo, with all the attendees on the
  same event. This conforms to Odoo's existing calendar event data model.
* Updated the setting of the organizer field (user_id) on the calendar events upon
  synchronization. Previously, the organizer field was always set to the current user
  whose events were being synchronized. Now, it is set based on the ORGANIZER parameter
  of the iCalendar event, if present. If not present, it defaults to the current synchronizing
  user. In the case that the organizer is external, the user_id field is left blank.
2025-05-16 09:51:42 -04:00
Marc Durepos
9fb835db34 [FIX] bemade_fsm: correctly set partner on subtasks for visits
Prior to this commit, subtasks that were added (from task templates) as
part of a visit (from sales orders), were having their partner_id set to
False by a built-in Odoo _compute_partner_id method.

This fix (and previous commits) introduce a test that correctly failed
when this behaviour was broken as well as modifications to the behaviour
of sale order lines and tasks to ensure that all tasks created from a
sale order for an FSM project correctly get their partner_id set to the
sale order's delivery address.
2025-04-24 08:49:33 -04:00
Marc Durepos
512bf58da8 Merge commit '873a7ba7' into 17.0 2025-04-24 08:34:24 -04:00
Marc Durepos
873a7ba71a bemade_fsm: add a failing test to demonstrate partner assignment bug 2025-04-24 08:34:03 -04:00
Marc Durepos
b19da588cd bemade_fsm: correct partner_id on task to use partner_shipping_id from sale order 2025-04-24 08:30:16 -04:00
Marc Durepos
ab60babd7d fix division by zero in vendor pricelist 2025-04-23 15:05:48 -04:00
Marc Durepos
055ceede53 fsm_visit_confirmation: only send email for top-level tasks 2025-02-27 14:52:16 -05:00
Marc Durepos
9859a3cf96 fsm_visit_confirmation: don't auto-delete email from chatter 2025-02-27 14:39:31 -05:00
Marc Durepos
57b401ca1a fsm_visit_confirmation: ensure token before sending email 2025-02-27 14:36:19 -05:00
Marc Durepos
2322dbaae1 fsm_visit_confirmation: completely separated from ratings now 2025-02-26 21:25:37 -05:00
Marc Durepos
81a4a904c7 fsm_visit_confirmation: translate template, move away from ratings 2025-02-26 20:58:14 -05:00
Marc Durepos
95a95298bb fsm_visit_confirmation: new module good to go 2025-02-26 14:52:17 -05:00
Marc Durepos
f9f32aab34 new module fsm_visit_confirmation 2025-02-26 10:12:33 -05:00
Marc Durepos
65fbcb9b33 caldav_sync bug fixes:
* Fixed an issue where accepting events from an external organizer would send emails
  to the all event attendees upon synchronization.
* Corrected the data model for events where multiple Odoo users are attendees for the
  same event. Now, only one event is created in Odoo, with all the attendees on the
  same event. This conforms to Odoo's existing calendar event data model.
* Updated the setting of the organizer field (user_id) on the calendar events upon
  synchronization. Previously, the organizer field was always set to the current user
  whose events were being synchronized. Now, it is set based on the ORGANIZER parameter
  of the iCalendar event, if present. If not present, it defaults to the current synchronizing
  user. In the case that the organizer is external, the user_id field is left blank.
2025-02-07 12:59:29 -05:00
Benoît Vézina
799e944112 fix and validated date_deadline 2025-02-06 10:19:48 -05:00
Benoît Vézina
7ab530bd29 Fixe date deadline cascade 2025-02-05 16:13:34 -05:00
xtremxpert
b1a625a0e4 wip 2025-02-05 13:14:42 -05:00
Marc Durepos
45c1bdf440 bemade_fsm: fix a bug where changing the delivery address on a canceled/re-drafted SO screwed up subtasks 2025-01-27 11:00:09 -05:00
Marc Durepos
370ebae08b bemade_fsm: Fix broken tests 2025-01-27 08:42:37 -05:00
Marc Durepos
d334b63696 bemade_fsm: use commercial partner id to calculate valid equipments on SO 2025-01-17 10:39:35 -05:00
Marc Durepos
424e9e5159 nuke_mid_task: Get rid of unnecessary security folder 2025-01-13 13:12:06 +00:00
Benoît Vézina
1db303d0a5 nuke task 2025-01-10 11:38:33 -05:00
xtremxpert
5050839056 Unifi to test 2025-01-06 08:02:03 -05:00
Benoît Vézina
010752b01f itch work? 2025-01-02 08:06:56 -05:00
Benoît Vézina
d644841f99 js work 2024-12-23 11:40:07 -05:00
xtremxpert
3ba182fe0e fick js 2024-12-19 11:20:44 -05:00
Benoît Vézina
b06e9c4569 dawn js 2024-12-19 10:16:30 -05:00
Marc Durepos
f3a7072314 price_update_notifications: add mail.activity.mixin to notices 2024-12-17 16:11:06 -05:00
Benoît Vézina
57c938bb8d itch 2024-12-17 15:40:14 -05:00
xtremxpert
fa4f1b2b19 Merge branch '17.0' of git.bemade.org:bemade/bemade-addons into 17.0 2024-12-17 12:51:57 -05:00
xtremxpert
536f10b61e itch et unifi 2024-12-17 12:51:45 -05:00
Marc Durepos
f6ab94e0b3 caldav_sync: add SELF_WRITEABLE_FIELDS for users 2024-12-17 10:43:10 -05:00
Benoît Vézina
9578594628 update 2024-12-14 06:53:23 -05:00
Marc Durepos
5a97745d42 [FIX] set timezone on context if empty in event and user
Prior to this commit, synchronizing an event to the CalDAV server could
break in the _add_event_dates method if both self.event_tz and
self.env.user.tz were empty (False). This should be a rare occurrence,
but adding a fallback of self._context.get('tz') should help.
2024-12-12 08:45:11 -05:00
Marc Durepos
a0ff56ade2 fix product_template_id field ref on sale order line for price update notif 2024-12-10 09:34:10 -05:00
Marc Durepos
8ce49de715 fix to translation for price update notice 2024-12-10 09:27:43 -05:00
Marc Durepos
3f6f452fe1 fix to translation for price update notice 2024-12-10 09:26:04 -05:00
Marc Durepos
8c1758dacd Merge commit '58e49f0d' into 17.0 2024-12-10 09:12:43 -05:00
Marc Durepos
58e49f0db5 bug fix for price update 2024-12-10 09:12:26 -05:00
xtremxpert
5b18adb083 Merge branch '17.0' of git.bemade.org:bemade/bemade-addons into 17.0 2024-12-09 09:36:06 -05:00
xtremxpert
fb057ada9a more on that 2024-12-09 09:35:56 -05:00
Marc Durepos
56b755039d price_update_notifications: cleaned up multiline fields and improved fr translation 2024-12-05 14:46:40 -05:00