server-ux
server-ux copied to clipboard
New tier validation record create with origin tier validation has comment
Module
The name of the module that has a bug. base_tier_validation
Describe the bug
A clear and concise description of what the bug is. There has two tier validation models. A and B, and definition A model has comment, and validate_tier A model and create B model in this method. It will update A model's review_ids fields res_id to B model's id.
To Reproduce
Affected versions: 16.0 verify and maybe others
Steps to reproduce the behavior:
- add A model tier_definition and check has_comment.
- inherit A model's validate_tier model and insert create B model method.
- fill comment and confirm.
Expected behavior A model will see review_ids in approve state, but now disappear。after check tier.view record, the res_id change to B model id.
The affect code in tier_validation.py -> _add_comment method, 'default_review_ids': reviews.ids. I fix this bug by override the context, create B model with_context({}), but I think this bug can be fixed by a more elegant way, so I submit this issue let you known.
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.