i was add record to invoice_line_ids in account.invoice from code
now i want to filter the uom_id field like onchange do in normal add product
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i was add record to invoice_line_ids in account.invoice from code
now i want to filter the uom_id field like onchange do in normal add product
Hello Omer Ahmed,
Please find a first description related corrections,
self .invoice_line_ids = [(4, line.id)]
As per your question, You need to return the domain return in the Onchange then find the following solution:
Example: (In this list which condition you need to use)
return {'domain': {'uom_id': [('id', '=', product_id.uom_id)] }}
Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up| Related Posts | Replies | Views | Activity | |
|---|---|---|---|---|
|
filter_partner not working
Solved
|
1
सित॰ 23
|
1828 | ||
|
0
मई 21
|
3245 | |||
|
1
अक्तू॰ 20
|
5294 | |||
|
1
मई 24
|
5338 | |||
|
3
मार्च 24
|
2099 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.