how to add a field related on odoo
I would like to add a text field on stock.move related to stock.picking origin field
I tried this :
_columns={
'sourcebl': fields.related('picking_id', 'origin', type='char', relation='stock.picking', string='Class Description', store=True, readonly=True),
}
do you have any Idea
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…