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 000000000..06a05ebd4 Binary files /dev/null and b/partner_company_registry/static/description/icon.png differ diff --git a/partner_company_registry/views/res_partner.xml b/partner_company_registry/views/res_partner.xml new file mode 100644 index 000000000..d16209ae5 --- /dev/null +++ b/partner_company_registry/views/res_partner.xml @@ -0,0 +1,18 @@ + + + + + + partner.view.form.partner_company_registry + res.partner + + + + + + + + + + +