Suppose i am declaring a field like
name = fields.Char()
and i can call python function using compute attribute in this case.
but if i declare a field like
category = fields.Many2one('album_files')
how can i call a function i this case.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Suppose i am declaring a field like
name = fields.Char()
and i can call python function using compute attribute in this case.
but if i declare a field like
category = fields.Many2one('album_files')
how can i call a function i this case.
Hello,
You can define like
category = fields.Many2one('sale.order',compute='album_files')
For Compute method:
If your category filed depends on any other file than you can use @api.depends and in this case your filed value store=True otherwise you can use @api.multi your field value store=False
Thanks
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Odoo Mail Sending Limit
Solved
|
|
2
Dec 23
|
12005 | |
|
0
Oct 23
|
33 | ||
|
3
Oct 23
|
787 | ||
|
1
Oct 23
|
569 | ||
|
0
Oct 23
|
332 |