From f02801b1120e5907977039f324184528bdaedd27 Mon Sep 17 00:00:00 2001 From: ygol Date: Wed, 20 Mar 2019 16:12:19 +0100 Subject: [PATCH] [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 00000000..773ec0d6 --- /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 cde864ba..0650744f 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 b0f799ca..cb6344c6 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 1a332f83..51f4021f 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 a2b64a1e..28976e30 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 00000000..bc3bbf22 --- /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 00000000..c58e0465 --- /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 10d3fc89..caf303cb 100644 --- a/agreement/views/agreement.xml +++ b/agreement/views/agreement.xml @@ -62,7 +62,7 @@ -