This question has been flagged
1 Reply
4945 Views

http://postimg.org/image/9fkvt7lh7/ (image description)

Hi,like the image, I want to add "Product English name" next to the "Product". And I find the code in xml:

<page string="Products">
     <field name="move_lines" context="{'address_in_id': partner_id, 'form_view_ref':'view_move_picking_form', 'tree_view_ref':'view_move_picking_tree', 'picking_type': 'internal'}"/>
      <field name="note" placeholder="Add an internal note..." class="oe_inline"/>
</page>

I find the "move_lines" in stock.py:

'move_lines': fields.one2many('stock.move', 'picking_id', 'Internal Moves', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}),

I try to add field in "view_move_picking_form" , But "Products English name" adds in the "Internal Moves".

http://postimg.org/image/cwa5ymh0t/ (image description)

If I want to work as I want, where should I change?

Avatar
Discard
Best Answer

It is in the "view_picking_out_form" view that you should add a field to; that way it only has effect in the "Delivery Order" form

Avatar
Discard

But make sure this field exists in the models stock.picking(.in/.out)