تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3772 أدوات العرض

Hello, I'm trying to add the product.pricelist.item model into my website_sale module (to be able to retrieve stuff i created from that model and print them into the xml)


I added these lines into the main.py in the controller dir, under the shop function of the website_sale class:

items_obj = pool['product.pricelist.item']

items_ids = items.obj.search(cr, uid, [], context=context)

items = items_obj.browse(cr, uid, items_ids, context=context)


then i obviously added the line 'items' : items in the values list.


My problem is that whatever i then try to print, i get the error "need more than 1 value to unpack" which basically means there's nothing inside my items object.


Any help? Thanks


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مارس 15
7259
1
يونيو 23
1690
2
مارس 15
17675
1
يونيو 25
562
2
أبريل 25
948