跳至内容
菜单
此问题已终结
2 回复
6138 查看

How I can create an internal note in odoo by code python in model stock.picking ?

形象
丢弃
最佳答案

1- Create a string for 'Internal note' using string functions and the data you need to include in 'internal note'
2- Assign the string to internal note field (self.note = <your string>)

形象
丢弃
最佳答案

If you are trying to give some values to notes automatically in every records, Then please try code  below:


@api.one   

@api.depends('mention_here_the depends_fields')   

def _stuff_note(self):

     <Write stuff method here, say x & y>
     stuff_to_notes = str(x) + str(y)
     self.note = stuff_to_notes


Hope this may help you. Thanks.

形象
丢弃