Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

how changing the type of product?

By
Carlos Carmona
on 3/14/14, 1:07 PM 1,271 views

I need to modify or add new items in the combo box of the product type cul me appears when you add a new product, by default you have 3, the storable, consumable and service. I want to change this to just 2, one product and another saying that says licenses. This is according to in product.py file where you have to change, but I already did not show changes, and even reboot the server and not so visible. Stand them to modify codes:

in the class product_template (osv.osv) Variable class _columns

change this

fields.selection ([('consumer', 'Consumable'), ('service', 'Service')])

Variable _defaults change in this

'type': 'equi'

if it is not the only file you need to change to see the change of the combo box.

0

Med Said BARA

--Med Said BARA--
2664
| 5 5 7
Algeria
--Med Said BARA--
Med Said BARA
On 3/14/14, 7:50 PM

Hi;

The change must also be done in the product_view.xml

But this is a wrong way for adding a new product types !!!

then, they recommend me to change or some other method to do this? I've been on trying but nothing. I thought that the information on the type of product shown in the combo box was in some table database.

Together Consulting, Carlos Carmona
on 3/18/14, 12:28 PM
0
Carlos Carmona
On 3/14/14, 6:19 PM

I already did, I went to settings then update modules list and in the window that unfurled I gave you to update but still does not show me the types of products that meti, still showing me before. if this is not modifying the correct codes for the changes to be seen.

0
Carlos Carmona
On 3/14/14, 6:41 PM

I already did, I went to settings then update modules list and in the window that unfurled I gave you to update but still does not show me the types of products that meti, still showing me before. if this is not modifying the correct codes for the changes to be seen.

0

you must "update" your module, so that changes be applied. restarting server doesn't update module

I already did, I went to settings then update modules list and in the window that unfurled I gave you to update but still does not show me the types of products that meti, still showing me before. if this is not modifying the correct codes for the changes to be seen.

Together Consulting, Carlos Carmona
on 3/14/14, 6:19 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 3/14/14, 1:07 PM
Seen: 1271 times
Last updated: 7/3/16, 9:21 AM