Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged

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?

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 25
3688
3
pro 22
11604
5
dub 24
42167
6
dub 24
39013
3
bře 24
10615