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.

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

Reply via email to