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

I have reordering rules on automatic for raw materials. But i don't need reordering rules for products for sale. Is it possible to make an automated action to remove reordering rules when the product category is updated to Product?

الصورة الرمزية
إهمال
أفضل إجابة

You can do this by defining an automated action like so. Replace "Test" with the actual name of your product category ("Product" in your example above)


Python code:

for rule in env['stock.warehouse.orderpoint'].search([('product_id', 'in', record.product_variant_ids.ids)]):
rule.unlink()
الصورة الرمزية
إهمال
الكاتب

Wow! You really saved me! Thank you so much Paresh!

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
سبتمبر 15
4263
0
يوليو 15
3301
0
مارس 15
3180
2
أبريل 25
1030
3
أبريل 23
2530