Odoo Help


How to filter and display location of selected product only? [Closed]

Dr Obx
on 7/15/15, 10:02 AM 911 views

The Question has been closed for reason: not relevant or out dated

Dr Obx
on 07/27/2015 05:05:00

Guys it's my Dead or Alive question and I have to solve this problem (I'm a newbie in Odoo).

I'm trying to learn myself but it's very difficult if you have no one to ask or if someone just post an answer without any explanation so I'm asking again How can I do it?

In MOVE's once you choose a product I would like to filter "Origin" - source location (location_id) and display only location where the selected product is actually stored. Is it possible filter it using only xml or py code is required?

<?xml version="1.0" encoding="utf-8"?>

        <record id="view_move_picking_form_qty" model="ir.ui.view">
        <field name="name">stock.move.form</field>
        <field name="model">stock.move</field>
        <field eval="20" name="priority"/>
        <field name="inherit_id" ref="stock.view_move_picking_form"/>
        <field name="arch" type="xml">
        <field name="location_id" position="replace">
        <field name="location_id" filter_domain="[('location_id', 'like', self)]" context="{'default_location_id': (product_id, location_id)}"/>

It's extremally URGENT for me so please if anyone can help I'll be appreciate.

Dr Obx
On 7/27/15, 5:04 AM

Guys, problem finally solved and works beautifully :)

Dr Obx
On 7/27/15, 5:04 AM

Guys, problem finally solved and works beautifully :)


Vale Trood

--Vale Trood--

| 5 2 7
Tunis, France
--Vale Trood--

Vale Trood
On 7/15/15, 10:07 AM

Try this:

<record model="ir.actions.act_window" id=".....">

<field name="name">.........</field>

<field name="res_model">.....</field>

<field name="view_type">form</field>

<field name="view_mode">tree,form...</field>

<field name="domain">[(location_id', '=', active_id)]</field>



It doesn't help ... don't know what to do with it or where to paste it.

Dr Obx
on 7/15/15, 11:10 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

1 follower(s)


Asked: 7/15/15, 10:02 AM
Seen: 911 times
Last updated: 7/27/15, 5:05 AM