Discussion:
[tryton] inline edit of a one2many field
Luciano Rossi
2018-07-20 15:00:08 UTC
Permalink
Hi everybody,

I need to add records inside of a one2many field, but as inline edit on
a list view. The idea is similiar when adding *tags* on a website. [0]

[0] https://harvesthq.github.io/chosen/?utm_source=hackernewsletter

Is there any way to achive it?

Thanks,
--
Luciano Rossi - ***@gcoop.coop
http://gcoop.coop - Cooperativa de Software Libre
La Pampa 4395 CABA C1430BXU +54 11 5254-7755

Visitá www.tiendas.coop - www.nube.coop
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/9c7fbc48-198e-b2d2-20be-074c77e37f6e%40gcoop.coop.
Albert Cervera i Areny
2018-07-20 15:56:24 UTC
Permalink
Post by Luciano Rossi
Hi everybody,
I need to add records inside of a one2many field, but as inline edit on a
list view. The idea is similiar when adding *tags* on a website. [0]
Unfortunately not. The closer you can achieve is using "multiselection"
widget as the stock_lot module does:

<field name="lot_required" widget="multiselection" yexpand="0"/>

Or you could hack something by using a many2one field + a many2many one and
using the m2o's on_change method to fill in the m2m and cleaning the m2o.
Post by Luciano Rossi
[0] https://harvesthq.github.io/chosen/?utm_source=hackernewsletter
Is there any way to achive it?
Thanks,
--
http://gcoop.coop - Cooperativa de Software Libre
La Pampa 4395 CABA C1430BXU +54 11 5254-7755
Visitá www.tiendas.coop - www.nube.coop
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/ms
gid/tryton/9c7fbc48-198e-b2d2-20be-074c77e37f6e%40gcoop.coop.
--
Albert Cervera i Areny
http://www.NaN-tic.com
Tel. 93 553 18 03
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/CADWJ7Gm_Pkd4-URfPpFEjrr4P346db96WyzGaxJABBSuY%3DGp1g%40mail.gmail.com.
Luciano Rossi
2018-07-20 17:43:48 UTC
Permalink
Hi Albert!
Post by Luciano Rossi
Hi everybody,
I need to add records inside of a one2many field, but as inline edit
on a list view. The idea is similiar when adding *tags* on a
website. [0]
Unfortunately not. The closer you can achieve is using "multiselection"
I took a look at this widget, but it does not work on tree views.
Post by Luciano Rossi
<field name="lot_required" widget="multiselection" yexpand="0"/>
Or you could hack something by using a many2one field + a many2many one
and using the m2o's on_change method to fill in the m2m and cleaning the
m2o.
Thanks, I will go for this approach. The only *problem* here is that if
I want to remove an item, I can't do it at the list view, I need to do
it at the form view.

Cheers,
--
Luciano Rossi - ***@gcoop.coop
http://gcoop.coop - Cooperativa de Software Libre
La Pampa 4395 CABA C1430BXU +54 11 5254-7755

Visitá www.tiendas.coop - www.nube.coop
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/7fb26590-eb02-c105-f6a8-af364723ed6b%40gcoop.coop.
Continue reading on narkive:
Loading...