跳至內容
選單
此問題已被標幟
1 回覆
15592 瀏覽次數

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
)





頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
5月 21
3061
1
2月 19
2721
0
12月 18
2995
0
7月 18
3337
1
5月 18
4341