Odoo Help


How can I add a field in delivery order.

on 4/12/13, 6:17 AM 1,407 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"/>

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?

On 7/18/13, 11:26 AM

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

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

on 7/18/13, 11:36 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 4/12/13, 6:17 AM
Seen: 1407 times
Last updated: 3/16/15, 8:10 AM