Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2605 Tampilan

Hi all,


       I have inherited a new field to stock.move.line as a related field with product table.Even after setting "store=True", the field have no values in the DB.When i removed the "store=True" field, data displayed on screen.But still no data for the field in DB.Any suggestions??



class StockMoveLineInherit(models.Model):


    _inherit = "stock.move.line"


    material_type = fields.Char(string="Material Type", related='product_id.quality_parameter_type', store=True)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 24
2515
1
Jun 24
4997
1
Okt 23
10683
1
Okt 23
98
1
Agu 23
2193