Skip to content

Conversation

@bizzappdev
Copy link
Contributor

@bizzappdev bizzappdev commented Oct 1, 2025

As in Odoo, the record_name field is not a stored field anymore. We have added stored true for the record_name field. TBD: Should we remove the search functionality for record_name? Or have it stored=True, in this case, we should already include the migration script and the init hook, in case we are considering record_name as a searchable field.

@bizzappdev bizzappdev marked this pull request as ready for review October 1, 2025 14:04
Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you consider including this commit? OCA/social@6f374ca

_inherit = "mail.message"

# Inherit field for update the store parameter.
record_name = fields.Char(store=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, we can drop the search on record_name as subject likely already includes that content in most cases.

@bizzappdev bizzappdev force-pushed the 19.0-mig-mail_message_search-BAD branch from ef77e7c to bc06ea7 Compare October 3, 2025 06:16
@bizzappdev bizzappdev requested a review from yostashiro October 3, 2025 06:18
Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review. LGTM.

Would you consider including this commit? OCA/social@6f374ca

@bizzappdev In case you've missed this.

Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional Review: LGTM

@bizzappdev bizzappdev force-pushed the 19.0-mig-mail_message_search-BAD branch from bc06ea7 to a1f0960 Compare October 3, 2025 10:26
@bizzappdev bizzappdev requested a review from yostashiro October 3, 2025 11:56
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@AungKoKoLin1997
Copy link
Contributor

@bizzappdev Can you please include this fix in your PR?
#103

@bizzappdev bizzappdev force-pushed the 19.0-mig-mail_message_search-BAD branch from a1f0960 to f625648 Compare October 30, 2025 09:10
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants