partner-contact icon indicating copy to clipboard operation
partner-contact copied to clipboard

[16.0][FIX] partner_multi_relation: fix name search on relation

Open NL66278 opened this issue 1 year ago • 2 comments

Before this fix the following exception was logged (and the search not done):

2024-04-18 13:13:15,110 320 ERROR vwnvrs-testdatabase odoo.osv.expression: Non-stored field res.partner.relation.type.selection.display_name cannot be searched. 
NoneType: None

After fix no more errors in the log and the search works.

NL66278 avatar Apr 18 '24 13:04 NL66278

Could you please explain how to obtain this error? I tried to search for a relation in its Many2one field but the search is performed correctly and no ERROR is logged.

SirAionTech avatar Aug 27 '24 09:08 SirAionTech

@SirAionTech The error occurs if you have a model with a Many2one field to res.partner.relation.all, and then in the form you enter a name to search on.

NL66278 avatar Aug 27 '24 10:08 NL66278

There hasn't been any activity on this pull request in the past 4 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 PR to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Dec 29 '24 12:12 github-actions[bot]

/ocabot merge minor

NL66278 avatar Dec 30 '24 08:12 NL66278

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch 16.0-ocabot-merge-pr-1740-by-NL66278-bump-minor, awaiting test results.

OCA-git-bot avatar Dec 30 '24 08:12 OCA-git-bot

Congratulations, your PR was merged at ab505122d10f85ef725beacac48fb9e8aa7c66e8. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Dec 30 '24 08:12 OCA-git-bot