On 2016-02-10 00:38, Maxime Richez wrote: > > > > 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 ?
This is because the One2Many's have a domain written in such way that it allows only one value for those fields. So the client automatically hide such fields because they don't give any information (the information is in the document header). -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- 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/20160210094110.GQ20880%40tetsuo.
