From 39b216bd1b1dacc1ead36ade2ed1b4e00544c4ed Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Mon, 16 Oct 2017 12:39:37 +0200 Subject: [PATCH] [IMP] Make partner_multi_relation more extendable. --- partner_multi_relation/__init__.py | 2 +- partner_multi_relation/__manifest__.py | 2 +- partner_multi_relation/data/demo.xml | 2 - partner_multi_relation/models/__init__.py | 8 +- partner_multi_relation/models/res_partner.py | 2 +- .../models/res_partner_relation.py | 3 +- .../models/res_partner_relation_all.py | 472 ++++++++++++------ .../models/res_partner_relation_type.py | 60 ++- .../res_partner_relation_type_selection.py | 119 +++-- .../tests/test_partner_relation.py | 201 ++++---- .../tests/test_partner_relation_all.py | 149 +++--- .../tests/test_partner_relation_common.py | 52 +- .../views/res_partner_relation_all.xml | 4 +- .../views/res_partner_relation_type.xml | 6 +- 14 files changed, 659 insertions(+), 423 deletions(-) diff --git a/partner_multi_relation/__init__.py b/partner_multi_relation/__init__.py index 91d6405f3..c3e6b003f 100644 --- a/partner_multi_relation/__init__.py +++ b/partner_multi_relation/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2013-2016 Therp BV +# Copyright 2013-2017 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models from . import tests diff --git a/partner_multi_relation/__manifest__.py b/partner_multi_relation/__manifest__.py index a8f4c1739..1ed334d82 100644 --- a/partner_multi_relation/__manifest__.py +++ b/partner_multi_relation/__manifest__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# © 2013-2016 Therp BV +# Copyright 2013-2017 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Partner relations", diff --git a/partner_multi_relation/data/demo.xml b/partner_multi_relation/data/demo.xml index 5289a211d..47318e281 100644 --- a/partner_multi_relation/data/demo.xml +++ b/partner_multi_relation/data/demo.xml @@ -1,6 +1,5 @@ -