Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3704 Переглядів

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
3760
3
груд. 22
11678
5
квіт. 24
42242
6
квіт. 24
39108
3
бер. 24
10676