Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3750 มุมมอง

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?

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 25
3820
3
ธ.ค. 22
11769
How to get current url from bowser? แก้ไขแล้ว
5
เม.ย. 24
42342
Add users to group through python code แก้ไขแล้ว
6
เม.ย. 24
39264
how to compute Len() of list python แก้ไขแล้ว
3
มี.ค. 24
10773