From fa32c8c7d4da1f817e9afb41b2fb5c85fae34333 Mon Sep 17 00:00:00 2001 From: ygol Date: Tue, 19 Mar 2019 17:58:49 +0100 Subject: [PATCH 01/22] [MIG] agreement: Migration to 12.0 --- agreement/__init__.py | 3 + agreement/__manifest__.py | 22 ++++ agreement/demo/demo.xml | 69 ++++++++++++ agreement/i18n/agreement.pot | 130 ++++++++++++++++++++++ agreement/models/__init__.py | 3 + agreement/models/agreement.py | 40 +++++++ agreement/security/agreement_security.xml | 17 +++ agreement/security/ir.model.access.csv | 2 + agreement/views/agreement.xml | 83 ++++++++++++++ 9 files changed, 369 insertions(+) create mode 100644 agreement/__init__.py create mode 100644 agreement/__manifest__.py create mode 100644 agreement/demo/demo.xml create mode 100644 agreement/i18n/agreement.pot create mode 100644 agreement/models/__init__.py create mode 100644 agreement/models/agreement.py create mode 100644 agreement/security/agreement_security.xml create mode 100644 agreement/security/ir.model.access.csv create mode 100644 agreement/views/agreement.xml diff --git a/agreement/__init__.py b/agreement/__init__.py new file mode 100644 index 0000000000..cde864bae2 --- /dev/null +++ b/agreement/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py new file mode 100644 index 0000000000..b0f799ca18 --- /dev/null +++ b/agreement/__manifest__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +# © 2017 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Agreement', + 'summary': "Adds an agreement object", + 'version': '12.0.1.0.0', + 'category': 'Contract', + 'author': "Akretion,Odoo Community Association (OCA)", + 'contributors': 'Yves Goldberg (Ygol InternetWork)', + 'website': 'http://www.akretion.com', + 'license': 'AGPL-3', + 'depends': ['base'], + 'data': [ + 'security/ir.model.access.csv', + 'security/agreement_security.xml', + 'views/agreement.xml', + ], + 'demo': ['demo/demo.xml'], + 'installable': True, +} diff --git a/agreement/demo/demo.xml b/agreement/demo/demo.xml new file mode 100644 index 0000000000..c5e8f70a1d --- /dev/null +++ b/agreement/demo/demo.xml @@ -0,0 +1,69 @@ + + + + + + + + C2C-IT0042 + Hardware IT + + sale + 2017-09-10 + 2017-09-10 + 2018-09-10 + + + + C2C-IT0043 + Fiber access office Lausanne + + sale + + + + + + + AGR-VETO001 + Vétérinaire + + sale + 2017-08-01 + 2017-08-01 + 2018-08-01 + + + + AGR-TEL001 + Wazo IPBX deployment and maintenance + + sale + 2017-05-05 + 2017-05-05 + 2018-09-10 + + + + BUY-VOIP012 + SIP Phones supply + + purchase + + + + + + + BUY-VOIP013 + SIP-ISDN gateways + + purchase + 2017-09-02 + + + + diff --git a/agreement/i18n/agreement.pot b/agreement/i18n/agreement.pot new file mode 100644 index 0000000000..3aebba6447 --- /dev/null +++ b/agreement/i18n/agreement.pot @@ -0,0 +1,130 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-01-12 13:27+0000\n" +"PO-Revision-Date: 2019-01-12 13:27+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__active +msgid "Active" +msgstr "" + +#. module: agreement +#: model:ir.model,name:agreement.model_agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Agreement" +msgstr "" + +#. module: agreement +#: model:ir.actions.act_window,name:agreement.agreement_action +#: model:ir.ui.menu,name:agreement.agreement_menu +#: model_terms:ir.ui.view,arch_db:agreement.agreement_tree +msgid "Agreements" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Archived" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Code" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__company_id +msgid "Company" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_uid +msgid "Created by" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_date +msgid "Created on" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Customer" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__end_date +msgid "End Date" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__id +msgid "ID" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Name" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Name or Number" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__partner_id +msgid "Partner" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Search Agreements" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__signature_date +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Signature Date" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__start_date +msgid "Start Date" +msgstr "" + +#. module: agreement +#: sql_constraint:agreement:0 +msgid "This agreement code already exists for this partner!" +msgstr "" diff --git a/agreement/models/__init__.py b/agreement/models/__init__.py new file mode 100644 index 0000000000..1a332f83b3 --- /dev/null +++ b/agreement/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import agreement diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py new file mode 100644 index 0000000000..a2b64a1e5f --- /dev/null +++ b/agreement/models/agreement.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +# © 2017 Akretion (Alexis de Lattre ) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from odoo import models, fields + + +class Agreement(models.Model): + _name = 'agreement' + _description = 'Agreement' + + code = fields.Char(required=True, copy=False) + name = fields.Char(required=True) + partner_id = fields.Many2one( + 'res.partner', string='Partner', ondelete='restrict', required=True, + domain=[('parent_id', '=', False)]) + company_id = fields.Many2one( + 'res.company', string='Company', + default=lambda self: self.env['res.company']._company_default_get( + 'agreement')) + active = fields.Boolean(default=True) + signature_date = fields.Date() + start_date = fields.Date() + end_date = fields.Date() + + def name_get(self): + res = [] + for agr in self: + name = agr.name + if agr.code: + name = u'[%s] %s' % (agr.code, agr.name) + res.append((agr.id, name)) + return res + + _sql_constraints = [( + 'code_partner_company_unique', + 'unique(code, partner_id, company_id)', + 'This agreement code already exists for this partner!' + )] diff --git a/agreement/security/agreement_security.xml b/agreement/security/agreement_security.xml new file mode 100644 index 0000000000..d645ef6d6c --- /dev/null +++ b/agreement/security/agreement_security.xml @@ -0,0 +1,17 @@ + + + + + + + + Agreement multi-company + + ['|', ('company_id', '=', False), ('company_id', 'child_of', [user.company_id.id])] + + + + diff --git a/agreement/security/ir.model.access.csv b/agreement/security/ir.model.access.csv new file mode 100644 index 0000000000..d3d9063c9b --- /dev/null +++ b/agreement/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_agreement_read,Read access on agreement to Employees,model_agreement,base.group_user,1,0,0,0 diff --git a/agreement/views/agreement.xml b/agreement/views/agreement.xml new file mode 100644 index 0000000000..10d3fc894a --- /dev/null +++ b/agreement/views/agreement.xml @@ -0,0 +1,83 @@ + + + + + + + + agreement.form + agreement + +
+
+ +
+ + + + + + + + + + + + + +
+
+
+ + + agreement.tree + agreement + + + + + + + + + + + + + + + agreement.search + agreement + + + + + + + + + + + + + + + + Agreements + agreement + tree,form + + + + +
From 6f54bb755a91a1eba2f6252fe2b35b8fa337ae8b Mon Sep 17 00:00:00 2001 From: ygol Date: Wed, 20 Mar 2019 16:12:19 +0100 Subject: [PATCH 02/22] [FIX] PR review's remarks --- agreement/.#__manifest__.py | 1 + agreement/__init__.py | 2 -- agreement/__manifest__.py | 2 +- agreement/models/__init__.py | 2 -- agreement/models/agreement.py | 5 ----- agreement/readme/CONTRIBUTORS.rst | 2 ++ agreement/readme/DESCRIPTION.rst | 8 ++++++++ agreement/views/agreement.xml | 2 +- 8 files changed, 13 insertions(+), 11 deletions(-) create mode 120000 agreement/.#__manifest__.py create mode 100644 agreement/readme/CONTRIBUTORS.rst create mode 100644 agreement/readme/DESCRIPTION.rst diff --git a/agreement/.#__manifest__.py b/agreement/.#__manifest__.py new file mode 120000 index 0000000000..773ec0d62b --- /dev/null +++ b/agreement/.#__manifest__.py @@ -0,0 +1 @@ +ygol@ygol-S5000XVN.17507:1551704019 \ No newline at end of file diff --git a/agreement/__init__.py b/agreement/__init__.py index cde864bae2..0650744f6b 100644 --- a/agreement/__init__.py +++ b/agreement/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import models diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py index b0f799ca18..cb6344c6fa 100644 --- a/agreement/__manifest__.py +++ b/agreement/__manifest__.py @@ -9,7 +9,7 @@ 'category': 'Contract', 'author': "Akretion,Odoo Community Association (OCA)", 'contributors': 'Yves Goldberg (Ygol InternetWork)', - 'website': 'http://www.akretion.com', + 'website': 'https://github.com/oca/contract', 'license': 'AGPL-3', 'depends': ['base'], 'data': [ diff --git a/agreement/models/__init__.py b/agreement/models/__init__.py index 1a332f83b3..51f4021fd5 100644 --- a/agreement/models/__init__.py +++ b/agreement/models/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import agreement diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index a2b64a1e5f..28976e3024 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -15,10 +14,6 @@ class Agreement(models.Model): partner_id = fields.Many2one( 'res.partner', string='Partner', ondelete='restrict', required=True, domain=[('parent_id', '=', False)]) - company_id = fields.Many2one( - 'res.company', string='Company', - default=lambda self: self.env['res.company']._company_default_get( - 'agreement')) active = fields.Boolean(default=True) signature_date = fields.Date() start_date = fields.Date() diff --git a/agreement/readme/CONTRIBUTORS.rst b/agreement/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000000..bc3bbf22df --- /dev/null +++ b/agreement/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Alexis de Lattre +* Yves Goldberg diff --git a/agreement/readme/DESCRIPTION.rst b/agreement/readme/DESCRIPTION.rst new file mode 100644 index 0000000000..c58e0465cc --- /dev/null +++ b/agreement/readme/DESCRIPTION.rst @@ -0,0 +1,8 @@ +This module adds an *Agreement* object with the following properties: + +* code, +* name, +* link to a partner, +* signature date. +* start date. +* end date. diff --git a/agreement/views/agreement.xml b/agreement/views/agreement.xml index 10d3fc894a..caf303cbde 100644 --- a/agreement/views/agreement.xml +++ b/agreement/views/agreement.xml @@ -62,7 +62,7 @@ - From a50437b4b511be6b735af24bb540b28548169807 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 16:17:59 +0100 Subject: [PATCH 03/22] Delete .#__manifest__.py --- agreement/.#__manifest__.py | 1 - 1 file changed, 1 deletion(-) delete mode 120000 agreement/.#__manifest__.py diff --git a/agreement/.#__manifest__.py b/agreement/.#__manifest__.py deleted file mode 120000 index 773ec0d62b..0000000000 --- a/agreement/.#__manifest__.py +++ /dev/null @@ -1 +0,0 @@ -ygol@ygol-S5000XVN.17507:1551704019 \ No newline at end of file From ee5811e14376c3074f3b6c72ebbb4e6ed7064073 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 16:52:19 +0100 Subject: [PATCH 04/22] [FIX] remove sql constraint for company_id --- agreement/models/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index 28976e3024..b20abedfca 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -30,6 +30,6 @@ def name_get(self): _sql_constraints = [( 'code_partner_company_unique', - 'unique(code, partner_id, company_id)', + 'unique(code, partner_id)', 'This agreement code already exists for this partner!' )] From 9c5107394f7b60093778cc37170a910912ad243a Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 16:54:31 +0100 Subject: [PATCH 05/22] Update agreement.py --- agreement/models/agreement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index b20abedfca..afbc8e9e5c 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -29,7 +29,7 @@ def name_get(self): return res _sql_constraints = [( - 'code_partner_company_unique', + 'code_partner_unique', 'unique(code, partner_id)', 'This agreement code already exists for this partner!' )] From d40ac7bb1124f66aed82a2d1f56b3dbb2f62b7e4 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 17:11:42 +0100 Subject: [PATCH 06/22] [FIX] add back company_id field --- agreement/models/agreement.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index afbc8e9e5c..da1066a72b 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -14,6 +14,10 @@ class Agreement(models.Model): partner_id = fields.Many2one( 'res.partner', string='Partner', ondelete='restrict', required=True, domain=[('parent_id', '=', False)]) + company_id = fields.Many2one( + 'res.company', string='Company', + default=lambda self: self.env['res.company']._company_default_get( +'agreement')) active = fields.Boolean(default=True) signature_date = fields.Date() start_date = fields.Date() @@ -29,7 +33,7 @@ def name_get(self): return res _sql_constraints = [( - 'code_partner_unique', - 'unique(code, partner_id)', + 'code_partner_company_unique', + 'unique(code, partner_id, company_id)', 'This agreement code already exists for this partner!' )] From bed3d4544e8c0562d3ec35e0f818b82a3879d8d5 Mon Sep 17 00:00:00 2001 From: ygol Date: Wed, 20 Mar 2019 17:35:19 +0100 Subject: [PATCH 07/22] [FIX] flake8 + demo data --- agreement/demo/demo.xml | 6 ------ agreement/models/agreement.py | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/agreement/demo/demo.xml b/agreement/demo/demo.xml index c5e8f70a1d..5cc580779e 100644 --- a/agreement/demo/demo.xml +++ b/agreement/demo/demo.xml @@ -11,7 +11,6 @@ C2C-IT0042 Hardware IT - sale 2017-09-10 2017-09-10 2018-09-10 @@ -21,7 +20,6 @@ C2C-IT0043 Fiber access office Lausanne - sale @@ -31,7 +29,6 @@ AGR-VETO001 Vétérinaire - sale 2017-08-01 2017-08-01 2018-08-01 @@ -41,7 +38,6 @@ AGR-TEL001 Wazo IPBX deployment and maintenance - sale 2017-05-05 2017-05-05 2018-09-10 @@ -51,7 +47,6 @@ BUY-VOIP012 SIP Phones supply - purchase @@ -61,7 +56,6 @@ BUY-VOIP013 SIP-ISDN gateways - purchase 2017-09-02 diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index da1066a72b..dc97552674 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -17,7 +17,7 @@ class Agreement(models.Model): company_id = fields.Many2one( 'res.company', string='Company', default=lambda self: self.env['res.company']._company_default_get( -'agreement')) + 'agreement')) active = fields.Boolean(default=True) signature_date = fields.Date() start_date = fields.Date() From 4bde4144689ca1f53f97dfc90e2b84d7bafd674b Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Wed, 20 Mar 2019 18:09:22 +0100 Subject: [PATCH 08/22] [ADD] notebook in agreement form requested by @bealdav --- agreement/views/agreement.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agreement/views/agreement.xml b/agreement/views/agreement.xml index caf303cbde..15f284ce06 100644 --- a/agreement/views/agreement.xml +++ b/agreement/views/agreement.xml @@ -32,6 +32,9 @@ + + + From 37c85bc19fd5f8e9c518bcdfe36feeddfedceec7 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Thu, 21 Mar 2019 11:08:12 +0100 Subject: [PATCH 09/22] [UPD] manifest with @max3909 remarks --- agreement/__manifest__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py index cb6344c6fa..ac7f7f1b30 100644 --- a/agreement/__manifest__.py +++ b/agreement/__manifest__.py @@ -7,8 +7,7 @@ 'summary': "Adds an agreement object", 'version': '12.0.1.0.0', 'category': 'Contract', - 'author': "Akretion,Odoo Community Association (OCA)", - 'contributors': 'Yves Goldberg (Ygol InternetWork)', + 'author': "Akretion, Yves Goldberg (Ygol Internetwork), Odoo Community Association (OCA)", 'website': 'https://github.com/oca/contract', 'license': 'AGPL-3', 'depends': ['base'], @@ -18,5 +17,10 @@ 'views/agreement.xml', ], 'demo': ['demo/demo.xml'], + 'development_status': 'Beta', + 'maintainers': [ + 'ygol', + 'max3903', + ], 'installable': True, } From da883da0a9df79ddcf4515f5cef0ba9aa2fa8eb1 Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Thu, 21 Mar 2019 11:40:56 +0100 Subject: [PATCH 10/22] [FIX] flake8 --- agreement/__manifest__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py index ac7f7f1b30..a0acbb6772 100644 --- a/agreement/__manifest__.py +++ b/agreement/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2017 Akretion (Alexis de Lattre ) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). @@ -7,7 +6,10 @@ 'summary': "Adds an agreement object", 'version': '12.0.1.0.0', 'category': 'Contract', - 'author': "Akretion, Yves Goldberg (Ygol Internetwork), Odoo Community Association (OCA)", + 'author': + 'Akretion, ' + 'Yves Goldberg (Ygol Internetwork),' + 'Odoo Community Association (OCA)', 'website': 'https://github.com/oca/contract', 'license': 'AGPL-3', 'depends': ['base'], From cf3a693bda811b80a177b5828b402667a063ec1c Mon Sep 17 00:00:00 2001 From: Yves Goldberg Date: Thu, 21 Mar 2019 11:59:36 +0100 Subject: [PATCH 11/22] Update __manifest__.py --- agreement/__manifest__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/agreement/__manifest__.py b/agreement/__manifest__.py index a0acbb6772..96638f92bc 100644 --- a/agreement/__manifest__.py +++ b/agreement/__manifest__.py @@ -6,10 +6,9 @@ 'summary': "Adds an agreement object", 'version': '12.0.1.0.0', 'category': 'Contract', - 'author': - 'Akretion, ' - 'Yves Goldberg (Ygol Internetwork),' - 'Odoo Community Association (OCA)', + 'author': 'Akretion, ' + 'Yves Goldberg (Ygol Internetwork), ' + 'Odoo Community Association (OCA)', 'website': 'https://github.com/oca/contract', 'license': 'AGPL-3', 'depends': ['base'], @@ -22,7 +21,7 @@ 'development_status': 'Beta', 'maintainers': [ 'ygol', - 'max3903', + 'alexis-via', ], 'installable': True, } From b20d6342cd458e2abb7006d55091da2af07e6765 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Thu, 28 Mar 2019 22:28:19 +0000 Subject: [PATCH 12/22] [UPD] README.rst --- agreement/README.rst | 93 +++++ agreement/i18n/agreement.pot | 44 ++- agreement/i18n/fr.po | 132 ++++++++ agreement/static/description/icon.png | Bin 0 -> 9455 bytes agreement/static/description/index.html | 431 ++++++++++++++++++++++++ 5 files changed, 688 insertions(+), 12 deletions(-) create mode 100644 agreement/README.rst create mode 100644 agreement/i18n/fr.po create mode 100644 agreement/static/description/icon.png create mode 100644 agreement/static/description/index.html diff --git a/agreement/README.rst b/agreement/README.rst new file mode 100644 index 0000000000..4ef0a10d0a --- /dev/null +++ b/agreement/README.rst @@ -0,0 +1,93 @@ +========= +Agreement +========= + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcontract-lightgray.png?logo=github + :target: https://github.com/OCA/contract/tree/12.0/agreement + :alt: OCA/contract +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/110/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds an *Agreement* object with the following properties: + +* code, +* name, +* link to a partner, +* signature date. +* start date. +* end date. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion +* Yves Goldberg (Ygol Internetwork) + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre +* Yves Goldberg + +Maintainers +~~~~~~~~~~~ + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +.. |maintainer-ygol| image:: https://github.com/ygol.png?size=40px + :target: https://github.com/ygol + :alt: ygol +.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px + :target: https://github.com/alexis-via + :alt: alexis-via + +Current `maintainers `__: + +|maintainer-ygol| |maintainer-alexis-via| + +This module is part of the `OCA/contract `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/agreement/i18n/agreement.pot b/agreement/i18n/agreement.pot index 3aebba6447..382458e5ff 100644 --- a/agreement/i18n/agreement.pot +++ b/agreement/i18n/agreement.pot @@ -6,8 +6,6 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-01-12 13:27+0000\n" -"PO-Revision-Date: 2019-01-12 13:27+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -48,6 +46,11 @@ msgstr "" msgid "Company" msgstr "" +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Configuration" +msgstr "" + #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__create_uid msgid "Created by" @@ -58,11 +61,6 @@ msgstr "" msgid "Created on" msgstr "" -#. module: agreement -#: model_terms:ir.ui.view,arch_db:agreement.agreement_search -msgid "Customer" -msgstr "" - #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__display_name msgid "Display Name" @@ -78,6 +76,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__active +msgid "If unchecked, it will allow you to hide the agreement without removing it." +msgstr "" + #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement____last_update msgid "Last Modified on" @@ -93,11 +96,6 @@ msgstr "" msgid "Last Updated on" msgstr "" -#. module: agreement -#: model:ir.model.fields,field_description:agreement.field_agreement__name -msgid "Name" -msgstr "" - #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Name or Number" @@ -105,6 +103,7 @@ msgstr "" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__partner_id +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Partner" msgstr "" @@ -124,7 +123,28 @@ msgstr "" msgid "Start Date" msgstr "" +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__partner_id +msgid "The customer or vendor this agreement is related to." +msgstr "" + #. module: agreement #: sql_constraint:agreement:0 msgid "This agreement code already exists for this partner!" msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Title" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__end_date +msgid "When the agreement ends." +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__start_date +msgid "When the agreement starts." +msgstr "" + diff --git a/agreement/i18n/fr.po b/agreement/i18n/fr.po new file mode 100644 index 0000000000..c5ab124d58 --- /dev/null +++ b/agreement/i18n/fr.po @@ -0,0 +1,132 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-03-30 13:14+0000\n" +"Last-Translator: Yves Goldberg \n" +"Language-Team: none\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.5.1\n" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__active +msgid "Active" +msgstr "Actif" + +#. module: agreement +#: model:ir.model,name:agreement.model_agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Agreement" +msgstr "Accord" + +#. module: agreement +#: model:ir.actions.act_window,name:agreement.agreement_action +#: model:ir.ui.menu,name:agreement.agreement_menu +#: model_terms:ir.ui.view,arch_db:agreement.agreement_tree +msgid "Agreements" +msgstr "Accords" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Archived" +msgstr "Archivé" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Code" +msgstr "Code" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__company_id +msgid "Company" +msgstr "Entreprise" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Configuration" +msgstr "Configuration" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_date +msgid "Created on" +msgstr "Créé le" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__display_name +msgid "Display Name" +msgstr "Nom d'affichage" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__end_date +msgid "End Date" +msgstr "Date de fin" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__id +msgid "ID" +msgstr "ID" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement____last_update +msgid "Last Modified on" +msgstr "Dernière modification le" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Name" +msgstr "Nom" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Name or Number" +msgstr "Nom ou Numéro" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__partner_id +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Partner" +msgstr "Partenaire" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Search Agreements" +msgstr "Recherche Accords" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__signature_date +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Signature Date" +msgstr "Date Signature" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__start_date +msgid "Start Date" +msgstr "Date Début" + +#. module: agreement +#: sql_constraint:agreement:0 +msgid "This agreement code already exists for this partner!" +msgstr "Code accord existant pour ce partenaire !" diff --git a/agreement/static/description/icon.png b/agreement/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi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{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/agreement/static/description/index.html b/agreement/static/description/index.html new file mode 100644 index 0000000000..813b88e595 --- /dev/null +++ b/agreement/static/description/index.html @@ -0,0 +1,431 @@ + + + + + + +Agreement + + + +
+

