Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
In these 3 tables, we have a column « name » :
we don't want the internal code at the beginning of the field « name ».
For example, in this field, instead of « [g-cafe] Grand café », we just want « Grand café ».
Thanks to help!
You must be referring to this issue on a particular field, such as the product, right?
By default on each model the name shown in the lists corresponds to the field 'name' in that model.
However there's the option to override this behaviour, in order to customize the name shown, by means of implementing method 'name_get' in a particular model.
In case of the model 'product', that is used in 'purchase.order.line', 'sale.order.line', '.account.invoice.line', the this method, as seen in the module 'product' and file 'product.py' does this concatenation:
name = '[%s] %s' % (code,name)
In order to avoid this you should create a new custom model, inherit from 'product' and redefine this method to suit your needs.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/18/15, 7:19 PM|
|Seen: 787 times|
|Last updated: 4/19/15, 8:22 AM|