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

Change the form view used by a relational field

By
Nada Yahia Dawoud
on 3/18/15, 11:11 AM 458 views

 I'm trying to change the form view that opens by default when we click (add a new item) in stock picking form view in move_lines (it opens stock move form view).

I've inherited stock move form view and added a field and it's my view that opens when opening Stock Moves from the left side menu. But when clicking add new item in picking it opens the original stock move form view without my field.

I've tried adding higher priority.But it didn't work

 <field eval="1" name="priority"/>

I'v also tried to override the original view instead of just inheriting it. It didn't work as well.

<record id="stock.view_move_form" model="ir.ui.view">
...
</record>

I've also tried to specify the view_id in the move_lines field in stock picking view as said here, but also not working.

<field name="move_lines" context="{'form_view_ref': my_module.my_view_id}"/>

How can I make it open my view when creating a stock move form inside the picking?

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

1 follower(s)

Stats

Asked: 3/18/15, 11:11 AM
Seen: 458 times
Last updated: 3/18/15, 11:11 AM