Odoo Help

Welcome!

This community 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.

0

How can I add a field in delivery order.

By
CK
on 4/12/13, 6:17 AM 1,280 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?

0
Peter
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)

Peter
on 7/18/13, 11:36 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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