Skip to content

[MIG][16.0] mig mail_edit#1854

Open
NL66278 wants to merge 12 commits into
OCA:16.0from
Therp:16.0-mig-mail_edit
Open

[MIG][16.0] mig mail_edit#1854
NL66278 wants to merge 12 commits into
OCA:16.0from
Therp:16.0-mig-mail_edit

Conversation

@NL66278
Copy link
Copy Markdown

@NL66278 NL66278 commented Apr 17, 2026

Replaces #1328 as that one is based on an archived repository, and still needs fixes.

Comment thread mail_edit/README.rst

* Go to *Message* *Chatter* in any model, click the Edit (pen) Icon to open up
the 'Edit or Move' wizard.
* To edit, edit the Mail as necessary and click Save.
Copy link
Copy Markdown

@KKamaa KKamaa Apr 21, 2026

Choose a reason for hiding this comment

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

@NL66278 another thing I noticed while testing, it seems default v16.0 has Edit and Delete if you check this line and image below:

Feature:

image

Buttons:

Image

maybe we can use the above?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I fixed this.

</group>
<group>
<field
name="destination_object_id"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@NL66278 I now see the move based on the destination_object_id and working with the function change_destination_object

@KKamaa
Copy link
Copy Markdown

KKamaa commented Apr 21, 2026

Just a question on the security groups should they be applied to the buttons or how they were before is better? If they were to be applied we can use await this.env.services.user.hasGroup(...) just placing this for review to consider before merging.

@NL66278
Copy link
Copy Markdown
Author

NL66278 commented Apr 21, 2026

Just a question on the security groups should they be applied to the buttons or how they were before is better? If they were to be applied we can use await this.env.services.user.hasGroup(...) just placing this for review to consider before merging.
@KKamaa I think the functionality with the groups should remain the same, but I think you can best decide what the best implementation is.

Please smash all your commits into one.

@KKamaa KKamaa force-pushed the 16.0-mig-mail_edit branch from e7586d9 to a1d8ce8 Compare April 21, 2026 13:28
@KKamaa
Copy link
Copy Markdown

KKamaa commented Apr 21, 2026

Just a question on the security groups should they be applied to the buttons or how they were before is better? If they were to be applied we can use await this.env.services.user.hasGroup(...) just placing this for review to consider before merging.
@KKamaa I think the functionality with the groups should remain the same, but I think you can best decide what the best implementation is.

Please smash all your commits into one.

I squashed the commits, I will leave the groups 'thing' for now to allow testing, and maybe later on we can check it out if need be

@NL66278
Copy link
Copy Markdown
Author

NL66278 commented Apr 23, 2026

@KKamaa I installed this locally, but even after regenerating asset bundles I do not see any edit button (pencil) in messages. Is there anything I should do extra? I also checked my user had all the edit rights set.

@KKamaa
Copy link
Copy Markdown

KKamaa commented Apr 23, 2026

@KKamaa I installed this locally, but even after regenerating asset bundles I do not see any edit button (pencil) in messages. Is there anything I should do extra? I also checked my user had all the edit rights set.

@NL66278 I tested it on a new local demo db and it works, see attached test below:

mail

Did you hover on the right side of the message when testing so that the action icons appear? Also maybe ran ./build on waft to pull latest Odoo v16.0 as you pull the branch latest.

@NL66278
Copy link
Copy Markdown
Author

NL66278 commented Apr 23, 2026

@KKamaa I installed this locally, but even after regenerating asset bundles I do not see any edit button (pencil) in messages. Is there anything I should do extra? I also checked my user had all the edit rights set.

@NL66278 I tested it on a new local demo db and it works, see attached test below:
mail

Did you hover on the right side of the message when testing so that the action icons appear? Also maybe ran ./build on waft to pull latest Odoo v16.0 as you pull the branch latest.

Yes, obviously I did a new build before testing. Also checked the commit hash to make sure I have the same code. If I move to the right of the message the two standard icons for react and mark todo appear. Several times build again, updated base, updated the module, nothing helps. Tried in Chromium and Librewolf... Racking my brain about what could be different, as obviously from your test the module works perfect.

@NL66278
Copy link
Copy Markdown
Author

NL66278 commented Apr 23, 2026

@KKamaa I found it, the edit function only works on comment and email messages, not on notifications.

@NL66278
Copy link
Copy Markdown
Author

NL66278 commented Apr 23, 2026

@KKamaa There where some formatting errors in the pot and po file. I will add a commit to solve that. This was also giving errors/warnings (not fatal) when loading the module.

Copy link
Copy Markdown
Author

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

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

👍 LGTM. Cannot approve as technically I submitted the PR, although @KKamaa really did all the work.

@NL66278 NL66278 requested a review from KKamaa April 23, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants