Commit Graph

39 Commits

Author SHA1 Message Date
Telmo Santos
85936ca551 [12.0] web_translate_dialog: Do not translate related readonly fields 2020-10-14 11:40:41 +02:00
Akim Juillerat
bf06a84b9a web_translate_dialog: Display only fields displayed in the view
parent.renderer.state.fields includes all the fields in the model
whereas parent.renderer.state.getFieldNames() includes all the fields
displayed in the view.
This commit filters out fields that are not displayed in the view
to avoid the TypeError "undefined is not an object (evaluating '$('[name='+field_name+']')[0].maxLength')"
because translatable_fields did include fields that are not in the view.
2020-10-09 13:51:24 +02:00
OCA-git-bot
5b099ca76c [UPD] README.rst 2020-07-14 05:30:40 +00:00
OCA-git-bot
e91957559d [UPD] README.rst 2020-07-13 05:30:37 +00:00
Iryna Vushnevska
167ea0f239 [FIX] web_translate_dialog: load translation
translated field can be saved in input or textarea
2020-03-09 14:16:56 +02:00
OCA-git-bot
d138c6d9fe [UPD] README.rst 2020-02-26 14:09:09 +00:00
Timon Tschanz
669e4dfab3 Fix sidebar & reenable multiple fields 2020-01-30 14:11:45 +01:00
Iryna Vyshnevska
239dde91b6 [IMP] web_translate_dialog: set maxlength in dialog
when field support size attribute set it to dialog to prevent aditional
input
2019-10-23 12:00:22 +03:00
Timon Tschanz
1f8066ab79 address comments 2019-09-30 10:46:57 +02:00
Akim Juillerat
29fa333221 Add tr_sequence on res.lang to allow sorting languages in the translation dialog 2019-09-30 10:46:57 +02:00
Akim Juillerat
7fde1b35d5 Remove field description column and move it to title 2019-09-30 10:46:57 +02:00
Akim Juillerat
bd1f4a4ff9 Fix sizing of textarea
Resize textarea either to the max height of its content if it stays
in the modal or to the max height available in the modal
2019-09-30 10:46:57 +02:00
Akim Juillerat
d6d4eb0e91 Use $ instead of $el.find 2019-09-30 10:46:57 +02:00
Akim Juillerat
6e853b09d8 Set max-width to 90% on translate dialog 2019-09-30 10:46:57 +02:00
Akim Juillerat
cd59690f76 Attend review comments 2019-09-30 10:46:57 +02:00
Akim Juillerat
f814a950de Refactor to display only existing translations 2019-09-30 10:46:57 +02:00
Akim Juillerat
31cf928dfe Keep translated value after hitting save 2019-09-30 10:46:56 +02:00
Akim Juillerat
9edd8ace29 Fix error if field to translate is not textarea 2019-09-30 10:46:56 +02:00
Akim Juillerat
a3ac7e69ec Apply autoresize on textarea elements and fix css 2019-09-30 10:46:56 +02:00
Timon Tschanz
cd48e2dafc fix reminder box link 2019-09-30 10:46:56 +02:00
Timon Tschanz
4b64159e14 fix context and add mutex 2019-09-30 10:46:56 +02:00
Timon Tschanz
63ee8021fc [12.0][MIG] web_translate_dialog 2019-09-30 10:46:56 +02:00
Timon Tschanz
ca033cc45a [fix] web_translate_dialog: correct context split
Fixes the display of languages other than the user language  in the translation dialog.
split_context checks if we provide more arguments than read has and then uses of the additional one as context.
Since read takes the argument load additionally to the ones already given, we need to provide it as well to ensure the context is split.
2019-09-30 10:46:56 +02:00
Jay Vora(SerpentCS)
b4ccf25fe2 [MIG] web_translate_dialog migrated to v10 2019-06-19 11:36:53 +02:00
Antonio Espinosa
37e2d32235 [FIX] Add codeview button to translate HTML fields 2019-06-19 11:36:53 +02:00
Antonio Espinosa
207266d298 [MIG] web_translate_dialog 2019-06-19 11:36:53 +02:00
Yannick Vaucher
c18750f503 Add missing default oca icons 2019-06-19 11:36:53 +02:00
Alexis de Lattre
fcaa3cae00 web_translate_dialog: port to v8 2019-06-19 11:36:53 +02:00
Holger Brunn
63cb612fe9 move all addons to __unported__, set all addons as not installable 2019-06-19 11:36:53 +02:00
Guewen Baconnier
5163cf2e5c Propagate the changes done in the translate dialog back to the view 2019-06-19 11:36:53 +02:00
Guewen Baconnier
91f8c43147 Read the fields of the current language from the view, not from a read() in the database 2019-06-19 11:36:53 +02:00
Guewen Baconnier
1c9e8d6fcb obsolete comment 2019-06-19 11:36:53 +02:00
Guewen Baconnier
819b9ce576 Rename the frenchisms 'word' trads to translation 2019-06-19 11:36:53 +02:00
Guewen Baconnier
4de854268c [FIX] display title 2019-06-19 11:36:53 +02:00
Guewen Baconnier
d876d030f9 [FIX] avoid to set the dirty flag on the view when not necessary, especially when the translate dialog is opened from the readonly view. 2019-06-19 11:36:53 +02:00
Guewen Baconnier
848b457995 [FIX] error when a view has no sidebar (popup) 2019-06-19 11:36:53 +02:00
Guewen Baconnier
c2d7cf346f [CHG] read_translations() not working as expected on OpenERP 7, use the normal read() 2019-06-19 11:36:53 +02:00
Guewen Baconnier
a556019f56 [FIX] autosize the textareas 2019-06-19 11:36:53 +02:00
Guewen Baconnier
3d51c256e0 [CHG] rename web_translate_dialog_page to web_translate_dialog 2019-06-19 11:36:53 +02:00