From 8389329d8e464fe255a6ef92cb39e004b5416cb9 Mon Sep 17 00:00:00 2001 From: Ronald Portier Date: Mon, 12 Jun 2017 19:14:23 +0200 Subject: [PATCH] [ENH] Migration of the 7.0 module partner_noncommercial. (#286) * [ENH] Migration of the 7.0 module partner_noncommercial. This used to be part of therp-oe-staging modules, but seems to be usefull for more organisations that are primarily or completely non-commercial. The organisations might be put of by the commercial lingo that is shown by default. * [FIX] Add name / mail to contributors. --- partner_noncommercial/README.rst | 81 +++++++++++++++ partner_noncommercial/__init__.py | 3 + partner_noncommercial/__openerp__.py | 20 ++++ partner_noncommercial/data/ir_translation.xml | 17 ++++ partner_noncommercial/i18n/nl.po | 45 +++++++++ .../i18n/partner_noncommercial.pot | 46 +++++++++ partner_noncommercial/i18n_extra/en.po | 55 +++++++++++ partner_noncommercial/i18n_extra/nl.po | 57 +++++++++++ partner_noncommercial/views/menu.xml | 98 +++++++++++++++++++ partner_noncommercial/views/res_partner.xml | 13 +++ 10 files changed, 435 insertions(+) create mode 100644 partner_noncommercial/README.rst create mode 100644 partner_noncommercial/__init__.py create mode 100644 partner_noncommercial/__openerp__.py create mode 100644 partner_noncommercial/data/ir_translation.xml create mode 100644 partner_noncommercial/i18n/nl.po create mode 100644 partner_noncommercial/i18n/partner_noncommercial.pot create mode 100644 partner_noncommercial/i18n_extra/en.po create mode 100644 partner_noncommercial/i18n_extra/nl.po create mode 100644 partner_noncommercial/views/menu.xml create mode 100644 partner_noncommercial/views/res_partner.xml diff --git a/partner_noncommercial/README.rst b/partner_noncommercial/README.rst new file mode 100644 index 000000000..965dec042 --- /dev/null +++ b/partner_noncommercial/README.rst @@ -0,0 +1,81 @@ +.. 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 Non Commercial +====================== + +This module changes menu and view descriptions to make partner management +suitable for use in non commercial organisations. + +Installation +============ + +Installing this module needs no special actions. + +Configuration +============= + +This module requires no special configuration. + +Usage +===== + +This module changes the Sales main menu to relations. There it gives special +options to work with persons or organisationss. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/partner-contact/8.0 + +.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt +.. branch is "8.0" for example + +Known issues / Roadmap +====================== + +After installing this module a situation has been encountered where the new +menu's were added to the database, but not shown in the UI. This was due to +partner_left and partner_right not being filled. To solve this, use the +generic solution when the menu-system has been messed up: + 1. stop server + 2. drop parent_left and parent_right columns frm ir_ui_menu table + 3. start server while updating base module + + +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 +------------ + +* Ronald Portier + +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_noncommercial/__init__.py b/partner_noncommercial/__init__.py new file mode 100644 index 000000000..c6728a775 --- /dev/null +++ b/partner_noncommercial/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- +# © 2016 Therp BV (http://therp.nl). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/partner_noncommercial/__openerp__.py b/partner_noncommercial/__openerp__.py new file mode 100644 index 000000000..b8f65fe74 --- /dev/null +++ b/partner_noncommercial/__openerp__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# © 2015-2016 Therp BV (http://therp.nl). +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': 'Partner Non Commercial', + 'version': '8.0.1.0.0', + "author": "Therp BV,Camptocamp,Odoo Community Association (OCA)", + "complexity": "normal", + "category": "Customer Relationship Management", + 'license': 'AGPL-3', + 'depends': [ + 'base', + ], + 'data': [ + 'data/ir_translation.xml', + 'views/menu.xml', + 'views/res_partner.xml', + ], + 'installable': True, +} diff --git a/partner_noncommercial/data/ir_translation.xml b/partner_noncommercial/data/ir_translation.xml new file mode 100644 index 000000000..af0d56139 --- /dev/null +++ b/partner_noncommercial/data/ir_translation.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/partner_noncommercial/i18n/nl.po b/partner_noncommercial/i18n/nl.po new file mode 100644 index 000000000..70d94eb76 --- /dev/null +++ b/partner_noncommercial/i18n/nl.po @@ -0,0 +1,45 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * vwn_crm_base_translations +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-03-12 09:28+0000\n" +"PO-Revision-Date: 2012-03-12 09:28+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,help:partner_noncommercial.action_company_form +msgid "

Click to add a company in your address book.

" +msgstr "

Klik voor het toevoegen van een organisatie in het adresboek.

" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,help:partner_noncommercial.action_person_form +msgid "

Click to add a person in your address book.

" +msgstr "

Klik voor het toevoegen van een persoon in het adresboek.

" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_all_partner_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_all_partner_form +msgid "All partners" +msgstr "Alle relaties" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_company_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_company_form +msgid "Organisations" +msgstr "Organisaties" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_person_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_person_form +msgid "Persons" +msgstr "Personen" + diff --git a/partner_noncommercial/i18n/partner_noncommercial.pot b/partner_noncommercial/i18n/partner_noncommercial.pot new file mode 100644 index 000000000..38f9d608d --- /dev/null +++ b/partner_noncommercial/i18n/partner_noncommercial.pot @@ -0,0 +1,46 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * partner_noncommercial +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-06-11 15:26+0000\n" +"PO-Revision-Date: 2014-06-11 15:26+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,help:partner_noncommercial.action_company_form +msgid "

Click to add a company in your address book.

" +msgstr "

Click to add a company in your address book.

" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,help:partner_noncommercial.action_person_form +msgid "

Click to add a person in your address book.

" +msgstr "

Click to add a person in your address book.

" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_all_partner_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_all_partner_form +msgid "All partners" +msgstr "All partners" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_company_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_company_form +#: view:res.partner:0 +msgid "Organisations" +msgstr "Organisations" + +#. module: partner_noncommercial +#: model:ir.actions.act_window,name:partner_noncommercial.action_person_form +#: model:ir.ui.menu,name:partner_noncommercial.menu_person_form +msgid "Persons" +msgstr "Persons" + diff --git a/partner_noncommercial/i18n_extra/en.po b/partner_noncommercial/i18n_extra/en.po new file mode 100644 index 000000000..cf9ad055a --- /dev/null +++ b/partner_noncommercial/i18n_extra/en.po @@ -0,0 +1,55 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * vwn_crm_base_translations +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-03-12 09:28+0000\n" +"PO-Revision-Date: 2012-03-12 09:28+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base +#: model:ir.ui.menu,name:base.menu_base_partner +msgid "Sales" +msgstr "Partners" + +#. module: base +#: model:ir.ui.menu,name:base.menu_sales +msgid "Sales" +msgstr "Address book" + +#. module: base +#: model:ir.actions.act_window,name:base.action_partner_customer_form +#: model:ir.actions.act_window,name:base.action_partner_form +#: model:ir.ui.menu,name:base.menu_partner_form +#: view:res.partner:0 +msgid "Customers" +msgstr "Customers" + +#. module: base +#: view:res.partner:0 +msgid "Is a Company?" +msgstr "Is an organisation?" + +#. module: base +#: view:res.partner:0 +msgid "Sales & Purchases" +msgstr "Details" + +#. module: base +#: view:res.partner:0 +#: field:res.partner,user_id:0 +msgid "Salesperson" +msgstr "Responsible" + +#. module: base +#: field:res.partner,parent_id:0 +msgid "Related Company" +msgstr "Related organisation" diff --git a/partner_noncommercial/i18n_extra/nl.po b/partner_noncommercial/i18n_extra/nl.po new file mode 100644 index 000000000..58468cb66 --- /dev/null +++ b/partner_noncommercial/i18n_extra/nl.po @@ -0,0 +1,57 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * vwn_crm_base_translations +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 6.1\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-03-12 09:28+0000\n" +"PO-Revision-Date: 2012-03-12 09:28+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: base +#: model:ir.ui.menu,name:base.menu_base_partner +msgid "Sales" +msgstr "Relaties" + +#. module: base +#: model:ir.ui.menu,name:base.menu_sales +msgid "Sales" +msgstr "Adresboek" + +#. module: base +#: model:ir.actions.act_window,name:base.action_partner_customer_form +#: model:ir.actions.act_window,name:base.action_partner_form +#: model:ir.ui.menu,name:base.menu_partner_form +#: view:res.partner:0 +msgid "Customers" +msgstr "Klanten" + +#. module: base +#: view:res.partner:0 +msgid "Is a Company?" +msgstr "Is een organisatie?" + +#. module: base +#: view:res.partner:0 +msgid "Sales & Purchases" +msgstr "Details" + +#. module: base +#: view:res.partner:0 +#: field:res.partner,user_id:0 +msgid "Salesperson" +msgstr "Verantwoordelijke" + +#. module: base +#: field:res.partner,parent_id:0 +msgid "Related Company" +msgstr "Gerelateerde organisatie" + + diff --git a/partner_noncommercial/views/menu.xml b/partner_noncommercial/views/menu.xml new file mode 100644 index 000000000..08cb9ffa7 --- /dev/null +++ b/partner_noncommercial/views/menu.xml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + All partners + ir.actions.act_window + res.partner + form + kanban,tree,form + + + + + + + + + Organisations + ir.actions.act_window + res.partner + form + kanban,tree,form + {"search_default_type_company": 1,"default_is_company": True} + + +

Click to add a company in your address book.

+
+ + + + + Persons + ir.actions.act_window + res.partner + form + kanban,tree,form + {"search_default_type_person": 1,"default_is_company": False} + + +

Click to add a person in your address book.

+
+ +
+
diff --git a/partner_noncommercial/views/res_partner.xml b/partner_noncommercial/views/res_partner.xml new file mode 100644 index 000000000..4536b0260 --- /dev/null +++ b/partner_noncommercial/views/res_partner.xml @@ -0,0 +1,13 @@ + + + + + res.partner + + + Organisations + + + + +