跳至內容
選單
此問題已被標幟
1 回覆
2185 瀏覽次數

Sometimes, when creating a product, the product type in Odoo is automatically set as either "Consumable" or "Storable Product". I am interested in knowing the criteria used by Odoo to determine whether a product should be classified as a consumable or a storable item.

頭像
捨棄

can this be changed in some way?

Hi Mike - yes, it is set in the Context for the Windows Action. If you go into Developer Mode, click the debug icon and select "Action" you will see that the context is {"search_default_goods": 1, 'default_is_storable': True} - you could add that to the other menu options. I explain more about Context here: https://odootricks.tips/context/

作者 最佳答案

The product type assigned to a newly created product depends on the app used. For example, the product type assigned when using the Inventory and Manufacturing apps to create a product is a Storable Product. On the other hand, the product type assigned is Consumable when using Sales, Purchase, Accounting, and PLM. 

Examples:


頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
8月 25
3720
1
4月 24
2147
1
4月 24
2281
1
6月 24
2726
1
8月 24
2827