It means adding the reverse Many2Many on product.category but we should be careful to avoid unnecessary load because this list may contain a very large number of products.
On 2020-09-25 16:19, Sergi Almacellas Abellana wrote:
> This will load all the products of the category when opening the form. Is is ok or we need any extra optimization?
For me, it is an issue because it penalize users with large product
sets.
Instead I think we should provide a link on the category form to open
another form with the Many2Many field to add products.
El 25/9/20 a les 22:40, Cédric Krier ha escrit:
> Instead I think we should provide a link on the category form to open
> another form with the Many2Many field to add products.
I like the idea of the link but for me the problem is that the current link widged does not allow to show the number of records of a Many2Many (only the ones for the action). So I'm wondering if it won't be better to add a counter (functional field) and a button to open the new view.
On 2020-09-26 19:30, Sergi Almacellas Abellana wrote:
> El 25/9/20 a les 22:40, Cédric Krier ha escrit:
> > Instead I think we should provide a link on the category form to open
> > another form with the Many2Many field to add products.
>
> I like the idea of the link but for me the problem is that the current link widged does not allow to show the number of records of a Many2Many (only the ones for the action). So I'm wondering if it won't be better to add a counter (functional field) and a button to open the new view.
By link I did not mean <link/> but a relate or a button (named
"Add Products").
I do not think it is needed to show any counter.