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
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
1
9月 23
|
1212 | ||
|
0
5月 21
|
2565 | ||
|
1
10月 20
|
4522 | ||
|
1
5月 24
|
4570 | ||
|
3
3月 24
|
1426 |