Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] loyalty_multi_gift: reward one2many field
In https://github.com/odoo/odoo/blob/69b1993fb45b76110c24f5189a0ecfe9eb59a2aa/addons/loyalty/models/loyalty_program.py#L409 there is a call convert_to_cache on reward_ids that causes that one2many create commands are called twice and thus we get a duplicated record as convert_to_cache executes the values commands. We need to trick the context in order to flag the calls and create the multi gift lines just once.
- Loading branch information