Commit Graph

42 Commits

Author SHA1 Message Date
OCA-git-bot
5bbecbafe7 [UPD] README.rst 2021-06-09 06:28:26 +00:00
fshah
f46902d013 [13.0][MIG]web_translate_dialog 2021-06-03 15:42:52 +05:30
fshah
4954513714 [IMP]web_translate_dialog: black, isort, prettier 2021-02-03 10:25:27 +05:30
Telmo Santos
61d33e1fe9 [12.0] web_translate_dialog: Do not translate related readonly fields 2021-02-02 14:18:19 +05:30
Akim Juillerat
d4c4cbf2e0 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.
2021-02-02 14:18:19 +05:30
OCA-git-bot
8b0cffa62e [UPD] README.rst 2021-02-02 14:18:19 +05:30
OCA-git-bot
70c390463c [UPD] README.rst 2021-02-02 14:18:19 +05:30
Iryna Vushnevska
3e37bd0424 [FIX] web_translate_dialog: load translation
translated field can be saved in input or textarea
2021-02-02 14:18:19 +05:30
OCA-git-bot
643aeeea34 [UPD] README.rst 2021-02-02 14:18:19 +05:30
Timon Tschanz
ce339fc269 Fix sidebar & reenable multiple fields 2021-02-02 14:18:19 +05:30
Iryna Vyshnevska
886eb365be [IMP] web_translate_dialog: set maxlength in dialog
when field support size attribute set it to dialog to prevent aditional
input
2021-02-02 14:18:19 +05:30
Timon Tschanz
b21e9687ce address comments 2021-02-02 14:18:19 +05:30
Akim Juillerat
61e3767b2d Add tr_sequence on res.lang to allow sorting languages in the translation dialog 2021-02-02 14:18:19 +05:30
Akim Juillerat
9191903bcc Remove field description column and move it to title 2021-02-02 14:18:19 +05:30
Akim Juillerat
a48c11bd6e 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
2021-02-02 14:18:19 +05:30
Akim Juillerat
344c90ca61 Use $ instead of $el.find 2021-02-02 14:18:19 +05:30
Akim Juillerat
009df73e96 Set max-width to 90% on translate dialog 2021-02-02 14:18:19 +05:30
Akim Juillerat
35abf99efa Attend review comments 2021-02-02 14:18:19 +05:30
Akim Juillerat
b8de485053 Refactor to display only existing translations 2021-02-02 14:18:19 +05:30
Akim Juillerat
0ba72bac46 Keep translated value after hitting save 2021-02-02 14:18:19 +05:30
Akim Juillerat
f6180af4c0 Fix error if field to translate is not textarea 2021-02-02 14:18:19 +05:30
Akim Juillerat
4cbe5a7217 Apply autoresize on textarea elements and fix css 2021-02-02 14:18:19 +05:30
Timon Tschanz
bee6901f7f fix reminder box link 2021-02-02 14:18:19 +05:30
Timon Tschanz
e7815290b3 fix context and add mutex 2021-02-02 14:18:19 +05:30
Timon Tschanz
c7bf51250b [12.0][MIG] web_translate_dialog 2021-02-02 14:18:19 +05:30
Timon Tschanz
0a334368bf [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.
2021-02-02 14:18:19 +05:30
Jay Vora(SerpentCS)
756e08d523 [MIG] web_translate_dialog migrated to v10 2021-02-02 14:18:19 +05:30
Antonio Espinosa
c6db645b99 [FIX] Add codeview button to translate HTML fields 2021-02-02 14:18:19 +05:30
Antonio Espinosa
f307c83510 [MIG] web_translate_dialog 2021-02-02 14:18:19 +05:30
Yannick Vaucher
23ca33b054 Add missing default oca icons 2021-02-02 14:18:19 +05:30
Alexis de Lattre
658ee425e9 web_translate_dialog: port to v8 2021-02-02 14:18:19 +05:30
Holger Brunn
d8b3d37d7c move all addons to __unported__, set all addons as not installable 2021-02-02 14:18:19 +05:30
Guewen Baconnier
90868c572c Propagate the changes done in the translate dialog back to the view 2021-02-02 14:18:19 +05:30
Guewen Baconnier
01845071cd Read the fields of the current language from the view, not from a read() in the database 2021-02-02 14:18:19 +05:30
Guewen Baconnier
9190feed1b obsolete comment 2021-02-02 14:18:19 +05:30
Guewen Baconnier
47924051b5 Rename the frenchisms 'word' trads to translation 2021-02-02 14:18:19 +05:30
Guewen Baconnier
b36079beb7 [FIX] display title 2021-02-02 14:18:19 +05:30
Guewen Baconnier
d0c7449560 [FIX] avoid to set the dirty flag on the view when not necessary, especially when the translate dialog is opened from the readonly view. 2021-02-02 14:18:19 +05:30
Guewen Baconnier
f57bb2a855 [FIX] error when a view has no sidebar (popup) 2021-02-02 14:18:19 +05:30
Guewen Baconnier
8a37103af4 [CHG] read_translations() not working as expected on OpenERP 7, use the normal read() 2021-02-02 14:18:19 +05:30
Guewen Baconnier
6da9187d60 [FIX] autosize the textareas 2021-02-02 14:18:19 +05:30
Guewen Baconnier
fadbc44143 [CHG] rename web_translate_dialog_page to web_translate_dialog 2021-02-02 14:18:19 +05:30