From 0ff89ba6f9da70467e18d63155e4599144d57a8e Mon Sep 17 00:00:00 2001
From: Ronald Portier
Date: Tue, 29 Sep 2020 10:12:19 +0200
Subject: [PATCH] [IMP] Adapt module to 12.0,
- Remove All Partners action and menu entry as this duplicates default contact view;
- Add some commonly used groupings and filters.
---
partner_noncommercial/README.rst | 6 +-
partner_noncommercial/i18n/nl.po | 60 +++++---------
.../i18n/partner_noncommercial.pot | 37 ++++-----
partner_noncommercial/i18n/sl.po | 49 -----------
partner_noncommercial/readme/USAGE.rst | 6 +-
.../static/description/index.html | 6 +-
partner_noncommercial/views/menu.xml | 83 +------------------
partner_noncommercial/views/res_partner.xml | 42 ++++++++--
8 files changed, 86 insertions(+), 203 deletions(-)
diff --git a/partner_noncommercial/README.rst b/partner_noncommercial/README.rst
index 593ec0e4f..337f015c8 100644
--- a/partner_noncommercial/README.rst
+++ b/partner_noncommercial/README.rst
@@ -43,8 +43,10 @@ To configure this module, you need to:
Usage
=====
-This module creates a main menu All partners. There it gives special
-options to work with persons or organisationss.
+This module changes some strings for partners to make them more appropiate
+for non-commercial context, especially renaming companies to organisations. It also
+adds some filters that are often used in non-commercial settings, although they can
+be usefull within companies too.
Bug Tracker
diff --git a/partner_noncommercial/i18n/nl.po b/partner_noncommercial/i18n/nl.po
index 94e0a5f91..04957a297 100644
--- a/partner_noncommercial/i18n/nl.po
+++ b/partner_noncommercial/i18n/nl.po
@@ -1,61 +1,45 @@
-# Translation of OpenERP Server.
+# Translation of Odoo.
#
msgid ""
msgstr ""
-"Project-Id-Version: OpenERP Server 6.1\n"
+"Project-Id-Version: Odoo 12.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2017-12-01 12:32+0000\n"
-"PO-Revision-Date: 2012-03-12 09:28+0000\n"
+"POT-Creation-Date: 2020-09-29 08:28+0000\n"
+"PO-Revision-Date: 2020-09-29 09:28+0000\n"
"Last-Translator: <>\n"
-"Language-Team: \n"
-"Language: \n"
+"Language-Team: Therp BV - manual translation\n"
+"Language: nl\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,name:partner_noncommercial.action_address_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_address_form
-msgid "All addresses"
-msgstr "Alle adressen"
-
-#. 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
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
-msgid "All partners"
-msgstr "Alle relaties"
-
-#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_person_form
-msgid "Click to add a person to your address book."
-msgstr "Klik voor het toevoegen van een persoon aan het adresboek."
-
-#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_company_form
-msgid "Click to add an organisation to your address book."
-msgstr "Klik voor het toevoegen van een organisatie aan het adresboek."
+msgid "City"
+msgstr "Plaats"
#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_address_form
-msgid "Click to add item to your address book."
-msgstr "Klik voor toevoeging aan het adresboek"
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "Organisation"
+msgstr "Organisatie"
#. module: partner_noncommercial
-#: model:ir.actions.act_window,name:partner_noncommercial.action_company_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_company_form
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
msgid "Organisations"
msgstr "Organisaties"
#. module: partner_noncommercial
-#: model:ir.ui.menu,name:partner_noncommercial.menu_partner
-msgid "Partners"
-msgstr "Alle relaties"
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "Type of contact/address"
+msgstr "Soort contact/adres"
+
+#. module: partner_noncommercial
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "With address"
+msgstr "Met adres"
#. 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"
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "With email"
+msgstr "Met email"
diff --git a/partner_noncommercial/i18n/partner_noncommercial.pot b/partner_noncommercial/i18n/partner_noncommercial.pot
index a5032b122..a23284200 100644
--- a/partner_noncommercial/i18n/partner_noncommercial.pot
+++ b/partner_noncommercial/i18n/partner_noncommercial.pot
@@ -6,6 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2020-09-29 08:28+0000\n"
+"PO-Revision-Date: 2020-09-29 08:28+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -14,48 +16,37 @@ msgstr ""
"Plural-Forms: \n"
#. module: partner_noncommercial
-#: model:ir.actions.act_window,name:partner_noncommercial.action_address_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_address_form
-msgid "All addresses"
-msgstr ""
-
-#. 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
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
-msgid "All partners"
+msgid "City"
msgstr ""
#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_person_form
-msgid "Click to add a person to your address book."
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "Organisation"
msgstr ""
#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_company_form
-msgid "Click to add an organisation to your address book."
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "Organisations"
msgstr ""
#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_address_form
-msgid "Click to add item to your address book."
+#: model:ir.ui.menu,name:partner_noncommercial.menu_person_form
+msgid "Persons"
msgstr ""
#. module: partner_noncommercial
-#: model:ir.actions.act_window,name:partner_noncommercial.action_company_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_company_form
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
-msgid "Organisations"
+msgid "Type of contact/address"
msgstr ""
#. module: partner_noncommercial
-#: model:ir.ui.menu,name:partner_noncommercial.menu_partner
-msgid "Partners"
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "With address"
msgstr ""
#. 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"
+#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
+msgid "With email"
msgstr ""
diff --git a/partner_noncommercial/i18n/sl.po b/partner_noncommercial/i18n/sl.po
index 2455abd50..d3b06f241 100644
--- a/partner_noncommercial/i18n/sl.po
+++ b/partner_noncommercial/i18n/sl.po
@@ -20,55 +20,6 @@ msgstr ""
"%100==4 ? 2 : 3);\n"
#. module: partner_noncommercial
-#: model:ir.actions.act_window,name:partner_noncommercial.action_address_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_address_form
-#, fuzzy
-msgid "All addresses"
-msgstr "Vsi partnerji"
-
-#. 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
-#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
-msgid "All partners"
-msgstr "Vsi partnerji"
-
-#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_person_form
-#, fuzzy
-msgid "Click to add a person to your address book."
-msgstr "Dodaj osebo v imenik.
"
-
-#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_company_form
-msgid "Click to add an organisation to your address book."
-msgstr ""
-
-#. module: partner_noncommercial
-#: model_terms:ir.actions.act_window,help:partner_noncommercial.action_address_form
-msgid "Click to add item to your address book."
-msgstr ""
-
-#. module: partner_noncommercial
-#: model:ir.actions.act_window,name:partner_noncommercial.action_company_form
-#: model:ir.ui.menu,name:partner_noncommercial.menu_company_form
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
msgid "Organisations"
msgstr "Organizacije"
-
-#. module: partner_noncommercial
-#: model:ir.ui.menu,name:partner_noncommercial.menu_partner
-#, fuzzy
-msgid "Partners"
-msgstr "Vsi partnerji"
-
-#. 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 "Osebe"
-
-#~ msgid ""
-#~ "Click to add a company in your "
-#~ "address book.
"
-#~ msgstr "Dodaj podjetje v imenik.
"
diff --git a/partner_noncommercial/readme/USAGE.rst b/partner_noncommercial/readme/USAGE.rst
index 4791cdad1..161bd0cfd 100644
--- a/partner_noncommercial/readme/USAGE.rst
+++ b/partner_noncommercial/readme/USAGE.rst
@@ -1,3 +1,5 @@
-This module creates a main menu All partners. There it gives special
-options to work with persons or organisationss.
+This module changes some strings for partners to make them more appropiate
+for non-commercial context, especially renaming companies to organisations. It also
+adds some filters that are often used in non-commercial settings, although they can
+be usefull within companies too.
diff --git a/partner_noncommercial/static/description/index.html b/partner_noncommercial/static/description/index.html
index f6f133926..67b4b3dc6 100644
--- a/partner_noncommercial/static/description/index.html
+++ b/partner_noncommercial/static/description/index.html
@@ -393,8 +393,10 @@ suitable for use in non commercial organisations.
-
This module creates a main menu All partners. There it gives special
-options to work with persons or organisationss.
+
This module changes some strings for partners to make them more appropiate
+for non-commercial context, especially renaming companies to organisations. It also
+adds some filters that are often used in non-commercial settings, although they can
+be usefull within companies too.
diff --git a/partner_noncommercial/views/menu.xml b/partner_noncommercial/views/menu.xml
index 09cf96cce..b55363d49 100644
--- a/partner_noncommercial/views/menu.xml
+++ b/partner_noncommercial/views/menu.xml
@@ -1,86 +1,9 @@
-
-
-
- All partners
- ir.actions.act_window
- res.partner
- form
- tree,kanban,form
- {"search_default_type_contact": 1}
-
+
+
-
-
-
-
- Organisations
- ir.actions.act_window
- res.partner
- form
- tree,kanban,form
- {"search_default_type_company": 1,"default_is_company": True}
-
-
- Click to add an organisation to your address book.
-
-
-
-
-
- Persons
- ir.actions.act_window
- res.partner
- form
- tree,kanban,form
- {"search_default_type_person": 1,"default_is_company": False}
-
-
- Click to add a person to your address book.
-
-
-
-
-
- All addresses
- ir.actions.act_window
- res.partner
- form
- tree,kanban,form
-
-
- Click to add item to your address book.
-
-
diff --git a/partner_noncommercial/views/res_partner.xml b/partner_noncommercial/views/res_partner.xml
index eb6bfc0e4..97128d53b 100644
--- a/partner_noncommercial/views/res_partner.xml
+++ b/partner_noncommercial/views/res_partner.xml
@@ -4,14 +4,9 @@
res.partner
+ extension
-
-
-
+
@@ -19,9 +14,42 @@
name="domain"
>[('is_company', '=', False), ('type', '=', 'contact')]
+
+
Organisations
+
+
+
+
+
+
+
+
+
+
+
+
+
+