Skip to Content
मेन्यू
This question has been flagged

I have this module I use to attach certain information to stock.production.lot. How should I make these fields searchable in the main search bar? i.e. if I wanted to find a product that has an associated unique Serial Number, that has associated Toner Level (x_toner) field set to 'Full'?

Can someone point me to good examples or some specific reading?

from odoo import models, fields, api

class x_wh(models.Model):
_inherit = 'stock.production.lot'

x_toner = fields.Char(
'Toner Level', index=True
)
x_print_count = fields.Integer(
'Print Count', index=True
)
x_description = fields.Text(
'Description'
)
x_condition = fields.Char(
'Product Condition', index=True
)





Avatar
Discard
Related Posts Replies Views Activity
0
मई 21
3069
1
फ़र॰ 19
2744
0
दिस॰ 18
3004
0
जुल॰ 18
3360
1
मई 18
4347