2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import api, models, fields
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
|
|
_inherit = 'res.config.settings'
|
|
|
|
|
|
|
|
gengo_private_key = fields.Text(string="Gengo Private Key", related="company_id.gengo_private_key")
|
|
|
|
gengo_public_key = fields.Text(string="Gengo Public Key", related="company_id.gengo_public_key")
|
|
|
|
gengo_comment = fields.Text(string="Comments", related="company_id.gengo_comment",
|
|
|
|
help="This comment will be automatically be enclosed in each an every request sent to Gengo")
|
|
|
|
gengo_auto_approve = fields.Boolean(string="Auto Approve Translation ?", related="company_id.gengo_auto_approve",
|
|
|
|
help="Jobs are Automatically Approved by Gengo.")
|
|
|
|
gengo_sandbox = fields.Boolean(string="Sandbox Mode",
|
|
|
|
help="Check this box if you're using the sandbox mode of Gengo, mainly used for testing purpose.")
|