From 053bed918287e5bd9cca64a9298ab5b897175811 Mon Sep 17 00:00:00 2001 From: aschenkels-ictstudio Date: Fri, 2 Dec 2016 14:03:09 +0100 Subject: [PATCH] [ADD] Company Registry Module --- partner_company_registry/__init__.py | 20 ++++++++++ partner_company_registry/__openerp__.py | 36 ++++++++++++++++++ partner_company_registry/models/__init__.py | 20 ++++++++++ .../models/res_partner.py | 30 +++++++++++++++ .../static/description/icon.png | Bin 0 -> 2780 bytes .../views/res_partner.xml | 18 +++++++++ 6 files changed, 124 insertions(+) create mode 100755 partner_company_registry/__init__.py create mode 100755 partner_company_registry/__openerp__.py create mode 100755 partner_company_registry/models/__init__.py create mode 100755 partner_company_registry/models/res_partner.py create mode 100644 partner_company_registry/static/description/icon.png create mode 100644 partner_company_registry/views/res_partner.xml diff --git a/partner_company_registry/__init__.py b/partner_company_registry/__init__.py new file mode 100755 index 000000000..4c64f8784 --- /dev/null +++ b/partner_company_registry/__init__.py @@ -0,0 +1,20 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 ICTSTUDIO (). +# +# 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 . +# +############################################################################## +from . import models diff --git a/partner_company_registry/__openerp__.py b/partner_company_registry/__openerp__.py new file mode 100755 index 000000000..fdb353619 --- /dev/null +++ b/partner_company_registry/__openerp__.py @@ -0,0 +1,36 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 ICTSTUDIO (). +# +# 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 . +# +############################################################################## +{ + 'name': 'Partner Company Registry', + 'version': '8.0.1.0.0', + 'category': 'CRM', + 'description': """Partner Company Registry + Adds a Partner Registry field to the partner object. + """, + 'author': 'ICTSTUDIO, André Schenkels', + 'license': 'AGPL-3', + 'website': 'http://www.ictstudio.eu', + 'depends': [ + 'base', + ], + 'data': [ + 'view/res_partner.xml', + ], +} diff --git a/partner_company_registry/models/__init__.py b/partner_company_registry/models/__init__.py new file mode 100755 index 000000000..8c270dae7 --- /dev/null +++ b/partner_company_registry/models/__init__.py @@ -0,0 +1,20 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 ICTSTUDIO (). +# +# 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 . +# +############################################################################## +from . import res_partner \ No newline at end of file diff --git a/partner_company_registry/models/res_partner.py b/partner_company_registry/models/res_partner.py new file mode 100755 index 000000000..166bf9067 --- /dev/null +++ b/partner_company_registry/models/res_partner.py @@ -0,0 +1,30 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Copyright (C) 2015 ICTSTUDIO (). +# +# 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 . +# +############################################################################## + +from openerp import models, fields, api, _ +import logging + +_logger = logging.getLogger(__name__) + +class ResPartner(models.Model): + _inherit = 'res.partner' + + company_registry = fields.Char(string="Company Registry") + diff --git a/partner_company_registry/static/description/icon.png b/partner_company_registry/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..06a05ebd480fdd359c2600a27660aced7a5a48a0 GIT binary patch literal 2780 zcma)8_gfN-7Dhxcw`q!d?}`e^kpow1&aAX7Z>S}1Gc_lPBhy4$_&E?q!;xw3G?Srz zWrZVirKmX)Ck`xy9M|vu1K)klc%SDz=lt?M=Z81L)!9~9Kvn<%00`ULS-Tw|_MhSh zAM_40?=J@c_HnSa2JHV6#cgFz512!@?5;!{TnztHJeJzTm;(|LY42nM`2hh59zJ#T zh5o@zAi&<*;$qC`3TgEr!Q;qB3KKZ?B16;b0ZKrQG2}ygCh2bJjkbw)$nW#SW!NFq z0~7x43FeB<3;J$e%A;9N`Uie9$Zt45CjI$n0Q!#3*QiS2ORrD%1s-{c{7U`HixHo& z&M1QSwzrG0>GknuVW=XK(jNx9jaeAM!m#*27GnRJsn;y8U{1m#h-9sn^Qr(L@c5<^ z9G>2_8$XuSkB6Ns|GP4zscHcS@l6m(R7&sky1Dwz9@ih zY%fIL3SY!*<+mwOCMlWPTyulwFLz>rGC-+$t_-#gJb;TXtDX+(-4}rEuB=k&j`I;o zNA%V%_ZlZeyYR>jzXk#Pt4auUO8lCE4k?Wh{FmPY`($58>cb_)3wKwR47ZnLZ>{8q zuY+p9gmZVBLV9o=DZJWJOk94zN~!h`Wsb0fb8Adf`!#&6ro0i)rxt)>#$(Tg z0AGIfoSk5Xf{PHTZ}dckQO${Z>4X?;&*G1Q(WRAN=f>A#cWOgNFn0BwtR0R7TKN+ z(jL})?+nc>b*}MG1NaH6-i*6z%K9`^C4u9I{w(2<6vUwX3SyR&MmP*XDjk6}oc|%O zFJ59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