コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5624 ビュー

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
9月 15
4349
0
7月 15
3365
0
3月 15
3251
2
4月 25
1118
3
4月 23
2594