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
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
set 21
|
5587 | ||
|
1
lug 19
|
2993 | ||
|
3
set 20
|
3194 | ||
|
3
dic 19
|
3111 | ||
|
1
nov 19
|
4864 |