To create a product I'm using my own module which also create automatically product name combining specified fields values. I't quiet good idea if you want have always the same form of names or same details in title (product name). Because my company is multinational and people have always problem with naming products so to avoid mistakes or misspelled names I decided to built this module to help them and make it easier/quicker/safer and foolproof. Since then nobody except department manager can add new names to the lists used for name creation. Because i would like to avoid increasing amount of fields i need a little advice and help. Because list of fields depends on product type which is the first field in form (fields.selection()) i would like to change some or at least one field label/string but I'm not sure is it possible without writing special program in JavaScript for example.
So if product type = Computer currently named field Variant need to be changed to Speed.
In php it could be so simple ex:
<?php
if($item_type = 'Computer'){
$field_name = 'Variant';}
if($item_type = 'Monitor'){
$field_name = 'Display Size';}
php> and then field name will be changed regarding item type chosen.
Guys, is it possible to change field name (string or label) depending on value selected in selection field in some easy way ?
Of course i can create a dedicated field but if i can just change name ...
"Another silly question" isn't an appropriate title for a question - please review https://www.odoo.com/forum/help-1/faq and https://www.odoo.com/forum/help-1/question/meta-why-do-some-questions-get-answers-and-others-dont-25620
Yes you absolutely right.