The webclient returns a message "server error" if you add an attachment or send
a message on an archived record chatter.
steps to reproduce:
- archive a record (ex: a partner)
- send a message on the chatter or add an attachment
before this commit:
- a popup error is raised "server error"
after this commit:
- the chatter is working properly on archived records
opw-3689169
closesodoo/odoo#149862
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>