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

I bought a module displaying product variant internal code for V10. But I get no reply from the author updating it to V12. But the module is generally working but with wrong default code for each variant. Say for Variant Color Red: 001, Color Blue:002 in backend, it will display Color Red: 002, Color Blue:001. This is not happening in V10. Here is the code in controller, I am almost new to python . Any help is highly appreciated.

class WebsiteSale(http.Controller):

@http.route(['/get_variant_code'], type='json', auth='public',
methods=['POST'])
def get_variant_code(self, **post):
variant_code = http.request.env['product.product'].sudo().\
search([('id', '=', int(post.get('product_id')))])
codes = [code.default_code for code in variant_code]
return {'product_rec_code': codes}

الصورة الرمزية
إهمال

You may want to contact the author of the module to get this fixed since you have paid for it.

الكاتب

@Paresh W, the thing is that I got no reply from the author. The module is the only one by this author and I think he/she should stopped in service for odoo

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أبريل 25
939
1
مايو 24
3471
1
أبريل 24
2278
0
أبريل 24
1651
1
مايو 23
4658