Hi Albert! El 20/07/18 a las 12:56, Albert Cervera i Areny escribió:
2018-07-20 17:00 GMT+02:00 Luciano Rossi <[email protected] <mailto:[email protected]>>: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:
I took a look at this widget, but it does not work on tree views.
<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 - [email protected] 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.
