Commit Graph

13 Commits (b313ea0ffff115ded821c8ca77a39a005d90ed8c)

Author SHA1 Message Date
Víctor Martínez 80b4ae5b5a [FIX] tracking_manager: Avoid error when accessing the value of a field that we do not have access
Example use case:
- Install hr_fleet
- Set the employee_ids field of hr.employee as a tracking field
- Modify the user to not have permissions in Fleet
- Modify the name of an employee

TT51160

[FIX] tracking_manager: Test compatibility

Related to b41e7ae2c7

Do not set the child_ids field as tracking in the setup to avoid incorrect data in some cases

TT51160
2024-10-09 10:21:46 +02:00
Víctor Martínez 8a26a4b0ee [FIX] tracking_manager: Avoid error if no record is linked (example: child_ids of res.partner)
Example use case:
- Define the child_ids field of res.partner as tracking.
- Modify contact Brandon Freeman and leave parent_id empty (Azure Interior)
- No error should be displayed

TT51146
2024-10-07 11:51:24 +02:00
Víctor Martínez e85348bebe [FIX] tracking_manager: Avoid sending tracking o2m emails if you are subscribed to notes
Example use case:
- Enable custom tracking in project.project
- Activate the task_ids field as custom tracking
- Create a project and assign it to a user (different from ours) and make it a note follower
- Create a task in the project
- The project message of the task tracking task will not be sent to the note followers

TT50676
2024-09-06 10:43:13 +02:00
Christopher Rogos 99b1b08107 [FIX] tracking_manager: prevent error on models without mail.thread mixin 2024-08-29 09:53:23 +00:00
Christopher Rogos c906b3509a [MIG] tracking_manager: Migration to 17.0 2024-05-02 12:54:27 +00:00
Christopher Rogos 48fa0791ca [MIG] tracking_manager: Migration to 16.0 2024-05-02 12:47:20 +00:00
Sébastien BEAU ac23d1b648 tracking_manager: fix access right issue if sudo have been used 2024-05-02 12:47:20 +00:00
Sébastien BEAU 4a8d86f3e3 tracking_manager: fix missing error when doing a write before an unlink 2024-05-02 12:47:20 +00:00
Sébastien BEAU c688772bc4 tracking_manager: use sudo for posting message 2024-05-02 12:47:20 +00:00
Sébastien BEAU 6500e27d5b tracking_manager: simplify code by using precommit feature
Instead of complexe tracking throught the context
just track change and process the message at the end
using the precommit feature (the message are posted
just before commiting)
2024-05-02 12:47:20 +00:00
Sébastien BEAU be72996ec0 tracking_manager: continue to refactor code
- track m2m simplify using native mail_thread and process them like text
- simplify code for track one2many
- avoid useless code on model not impacted by the tracking
2024-05-02 12:47:20 +00:00
Sébastien BEAU 572cab485d tracking_manager: refactor test 2024-05-02 12:47:20 +00:00
Sébastien BEAU e90772963b tracking_manager: refactor code to track all o2m case
For example on the product if you open the 'stock.putaway.rule'
you have activated the tracking on putaway_rule_ids
change on rule should be posted on the related product
2024-05-02 12:47:20 +00:00