> The client doesn't know about Function field but only about the type 
> which is in this case One2Many. 
> So when a One2Many is defined on a view but without any view_ids 
> attribute, it is the default view (lower sequence) of the target Model 
> that is used (in this case of stock.move). 
>
>
Thanks for your answer. So, in this case, default view  is move_tree.xml

<tree string="Moves">
    <field name="product"/>
    <field name="from_location"/>
    <field name="to_location"/>
    <field name="quantity"/>
    <field name="uom"/>
    <field name="planned_date"/>
    <field name="effective_date"/>
    <field name="state"/>
    <field name="unit_digits" tree_invisible="1"/>
</tree>

But there is more fields in the model than displayed in the view of the 
function field.
In shipment_in : (from_location and to_location are invisible for the 
function field "incoming_moves" and "from_location" is invisible for 
function_field "inventory_moves"  and both are using stock.move...

"from_location" and "to_location" in the class Move have the same domain
So i'm still wondering how fields are hidden in the view ?


-- 
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/d52647c0-71c6-41d6-94cb-ee0e169e9229%40googlegroups.com.

Reply via email to