El martes, 26 de mayo de 2015, 10:40:04 (UTC+1), Cédric Krier escribió:
>
> On 25 May 02:27, Antonio Roncero wrote: 
> > Hi, 
> > 
> > i am trying to make a editable tree view for quick edition (not use the 
> > mouse when add lines). I want that when i create a new line the first 
> not 
> > readonly field has the focus (not be necesary click to edit). 
> > My code: 
> > 
> > <tree string="Sale Lines" sequence="sequence" editable="bottom" cursor= 
> > "product"> 
> >     <field name="type" readonly="1"/> 
> >     <field name="product"/> 
> >     <field name="description" readonly="1"/> 
> >     <field name="quantity"/> 
> >     <field name="unit"/> 
> >     <field name="unit_price"/> 
> >     <field name="taxes"/> 
> >     <field name="amount" expand="1"/> 
> >     <field name="unit_digits" tree_invisible="1"/> 
> > </tree> 
> > 
> > But not works and cursor is not available for tree view. what is the 
> right 
> > way to do this? 
>
> The cursor attribute is only valid on form view. See the tree.rnc file. 
> For a list view, the client automaticaly set the cursor to the first 
> editable cell. 
>

Thanks, it's works. Finally i remove the first field. My problem was that i 
put the first field as 'readonly' so the cursor don't set in any field. I 
thought that being readonly the client would automatically set the cursor in 
the 
next editable field
 

>
> -- 
> Cédric Krier - B2CK SPRL 
> Email/Jabber: [email protected] <javascript:> 
> Tel: +32 472 54 46 59 
> Website: http://www.b2ck.com/ 
>

Reply via email to