diff --git a/partner_contact_nutrition_activity_level/README.rst b/partner_contact_nutrition_activity_level/README.rst new file mode 100644 index 000000000..c12796ed1 --- /dev/null +++ b/partner_contact_nutrition_activity_level/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 Activity Level +============================== + +This module adds the activity level to a partner contact: + +* Sedentary +* Moderately Active +* Very Active +* Extremely Active + +Usage +===== + +* Go to Contacts +* Create or select a contact +* Go to the Nutrition tab to select their activity level + + +Known issues / Roadmap +====================== + +* None yet + +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_nutrition_activity_level/__init__.py b/partner_contact_nutrition_activity_level/__init__.py new file mode 100644 index 000000000..79e996da7 --- /dev/null +++ b/partner_contact_nutrition_activity_level/__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_nutrition_activity_level/__openerp__.py b/partner_contact_nutrition_activity_level/__openerp__.py new file mode 100644 index 000000000..394414ab5 --- /dev/null +++ b/partner_contact_nutrition_activity_level/__openerp__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Copyright 2016 Ursa Information Systems +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ + "name": "Partner Contact Activity Level", + "summary": "Set the activity level of your contacts", + "version": "9.0.1.0.0", + "category": "Health", + "website": "http://ursainfosystems.com", + "author": "Ursa Information Systems, Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "partner_contact_nutrition", + ], + "data": [ + "views/res_partner_view.xml", + ], +} diff --git a/partner_contact_nutrition_activity_level/models/__init__.py b/partner_contact_nutrition_activity_level/models/__init__.py new file mode 100644 index 000000000..f3a919166 --- /dev/null +++ b/partner_contact_nutrition_activity_level/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_nutrition_activity_level/models/res_partner.py b/partner_contact_nutrition_activity_level/models/res_partner.py new file mode 100644 index 000000000..cd6d7c002 --- /dev/null +++ b/partner_contact_nutrition_activity_level/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' + + activity_level = fields.Selection([('sedentary', 'Sedentary'), + ('moderately', 'Moderately active'), + ('very', 'Very active'), + ('extremely', 'Extremely active')], + "Activity Level") diff --git a/partner_contact_nutrition_activity_level/static/description/icon.png b/partner_contact_nutrition_activity_level/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/partner_contact_nutrition_activity_level/static/description/icon.png differ diff --git a/partner_contact_nutrition_activity_level/views/res_partner_view.xml b/partner_contact_nutrition_activity_level/views/res_partner_view.xml new file mode 100644 index 000000000..e98847847 --- /dev/null +++ b/partner_contact_nutrition_activity_level/views/res_partner_view.xml @@ -0,0 +1,15 @@ + + + + + Partner Contact Activity Level + res.partner + + + + + + + + +