Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2608 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
lug 24
2521
1
giu 24
5001
1
ott 23
10686
1
ott 23
98
1
ago 23
2193