跳至內容
選單
此問題已被標幟
2668 瀏覽次數

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)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 24
2630
1
6月 24
5098
1
10月 23
10788
1
10月 23
98
1
8月 23
2193