Commit graph

676 commits

Author SHA1 Message Date
Marc Durepos
3a4fc5762c remove durpro dependency from bemade_fsm 2025-08-26 10:36:30 -04:00
Marc Durepos
6af14a2f60 bemade_fsm: fix work order translations 2025-08-26 08:52:55 -04:00
Marc Durepos
b5df3a9735 properly translate work orders 2025-08-25 11:34:49 -04:00
Marc Durepos
b5e4b2d257 back-port delivery_carrier_partner_account 2025-07-04 09:26:36 -04:00
Marc Durepos
4840d9ac9e delivery_carrier_partner_account: fix and refactoring
- Fix: partners can no longer have default carrier accounts that are
archived.
- Refactor: remove write/create overrides to replace them with
  computed/stored fields.
2025-07-03 07:18:05 -04:00
Marc Durepos
8561aeca57 delivery_carrier_partner_account: transfer carrier account to delivery order on SO confirmation 2025-07-03 07:18:05 -04:00
Marc Durepos
6fa8068be5 [FIX] delivery_carrier_partner_account - failing collect SO
Fixes a bug where sale orders with a partner_shipping_id not within the
same commercial entity as their partner_id could not have collect
carrier accounts set after being confirmed.

The issue stemmed from the fact that the sale order's recipient_id field
was being set to partner_id, while the created delivery order had
recipient_id set to its partner_id, which is the partner_shipping_id of
the sale order. In other words, the sale order recipient was incorrectly
set to the main partner instead of the shipping address.

This commit adds a test that was previously failing in this scenario. It
also properly sets the recipient_id on the transport selection wizard
and on sale orders themselves, fixing the issue.
2025-07-03 07:18:05 -04:00
Marc Durepos
c08f4779d8 debugging carrier account issue with logging 2025-07-03 07:18:05 -04:00
Marc Durepos
31892a892a attempt fix to delivery carrier account - selecting collect account raising error 2025-07-03 07:18:05 -04:00
Marc Durepos
1da36c1e1c attempt fix to delivery carrier account - selecting collect account raising error 2025-07-03 07:18:05 -04:00
Marc Durepos
b627b1f57c new module sale_mandatory_customer_reference and small fix to delivery_carrier_partner_account 2025-07-03 07:18:05 -04:00
Marc Durepos
3c9835270e Fix to delivery_carrier_partner_account + test to validate 2025-07-03 07:18:05 -04:00
Marc Durepos
852c0723b9 fix a dependency issue for customer carrier accounts 2025-07-03 07:18:05 -04:00
Marc Durepos
4a778d7d81 remove debug logging for delivery_carrier_partner_account 2025-07-03 07:18:05 -04:00
Marc Durepos
4563b8b8b1 Significant rework of delivery_carrier_account.
carrier_id, carrier_account_id and delivery_billing_mode fields are all computed and have a single inverse method that can be overriden by subclasses.
2025-07-03 07:18:05 -04:00
xtremxpert
f45cd3a633 fix for _ help 2025-07-03 07:18:05 -04:00
Marc Durepos
a7eb187202 changes to delivery_carrier_partner_account 2025-07-03 07:18:05 -04:00
Marc Durepos
f4c6d0c21e Add better carrier linking for purchasing
delivery_carrier_partner_account and purchase_delivery_carrier
2025-07-03 07:18:05 -04:00
Marc Durepos
bcd92d5039 purchase_delivery_carrier: integrate with delivery_carrier_partner_account 2025-07-03 07:18:05 -04:00
Marc Durepos
c8e492b481 delivery_carrier_partner_account: added some test cases and fixed some bugs relating default accounts 2025-07-03 07:18:05 -04:00
Marc Durepos
6e61c065a5 make sure carrier_account_ids is set before indexing at 0 2025-07-03 07:18:05 -04:00
Marc Durepos
a273cde7ba delivery_carrier_partner_account: make default the first account added to a partner 2025-07-03 07:18:05 -04:00
Marc Durepos
69faaec42f delivery_carrier_partner_account fixes 2025-07-03 07:18:05 -04:00
Marc Durepos
8093509995 revert tag inheritance in bemade_fsm from sale order to task 2025-06-26 10:07:28 -04:00
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