the question says is all basically when creating a new product by default it is marked as "consumable product'. In my case I almost always want to create a 'Stockable Product' though. Is there a way to set this up as the default option?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Projet
- MRP
Cette question a été signalée
Hi Gunnar,
You can set default value for any of field from selected form view. Just see the below screen. User can set default value from "debug" mode.

I hope this will help you.
Through the GUI I don't believe so. I don't see a way anyway. You should be able to do it programatically.
The field you are looking for is the "type" field in the product.template model. It is originally defined in /addons/product/product.py. You can change it in that file, but it may not work since I think this column is inherited and changed somewhere else. Best practice is to create a custom module and inherit the model with this column:
'type': fields.selection([('product','Stockable Product'),('consu', 'Consumable'),('service','Service')], 'Product Type', required=True, default='product' help="Consumable are product where you don't manage stock, a service is a non-material product provided by a company or an individual.")
Also, you will find information on the default fields in the ORM API docs for 8.0:
https://www.odoo.com/documentation/8.0/reference/orm.html#creating-models
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
|
2
sept. 25
|
917 | ||
|
|
1
oct. 25
|
924 | ||
|
|
2
juin 25
|
2580 | ||
|
|
0
mars 25
|
2588 | ||
|
|
0
févr. 25
|
1821 |
Hi,, Have you tried giving default for that field??
no. how would you do that?