[16.0][IMP] account: migrate bank statement chatter attachments to attachment_ids#5714
Conversation
…nt_ids In Odoo 16, account.bank.statement gains a new attachment_ids many2many field to ir.attachment. Add a post-migration query that links the existing chatter attachments (ir.attachment with res_model = 'account.bank.statement') into this field.
pedrobaeza
left a comment
There was a problem hiding this comment.
But where these attachments come from? It's an OCA module?
|
Before version 16.0, the Starting from 16.0, this model no longer inherits from In addition, So I think there are two possible approaches:
Personally, I would prefer option 2, because it keeps the current Odoo design and avoids reintroducing the chatter only for attachment visibility. |
pedrobaeza
left a comment
There was a problem hiding this comment.
Understood. Thanks for the clarifications. They may be in the commit message, but let's not block it.
In Odoo 16, account.bank.statement gains a new attachment_ids many2many field to ir.attachment. Add a post-migration query that links the existing chatter attachments (ir.attachment with res_model = 'account.bank.statement') into this field.
cc @Tecnativa TT63091
ping @pedrobaeza @sergio-teruel