diff options
| author | Louis Baudoux <lba@odoo.com> | 2019-08-28 13:56:42 +0000 |
|---|---|---|
| committer | Louis Baudoux <lba@odoo.com> | 2019-09-05 11:22:36 +0000 |
| commit | a64476635e14fd557f33b43722ddc19a6458a562 (patch) | |
| tree | 47d0f4a21d309df1b0c495856df66878c45ceba0 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 93fa283020bcd8dbc1adf99248ff8d22b8884483 (diff) | |
[FIX] account: fix main_attachment_id not set on attachment upload
When creating invoices via the 'Upload' button, the
'message_main_attachment_id' field wasn't set on the record. This
happened because the message posted in the chatter was linked to the
wrong 'res_model' which prevented it from being selected as the main
attachment.
This was causing a bug in the OCR module ('account.invoice.extract')
where we use this field to determine which attachment must be sent to
the OCR server.
closes odoo/odoo#36309
Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
