Odoo Help

0

One table with two filter Odoo

By
supreeth
on 7/7/16, 8:06 AM 596 views

hi,

I have a table called product.templete which shows list of all products. In product table i have created a field called Product category(Selection DataType) contains Models and Parts.

In quotation menu, i have created two Order Lines tab, one is for Models Order Lines and another tab is for Parts Order Lines.

In Product menu i created a product and selected product category as "Models" and save the product.

In Quotation menu, Models Order Lines tab when i select product it should show the list of only related to Models(Product Category). It should not show the list of Parts(Product Category).

How can we make this filter? These two Models and Parts data are saving in one table(product.template).

2

Sudhir Arya (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
11226
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com 
Sudhir Arya (ERP Harbor Consulting Services)
On 7/7/16, 1:55 PM

Hello Supreeth,

You just have to set the domain on your product_id field in xml file.

EX:

<field name="product_id" domain="[('category_type', '=', 'models')]"/>

This domain will show you only those products which are of type models.

Hope this helps you.

thank you

Sudhir Arya

supreeth
on 7/8/16, 12:07 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.

Register

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)

Stats

Asked: 7/7/16, 8:06 AM
Seen: 596 times
Last updated: 7/7/16, 1:55 PM