Tested on Runbot : http://446436-11-0-365516.runbot14.odoo.com/web?debug=#id=48&view_type=form&model=sale.order&action=721
Impacted versions:
> Odoo V11 CE
Steps to reproduce:
> Add any M2M field.(e.g. relation = ir.attachment)
> Add this field in any One2many form, add M2M field having widget many2many_binary on it (in view file).
> if you edit and add attachment in existing record of one2many form, it will cause loading issue.and going in infinite mode.
> but work well if you create new record and upload attachment.
Current behavior:
Not uploading any attachment and goes in infinite loading.
Expected behavior:
it should work thoroughly in every condition either in new record or existing record.
Video/Screenshot link (optional):
https://drive.google.com/open?id=1Cj1R_sDstZCOWD6rlUAtfpleF9NkiaRi
@Yenthe666 and @pedrobaeza or any one, It will be great if you provide any alternative to achieve the same thing till the issue resolve ?
Thanks.
There's no alternative for what you want to do.
There is an alternative, but still is not a ideal solution.
You can add binary field and onchange method.
Once the file is inserted into binary field, you can, in onchage method, convert it to attachment in many2many field, and clear binary field to be able to add next file.
It doesn't solve the problem, it's just workaround.
Most helpful comment
There is an alternative, but still is not a ideal solution.
You can add binary field and onchange method.
Once the file is inserted into binary field, you can, in onchage method, convert it to attachment in many2many field, and clear binary field to be able to add next file.
It doesn't solve the problem, it's just workaround.