2012-07-13 12:19:35 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
##############################################################################
|
|
|
|
#
|
2012-07-16 13:06:51 +00:00
|
|
|
# OpenERP, Open Source Business Applications
|
|
|
|
# Copyright (C) 2004-2012 OpenERP S.A. (<http://openerp.com>).
|
2012-07-13 12:19:35 +00:00
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
|
|
|
##############################################################################
|
|
|
|
|
2012-12-06 14:56:32 +00:00
|
|
|
from openerp.osv import fields, osv
|
2012-08-06 10:25:17 +00:00
|
|
|
|
2012-07-13 12:19:35 +00:00
|
|
|
|
2012-07-13 13:08:03 +00:00
|
|
|
class res_company(osv.Model):
|
2012-07-13 12:19:35 +00:00
|
|
|
_name = "res.company"
|
|
|
|
_inherit = "res.company"
|
|
|
|
_columns = {
|
2014-07-06 14:44:26 +00:00
|
|
|
"gengo_private_key": fields.text("Gengo Private Key", copy=False),
|
|
|
|
"gengo_public_key": fields.text("Gengo Public Key", copy=False),
|
2012-08-29 08:26:47 +00:00
|
|
|
"gengo_comment": fields.text("Comments", help="This comment will be automatically be enclosed in each an every request sent to Gengo"),
|
2012-08-27 07:27:43 +00:00
|
|
|
"gengo_auto_approve": fields.boolean("Auto Approve Translation ?", help="Jobs are Automatically Approved by Gengo."),
|
2014-04-01 07:39:53 +00:00
|
|
|
"gengo_sandbox": fields.boolean("Sandbox Mode", help="Check this box if you're using the sandbox mode of Gengo, mainly used for testing purpose."),
|
2012-07-16 12:41:35 +00:00
|
|
|
}
|
2012-08-06 10:25:17 +00:00
|
|
|
|
|
|
|
_defaults = {
|
2012-08-27 13:37:59 +00:00
|
|
|
"gengo_auto_approve": True,
|
2012-07-13 12:19:35 +00:00
|
|
|
}
|