diff --git a/partner_contact_height/README.rst b/partner_contact_height/README.rst new file mode 100644 index 000000000..71c0548cb --- /dev/null +++ b/partner_contact_height/README.rst @@ -0,0 +1,63 @@ +.. 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 Contact Height +====================== + +This module adds the height to a contact. + +Usage +===== + +To use this module, you need to: + +#. Go to Contacts +#. Create or select a contact +#. In the Personal Information tab, enter its height and the unit of measure + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/134/9.0 + +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 smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Maxime Chambreuil + +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. \ No newline at end of file diff --git a/partner_contact_height/__init__.py b/partner_contact_height/__init__.py new file mode 100644 index 000000000..79e996da7 --- /dev/null +++ b/partner_contact_height/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_contact_height/__openerp__.py b/partner_contact_height/__openerp__.py new file mode 100644 index 000000000..8eb0df4da --- /dev/null +++ b/partner_contact_height/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Partner Contact Height", + "summary": "Provide contact height.", + "version": "9.0.1.0.0", + "category": "Uncategorized", + "website": "https://ursainfosystems.com", + "author": "Ursa Information Systems, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "product", + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner_view.xml", + ], +} diff --git a/partner_contact_height/models/__init__.py b/partner_contact_height/models/__init__.py new file mode 100644 index 000000000..f3a919166 --- /dev/null +++ b/partner_contact_height/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_partner diff --git a/partner_contact_height/models/res_partner.py b/partner_contact_height/models/res_partner.py new file mode 100644 index 000000000..3074b299d --- /dev/null +++ b/partner_contact_height/models/res_partner.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from openerp import fields, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + height = fields.Float("Height") + height_uom = fields.Many2one("product.uom", "Height UoM", + domain="[('category_id', '=', " + "self.env.ref('product.\ + uom_categ_length').id)]") diff --git a/partner_contact_height/static/description/icon.png b/partner_contact_height/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_contact_height/static/description/icon.png differ diff --git a/partner_contact_height/views/res_partner_view.xml b/partner_contact_height/views/res_partner_view.xml new file mode 100644 index 000000000..cbe518c7f --- /dev/null +++ b/partner_contact_height/views/res_partner_view.xml @@ -0,0 +1,23 @@ + + + + + Partner Contact Height + res.partner + + + + + + + + + + diff --git a/partner_contact_weight/README.rst b/partner_contact_weight/README.rst new file mode 100644 index 000000000..5a1e514ec --- /dev/null +++ b/partner_contact_weight/README.rst @@ -0,0 +1,63 @@ +.. 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 Contact Weight +====================== + +This module adds the weight to a contact. + +Usage +===== + +To use this module, you need to: + +#. Go to Contacts +#. Create or select a contact +#. In the Personal Information tab, enter its weight and the unit of measure + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/134/9.0 + +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 smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Maxime Chambreuil + +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. \ No newline at end of file diff --git a/partner_contact_weight/__init__.py b/partner_contact_weight/__init__.py new file mode 100644 index 000000000..79e996da7 --- /dev/null +++ b/partner_contact_weight/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/partner_contact_weight/__openerp__.py b/partner_contact_weight/__openerp__.py new file mode 100644 index 000000000..2d44a74a2 --- /dev/null +++ b/partner_contact_weight/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Partner Contact Weight", + "summary": "Provide contact weight", + "version": "9.0.1.0.0", + "category": "Uncategorized", + "website": "https://ursainfosystems.com", + "author": "Ursa Information Systems, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "product", + "partner_contact_personal_information_page", + ], + "data": [ + "views/res_partner_view.xml", + ], +} diff --git a/partner_contact_weight/models/__init__.py b/partner_contact_weight/models/__init__.py new file mode 100644 index 000000000..f3a919166 --- /dev/null +++ b/partner_contact_weight/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import res_partner diff --git a/partner_contact_weight/models/res_partner.py b/partner_contact_weight/models/res_partner.py new file mode 100644 index 000000000..cace548f1 --- /dev/null +++ b/partner_contact_weight/models/res_partner.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + + +from openerp import fields, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + weight = fields.Float("Weight") + weight_uom = fields.Many2one("product.uom", "Weight UoM", + domain="[('category_id', '=', " + "self.env.ref('product.\ + product_uom_categ_kgm').id)]") diff --git a/partner_contact_weight/static/description/icon.png b/partner_contact_weight/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_contact_weight/static/description/icon.png differ diff --git a/partner_contact_weight/views/res_partner_view.xml b/partner_contact_weight/views/res_partner_view.xml new file mode 100644 index 000000000..42a3fbbad --- /dev/null +++ b/partner_contact_weight/views/res_partner_view.xml @@ -0,0 +1,23 @@ + + + + + Partner Contact Weight + res.partner + + + + + + + + + + diff --git a/setup/partner_contact_height/odoo_addons/__init__.py b/setup/partner_contact_height/odoo_addons/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/partner_contact_height/odoo_addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/partner_contact_height/odoo_addons/partner_contact_height b/setup/partner_contact_height/odoo_addons/partner_contact_height new file mode 120000 index 000000000..2e65153e3 --- /dev/null +++ b/setup/partner_contact_height/odoo_addons/partner_contact_height @@ -0,0 +1 @@ +../../../partner_contact_height \ No newline at end of file diff --git a/setup/partner_contact_height/setup.py b/setup/partner_contact_height/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_contact_height/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +) diff --git a/setup/partner_contact_weight/odoo_addons/__init__.py b/setup/partner_contact_weight/odoo_addons/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/partner_contact_weight/odoo_addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/partner_contact_weight/odoo_addons/partner_contact_weight b/setup/partner_contact_weight/odoo_addons/partner_contact_weight new file mode 120000 index 000000000..aff2359f6 --- /dev/null +++ b/setup/partner_contact_weight/odoo_addons/partner_contact_weight @@ -0,0 +1 @@ +../../../partner_contact_weight \ No newline at end of file diff --git a/setup/partner_contact_weight/setup.py b/setup/partner_contact_weight/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_contact_weight/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)