コンテンツへスキップ
メニュー
この質問にフラグが付けられました

I am tryint to extend stock.picking class with a new method:


def download_item_labels(self,id, **kw):

  Model = request.registry['stock.picking']

  cr, uid, context = request.cr, request.uid, request.context

  fields = ['id']

  res = Model.read(cr, uid, [int(id)], fields, context)[0]


How can I get all product codes (I guess that products i stock.picking are not linked to product) included in that stock.picking?

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
3778
3
12月 22
11711
5
4月 24
42275
6
4月 24
39171
3
3月 24
10709