Commit Graph

12 Commits (ff946f1f85d674cdda8434c6a8b26422cd664f4a)

Author SHA1 Message Date
Víctor Martínez b41e7ae2c7 [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
2024-10-08 09:02:49 +02:00
Víctor Martínez aeb1f6b6d7 [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 08:37:47 +02:00
Víctor Martínez e2f7a51ed5 [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-04 12:05:22 +02:00
Christopher Rogos d24b119ff0 [FIX] tracking_manager: prevent error on models without mail.thread mixin 2024-08-27 13:14:21 +00:00
Christopher Rogos b33e39f41c [MIG] tracking_manager: Migration to 16.0 2024-01-02 15:46:21 +00:00
Sébastien BEAU d2428a7d9b tracking_manager: fix access right issue if sudo have been used 2024-01-02 15:38:27 +00:00
Sébastien BEAU 35753cf76a tracking_manager: fix missing error when doing a write before an unlink 2024-01-02 15:38:26 +00:00
Sébastien BEAU 5117c9c367 tracking_manager: use sudo for posting message 2024-01-02 15:38:26 +00:00
Sébastien BEAU a105a653cc 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-01-02 15:38:26 +00:00
Sébastien BEAU 636c6e49f5 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-01-02 15:38:26 +00:00
Sébastien BEAU a40c2d958e tracking_manager: refactor test 2024-01-02 15:38:26 +00:00
Sébastien BEAU 20c4babf64 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-01-02 15:38:26 +00:00