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 to filter and display location of selected product only? [Closed]

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

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

by
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"?>

<openerp>
     <data>
        <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)}"/>
    </field>
    </field>
    </record>
 </data>
</openerp>

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

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

Guys, problem finally solved and works beautifully :)


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

Guys, problem finally solved and works beautifully :)


0

Drees Far

--Drees Far--
1130
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
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>

</record>

 

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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