Automated Translations through Gengo API
base_gengo · odoo/odoo
-
Security25/25No findings
-
Activity0/25Last human commit 64 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 7 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
base_gengo_translation_wizard_from— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourcegengo_sync_receive_request_scheduler— Migrating to 18.0: `ir.cron` lost `numbercall`/`doall`: remove them from the record, data loading fails on unknown fields. (2 occurrences in this file) migration-cron-numbercall · sourceres_config_settings_view_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Automated Translations through Gengo API
This module will install passive scheduler job for automated translations using the Gengo API. To activate it, you must
- Configure your Gengo authentication parameters under
Settings > Companies > Gengo Parameters - Launch the wizard under
Settings > Application Terms > Gengo: Manual Request of Translationand follow the wizard.
This wizard will activate the CRON job and the Scheduler and will start the automatic translation via Gengo Services for all the terms where you requested it.
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- website_gengo
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
base_gengo_translation_wizard_from |
base.gengo.translation.form | base.gengo.translations | form | New |
res_config_settings_view_form |
res.config.settings.view.form.inherit.base.gengo | res.config.settings | form | Inherits base_setup.res_config_settings_view_form |
view_ir_translation_inherit_base_gengo_form |
ir.translation.form.inherit | ir.translation | form | Inherits base.view_translation_form |
view_translation_search |
ir.translation.search.inherit | ir.translation | search | Inherits base.view_translation_search |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/website/gengo_callback |
website_gengo.gengo_callback |
public | http | ALL | csrf off sudo |
Models touched 4
-
authorized_credentialsBooleanargs: 'The private and public keys are valid' -
lang_idMany2one → res.langrequired=True args: 'res.lang', 'Language' -
sync_limitIntegerdefault=20 args: 'No. of terms to sync' -
sync_typeSelectiondefault='both'required=True args: [('send', 'Send New Terms'), ('receive', 'Receive Translation'), ('both', 'Both')], 'Sync Type'
-
act_update(self)Function called by the wizard. -
default_get(self, fields)@api.model -
gengo_authentication(self)@api.modelThis method tries to open a connection with Gengo. For that, it uses the Public and Private keys that are linked to the company (given by Gengo on subscription). It returns a tuple with * as first element: a boolean depicting if the authentication was a success or not * as second element: the connection, if it was a success, or the error message returned by Gengo when the connection failed. This error message can either be displayed in the server logs (if the authentication was called by the cron) or in a dialog box (if requested by the user), thus it's important to return it translated. -
init(self) -
open_company(self) -
pack_jobs_request(self, term_ids, context=None)@api.modelprepare the terms that will be requested to gengo and returns them in a dictionary with following format {'jobs': { 'term1.id': {...} 'term2.id': {...} } }
-
gengo_commentTextargs: 'Comments & Activity Linked to Gengo' -
gengo_translationSelectionhelp='You can select here the service level you want for an automatic translation using Gengo.' args: [('machine', 'Translation By Machine'), ('standard', 'Standard'), ('pro', 'Pro'), ('ultra', 'Ultra')], 'Gengo Translation Service Level' -
order_idCharargs: 'Gengo Order ID'
No public methods.
-
gengo_auto_approveBooleandefault=Truegroups='base.group_user'help='Jobs are Automatically Approved by Gengo.'string='Auto Approve Translation ?' -
gengo_commentTextgroups='base.group_user'help='This comment will be automatically be enclosed in each an every request sent to Gengo'string='Comments' -
gengo_private_keyCharcopy=Falsegroups='base.group_system'string='Gengo Private Key' -
gengo_public_keyTextcopy=Falsegroups='base.group_user'string='Gengo Public Key' -
gengo_sandboxBooleanhelp="Check this box if you're using the sandbox mode of Gengo, mainly used for testing purpose."string='Sandbox Mode'
No public methods.
-
gengo_auto_approveBooleanhelp='Jobs are Automatically Approved by Gengo.'readonly=Falserelated='company_id.gengo_auto_approve'string='Auto Approve Translation ?' -
gengo_commentTexthelp='This comment will be automatically be enclosed in each an every request sent to Gengo'related='company_id.gengo_comment'string='Comments' -
gengo_private_keyCharreadonly=Falserelated='company_id.gengo_private_key'string='Gengo Private Key' -
gengo_public_keyTextreadonly=Falserelated='company_id.gengo_public_key'string='Gengo Public Key' -
gengo_sandboxBooleanhelp="Check this box if you're using the sandbox mode of Gengo, mainly used for testing purpose."readonly=Falserelated='company_id.gengo_sandbox'string='Sandbox Mode'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…