Odoo Help


Change the form view used by a relational field

Nada Yahia Dawoud
on 3/18/15, 11:11 AM 845 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">

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?

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

1 follower(s)


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