This code works perfectly:
prod_obj = self.env['product.template']
new_dict = product.read(list(set(prod_obj._fields)))
How to return only fields where state = manual?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
This code works perfectly:
prod_obj = self.env['product.template']
new_dict = product.read(list(set(prod_obj._fields)))
How to return only fields where state = manual?
I'm getting error:
ValueError: Invalid field 'state' in leaf "<osv.ExtendedLeaf: ('state', '=', 'manual') on product_template (ctx: )>"
I add a custom field in ir.model.fields to product.template.
In model product.template i want create dict only from custom fields
Hello Popeye,
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 | |
|---|---|---|---|---|
|
2
सित॰ 21
|
6193 | |||
|
1
जुल॰ 19
|
3461 | |||
|
3
सित॰ 20
|
3828 | |||
|
3
दिस॰ 19
|
3620 | |||
|
1
नव॰ 19
|
5412 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.