Agreement

+ + +

Beta License: AGPL-3 OCA/contract Translate me on Weblate Try me on Runbot

+

This module adds an Agreement object with the following properties:

+
    +
  • code,
  • +
  • name,
  • +
  • link to a partner,
  • +
  • signature date.
  • +
  • start date.
  • +
  • end date.
  • +
+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
  • Yves Goldberg (Ygol Internetwork)
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

Current maintainers:

+

ygol alexis-via

+

This module is part of the OCA/contract project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + From 11c607451e54b34a710663ebc4a90481e3d2bcf0 Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 5 Apr 2019 16:37:34 +0200 Subject: [PATCH 13/22] FIX security issue --- agreement/security/ir.model.access.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/agreement/security/ir.model.access.csv b/agreement/security/ir.model.access.csv index d3d9063c9b..54dd4f506e 100644 --- a/agreement/security/ir.model.access.csv +++ b/agreement/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_agreement_read,Read access on agreement to Employees,model_agreement,base.group_user,1,0,0,0 +access_agreement_full,Full access on agreement grp,model_agreement,base.group_no_one,1,1,1,1 \ No newline at end of file From ff03bdb7bc8ae0ad9bfdc0771bf6828f88fdbaeb Mon Sep 17 00:00:00 2001 From: David Beal Date: Fri, 5 Apr 2019 17:36:18 +0200 Subject: [PATCH 14/22] FIX details --- agreement/models/agreement.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/agreement/models/agreement.py b/agreement/models/agreement.py index dc97552674..b09b4dbc5e 100644 --- a/agreement/models/agreement.py +++ b/agreement/models/agreement.py @@ -16,8 +16,7 @@ class Agreement(models.Model): domain=[('parent_id', '=', False)]) company_id = fields.Many2one( 'res.company', string='Company', - default=lambda self: self.env['res.company']._company_default_get( - 'agreement')) + default=lambda self: self.env['res.company']._company_default_get()) active = fields.Boolean(default=True) signature_date = fields.Date() start_date = fields.Date() @@ -28,7 +27,7 @@ def name_get(self): for agr in self: name = agr.name if agr.code: - name = u'[%s] %s' % (agr.code, agr.name) + name = '[%s] %s' % (agr.code, agr.name) res.append((agr.id, name)) return res From 39898d7e74d049a025e5537c4e098922387790f0 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Tue, 9 Apr 2019 01:49:16 +0000 Subject: [PATCH 15/22] [UPD] Update agreement.pot --- agreement/i18n/agreement.pot | 15 ++-- agreement/i18n/pt_PT.po | 157 +++++++++++++++++++++++++++++++++++ 2 files changed, 167 insertions(+), 5 deletions(-) create mode 100644 agreement/i18n/pt_PT.po diff --git a/agreement/i18n/agreement.pot b/agreement/i18n/agreement.pot index 382458e5ff..75b97415e8 100644 --- a/agreement/i18n/agreement.pot +++ b/agreement/i18n/agreement.pot @@ -36,11 +36,6 @@ msgstr "" msgid "Archived" msgstr "" -#. module: agreement -#: model:ir.model.fields,field_description:agreement.field_agreement__code -msgid "Code" -msgstr "" - #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__company_id msgid "Company" @@ -76,6 +71,11 @@ msgstr "" msgid "ID" msgstr "" +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__code +msgid "ID used for internal contract tracking." +msgstr "" + #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__active msgid "If unchecked, it will allow you to hide the agreement without removing it." @@ -107,6 +107,11 @@ msgstr "" msgid "Partner" msgstr "" +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Reference" +msgstr "" + #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Search Agreements" diff --git a/agreement/i18n/pt_PT.po b/agreement/i18n/pt_PT.po new file mode 100644 index 0000000000..c4f12fbf9e --- /dev/null +++ b/agreement/i18n/pt_PT.po @@ -0,0 +1,157 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-05-04 16:02+0000\n" +"Last-Translator: JC \n" +"Language-Team: none\n" +"Language: pt_PT\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.5.1\n" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__active +msgid "Active" +msgstr "Activo" + +#. module: agreement +#: model:ir.model,name:agreement.model_agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Agreement" +msgstr "Acordo" + +#. module: agreement +#: model:ir.actions.act_window,name:agreement.agreement_action +#: model:ir.ui.menu,name:agreement.agreement_menu +#: model_terms:ir.ui.view,arch_db:agreement.agreement_tree +msgid "Agreements" +msgstr "Acordos" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Archived" +msgstr "Arquivado" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__company_id +msgid "Company" +msgstr "Empresa" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Configuration" +msgstr "Configuração" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_uid +msgid "Created by" +msgstr "Criado por" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_date +msgid "Created on" +msgstr "Criado em" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__end_date +msgid "End Date" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__id +msgid "ID" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__code +msgid "ID used for internal contract tracking." +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__active +msgid "If unchecked, it will allow you to hide the agreement without removing it." +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_date +msgid "Last Updated on" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Name or Number" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__partner_id +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Partner" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Reference" +msgstr "" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Search Agreements" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__signature_date +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Signature Date" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__start_date +msgid "Start Date" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__partner_id +msgid "The customer or vendor this agreement is related to." +msgstr "" + +#. module: agreement +#: sql_constraint:agreement:0 +msgid "This agreement code already exists for this partner!" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Title" +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__end_date +msgid "When the agreement ends." +msgstr "" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__start_date +msgid "When the agreement starts." +msgstr "" From d04773dcfe83a6d21431d82a1af86923dad23f7e Mon Sep 17 00:00:00 2001 From: Maxime Chambreuil Date: Tue, 7 May 2019 12:47:12 -0500 Subject: [PATCH 16/22] [FIX] Missing newline --- agreement/security/ir.model.access.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agreement/security/ir.model.access.csv b/agreement/security/ir.model.access.csv index 54dd4f506e..3184640e54 100644 --- a/agreement/security/ir.model.access.csv +++ b/agreement/security/ir.model.access.csv @@ -1,3 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_agreement_read,Read access on agreement to Employees,model_agreement,base.group_user,1,0,0,0 -access_agreement_full,Full access on agreement grp,model_agreement,base.group_no_one,1,1,1,1 \ No newline at end of file +access_agreement_full,Full access on agreement grp,model_agreement,base.group_no_one,1,1,1,1 From 52975255d8cde22a3e61e59bfa181d685ebe6a40 Mon Sep 17 00:00:00 2001 From: "rdc02271@yahoo.com" Date: Sat, 4 May 2019 17:53:10 +0000 Subject: [PATCH 17/22] Translated using Weblate (Portuguese (Portugal)) Currently translated at 100.0% (27 of 27 strings) Translation: contract-12.0/contract-12.0-agreement Translate-URL: https://translation.odoo-community.org/projects/contract-12-0/contract-12-0-agreement/pt_PT/ --- agreement/i18n/fr.po | 60 ++++++--- agreement/i18n/pt_PT.po | 44 +++---- agreement/i18n/zh_CN.po | 157 ++++++++++++++++++++++++ agreement/static/description/index.html | 2 +- 4 files changed, 226 insertions(+), 37 deletions(-) create mode 100644 agreement/i18n/zh_CN.po diff --git a/agreement/i18n/fr.po b/agreement/i18n/fr.po index c5ab124d58..22c98cf2ad 100644 --- a/agreement/i18n/fr.po +++ b/agreement/i18n/fr.po @@ -1,20 +1,20 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * agreement +# * agreement # msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-03-30 13:14+0000\n" -"Last-Translator: Yves Goldberg \n" +"PO-Revision-Date: 2019-07-28 11:47+0000\n" +"Last-Translator: jcleonard2018 \n" "Language-Team: none\n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=2; plural=n > 1;\n" -"X-Generator: Weblate 3.5.1\n" +"X-Generator: Weblate 3.7.1\n" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__active @@ -39,11 +39,6 @@ msgstr "Accords" msgid "Archived" msgstr "Archivé" -#. module: agreement -#: model:ir.model.fields,field_description:agreement.field_agreement__code -msgid "Code" -msgstr "Code" - #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__company_id msgid "Company" @@ -79,6 +74,17 @@ msgstr "Date de fin" msgid "ID" msgstr "ID" +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__code +msgid "ID used for internal contract tracking." +msgstr "Numéro utilisé pour le suivi interne du contrat." + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__active +msgid "" +"If unchecked, it will allow you to hide the agreement without removing it." +msgstr "Si coché, Cela vous permettra de cacher le contrat sans l'enlever." + #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement____last_update msgid "Last Modified on" @@ -94,11 +100,6 @@ msgstr "Dernière mise à jour par" msgid "Last Updated on" msgstr "Dernière mise à jour le" -#. module: agreement -#: model:ir.model.fields,field_description:agreement.field_agreement__name -msgid "Name" -msgstr "Nom" - #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Name or Number" @@ -110,6 +111,11 @@ msgstr "Nom ou Numéro" msgid "Partner" msgstr "Partenaire" +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Reference" +msgstr "Référence" + #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Search Agreements" @@ -126,7 +132,33 @@ msgstr "Date Signature" msgid "Start Date" msgstr "Date Début" +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__partner_id +msgid "The customer or vendor this agreement is related to." +msgstr "Client ou fournisseur avec lequel le contrat est lié." + #. module: agreement #: sql_constraint:agreement:0 msgid "This agreement code already exists for this partner!" msgstr "Code accord existant pour ce partenaire !" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Title" +msgstr "Titre" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__end_date +msgid "When the agreement ends." +msgstr "Quand le contrat finit." + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__start_date +msgid "When the agreement starts." +msgstr "Quand le contrat débute." + +#~ msgid "Code" +#~ msgstr "Code" + +#~ msgid "Name" +#~ msgstr "Nom" diff --git a/agreement/i18n/pt_PT.po b/agreement/i18n/pt_PT.po index c4f12fbf9e..b7fa6b063a 100644 --- a/agreement/i18n/pt_PT.po +++ b/agreement/i18n/pt_PT.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2019-05-04 16:02+0000\n" +"PO-Revision-Date: 2019-05-04 21:02+0000\n" "Last-Translator: JC \n" "Language-Team: none\n" "Language: pt_PT\n" @@ -25,14 +25,14 @@ msgstr "Activo" #: model:ir.model,name:agreement.model_agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_form msgid "Agreement" -msgstr "Acordo" +msgstr "Contrato" #. module: agreement #: model:ir.actions.act_window,name:agreement.agreement_action #: model:ir.ui.menu,name:agreement.agreement_menu #: model_terms:ir.ui.view,arch_db:agreement.agreement_tree msgid "Agreements" -msgstr "Acordos" +msgstr "Contratos" #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search @@ -62,96 +62,96 @@ msgstr "Criado em" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__display_name msgid "Display Name" -msgstr "" +msgstr "Nome" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__end_date msgid "End Date" -msgstr "" +msgstr "Fim de Contrato" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__id msgid "ID" -msgstr "" +msgstr "Código" #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__code msgid "ID used for internal contract tracking." -msgstr "" +msgstr "Código usado internamente para acompanhamento do contrato." #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__active msgid "If unchecked, it will allow you to hide the agreement without removing it." -msgstr "" +msgstr "Desmarcar se quiser esconder o contrato mas sem o apagar." #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement____last_update msgid "Last Modified on" -msgstr "" +msgstr "Modificado em" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Actualizado por" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__write_date msgid "Last Updated on" -msgstr "" +msgstr "Actualizado em" #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Name or Number" -msgstr "" +msgstr "Nome ou número" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__partner_id #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Partner" -msgstr "" +msgstr "Parceiro" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__code msgid "Reference" -msgstr "" +msgstr "Referência" #. module: agreement #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Search Agreements" -msgstr "" +msgstr "Pesquisar Contratos" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__signature_date #: model_terms:ir.ui.view,arch_db:agreement.agreement_search msgid "Signature Date" -msgstr "" +msgstr "Data da assinatura" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__start_date msgid "Start Date" -msgstr "" +msgstr "Data Inicial" #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__partner_id msgid "The customer or vendor this agreement is related to." -msgstr "" +msgstr "O cliente ou fornecedor com o qual este contrato está relacionado." #. module: agreement #: sql_constraint:agreement:0 msgid "This agreement code already exists for this partner!" -msgstr "" +msgstr "Este código de contrato já existe para este parceiro!" #. module: agreement #: model:ir.model.fields,field_description:agreement.field_agreement__name msgid "Title" -msgstr "" +msgstr "Título" #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__end_date msgid "When the agreement ends." -msgstr "" +msgstr "A data em que termina o contrato." #. module: agreement #: model:ir.model.fields,help:agreement.field_agreement__start_date msgid "When the agreement starts." -msgstr "" +msgstr "A data em que se inicia o contrato." diff --git a/agreement/i18n/zh_CN.po b/agreement/i18n/zh_CN.po new file mode 100644 index 0000000000..1e76dc1d38 --- /dev/null +++ b/agreement/i18n/zh_CN.po @@ -0,0 +1,157 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-09-04 18:23+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__active +msgid "Active" +msgstr "有效" + +#. module: agreement +#: model:ir.model,name:agreement.model_agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Agreement" +msgstr "协议" + +#. module: agreement +#: model:ir.actions.act_window,name:agreement.agreement_action +#: model:ir.ui.menu,name:agreement.agreement_menu +#: model_terms:ir.ui.view,arch_db:agreement.agreement_tree +msgid "Agreements" +msgstr "协议" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Archived" +msgstr "已归档" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__company_id +msgid "Company" +msgstr "公司" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_form +msgid "Configuration" +msgstr "配置" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_uid +msgid "Created by" +msgstr "创建者" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__create_date +msgid "Created on" +msgstr "创建时间" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__display_name +msgid "Display Name" +msgstr "显示名称" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__end_date +msgid "End Date" +msgstr "结束日期" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__id +msgid "ID" +msgstr "ID" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__code +msgid "ID used for internal contract tracking." +msgstr "用于内部合同跟踪的ID。" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__active +msgid "If unchecked, it will allow you to hide the agreement without removing it." +msgstr "如果不选中,它将允许您隐藏协议而不删除它。" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement____last_update +msgid "Last Modified on" +msgstr "最后修改时间" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_uid +msgid "Last Updated by" +msgstr "最后更新者" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__write_date +msgid "Last Updated on" +msgstr "最后更新时间" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Name or Number" +msgstr "姓名或号码" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__partner_id +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Partner" +msgstr "业务伙伴" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__code +msgid "Reference" +msgstr "参考" + +#. module: agreement +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Search Agreements" +msgstr "搜索协议" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__signature_date +#: model_terms:ir.ui.view,arch_db:agreement.agreement_search +msgid "Signature Date" +msgstr "签名日期" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__start_date +msgid "Start Date" +msgstr "开始日期" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__partner_id +msgid "The customer or vendor this agreement is related to." +msgstr "与本协议相关的客户或供应商。" + +#. module: agreement +#: sql_constraint:agreement:0 +msgid "This agreement code already exists for this partner!" +msgstr "此合作伙伴的协议代码已存在!" + +#. module: agreement +#: model:ir.model.fields,field_description:agreement.field_agreement__name +msgid "Title" +msgstr "标题" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__end_date +msgid "When the agreement ends." +msgstr "协议结束时。" + +#. module: agreement +#: model:ir.model.fields,help:agreement.field_agreement__start_date +msgid "When the agreement starts." +msgstr "协议开始时。" diff --git a/agreement/static/description/index.html b/agreement/static/description/index.html index 813b88e595..fb9153791f 100644 --- a/agreement/static/description/index.html +++ b/agreement/static/description/index.html @@ -3,7 +3,7 @@ - + Agreement