Skip to Content
Menu
This question has been flagged
1 Reply
1130 Views

Using Studio created custom product field; many2many as tags (widget many2many_tags) 

Need to translate the values for every active language but i'm unable to locate any manual or how-to. Tried enabling translatable checkbox in created model/table , on studio created x_name field but on every import each language overrides the values.

Any tips? Thank you.

Avatar
Discard
Author Best Answer

Manipulating ir_translation table seems to work, not sure if this is the most elegant solution;

Table ir_translation:

    name:  [new model],[field]  example,  x_label,x_name

    res_id: id of value to translate from table (same name that new model)

     lang: target lang 

     type: model

     src: string value to translate

     value: new value , translated string

     module: null

     state: translated

 

  


Avatar
Discard