diff --git a/partner_business_code/README.rst b/partner_business_code/README.rst new file mode 100644 index 000000000..6b9fcaf3e --- /dev/null +++ b/partner_business_code/README.rst @@ -0,0 +1,69 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +===================== +Partner business code +===================== + +Adds a business code (business id) for partners + +Does not add any validation or format checks + +Installation +============ + +\- + +Configuration +============= + +\- + + +Usage +===== + +\- + +Known issues / Roadmap +====================== + +\- + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Jarmo Kortetjärvi + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/partner_business_code/__init__.py b/partner_business_code/__init__.py new file mode 100644 index 000000000..67de644df --- /dev/null +++ b/partner_business_code/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Oy Tawasta OS Technologies Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_business_code/__openerp__.py b/partner_business_code/__openerp__.py new file mode 100644 index 000000000..1a2fa4ea7 --- /dev/null +++ b/partner_business_code/__openerp__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Author: Oy Tawasta OS Technologies Ltd. +# Copyright 2017 Oy Tawasta OS Technologies Ltd. (http://www.tawasta.fi) +# +# 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 http://www.gnu.org/licenses/agpl.html +# +{ + "name": "Partner business code", + "summary": "Adds a business code (business id) for partners", + "version": "8.0.1.0.0", + "category": "CRM", + "website": "https://odoo-community.org/", + "author": "Oy Tawasta Technologies Ltd., Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "external_dependencies": { + "python": [], + "bin": [], + }, + "depends": [ + "base", + ], + "data": [ + 'views/res_partner.xml', + ], + "demo": [ + ], + "qweb": [ + ] +} diff --git a/partner_business_code/models/__init__.py b/partner_business_code/models/__init__.py new file mode 100644 index 000000000..3b9a196cb --- /dev/null +++ b/partner_business_code/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Oy Tawasta OS Technologies Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_partner diff --git a/partner_business_code/models/res_partner.py b/partner_business_code/models/res_partner.py new file mode 100644 index 000000000..d1d6a0363 --- /dev/null +++ b/partner_business_code/models/res_partner.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Oy Tawasta OS Technologies Ltd. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from openerp import models, fields + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + business_id = fields.Char('Business id') diff --git a/partner_business_code/static/description/icon.png b/partner_business_code/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_business_code/static/description/icon.png differ diff --git a/partner_business_code/views/res_partner.xml b/partner_business_code/views/res_partner.xml new file mode 100644 index 000000000..4ee5d7332 --- /dev/null +++ b/partner_business_code/views/res_partner.xml @@ -0,0 +1,24 @@ + + + + + + + + view.partner.form.business.id + res.partner + + + + +

+ +

+
+ +
+
+ +
+