diff --git a/partner_noncommercial/README.rst b/partner_noncommercial/README.rst index 965dec042..a1ce02510 100644 --- a/partner_noncommercial/README.rst +++ b/partner_noncommercial/README.rst @@ -27,10 +27,7 @@ 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 + :target: https://runbot.odoo-community.org/runbot/partner-contact/10.0 Known issues / Roadmap ====================== @@ -39,9 +36,9 @@ 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 +1. stop server +2. drop parent_left and parent_right columns from ir_ui_menu table +3. start server while updating base module Bug Tracker @@ -58,7 +55,8 @@ Credits Images ------ -* Odoo Community Association: `Icon `_. +* Odoo Community Association: + `Icon `_. Contributors ------------ @@ -78,4 +76,5 @@ 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. +To contribute to this module, please visit + https://github.com/oca/partner-contact diff --git a/partner_noncommercial/__init__.py b/partner_noncommercial/__init__.py index c6728a775..0eec69fd3 100644 --- a/partner_noncommercial/__init__.py +++ b/partner_noncommercial/__init__.py @@ -1,3 +1,2 @@ # -*- coding: utf-8 -*- -# © 2016 Therp BV (http://therp.nl). -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). diff --git a/partner_noncommercial/__manifest__.py b/partner_noncommercial/__manifest__.py new file mode 100644 index 000000000..8e81507b5 --- /dev/null +++ b/partner_noncommercial/__manifest__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-2018 Therp BV (https://therp.nl). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + 'name': 'Partner Non Commercial', + 'version': '10.0.1.0.0', + 'author': 'Therp BV,Camptocamp,Odoo Community Association (OCA)', + 'website': 'https://github.com/oca/partner-contact', + 'complexity': 'normal', + 'category': 'Customer Relationship Management', + 'license': 'AGPL-3', + 'depends': [ + 'sales_team', # Contains address book configuration + ], + 'data': [ + 'views/menu.xml', + 'views/res_partner.xml', + ], + 'installable': True, +} diff --git a/partner_noncommercial/__openerp__.py b/partner_noncommercial/__openerp__.py deleted file mode 100644 index b8f65fe74..000000000 --- a/partner_noncommercial/__openerp__.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- 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 deleted file mode 100644 index af0d56139..000000000 --- a/partner_noncommercial/data/ir_translation.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/partner_noncommercial/i18n/nl.po b/partner_noncommercial/i18n/nl.po index f016f6994..f9058ab94 100644 --- a/partner_noncommercial/i18n/nl.po +++ b/partner_noncommercial/i18n/nl.po @@ -1,54 +1,60 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * partner_noncommercial +# Translation of OpenERP Server. # -# Translators: -# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: OpenERP Server 6.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-06-13 03:19+0000\n" -"PO-Revision-Date: 2017-06-13 03:19+0000\n" -"Last-Translator: OCA Transbot , 2017\n" -"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" -"Language: nl\n" +"POT-Creation-Date: 2017-12-01 12:32+0000\n" +"PO-Revision-Date: 2012-03-12 09:28+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\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.

" +#: 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:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter msgid "All partners" msgstr "Alle relaties" +#. module: partner_noncommercial +#: model: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: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." + +#. module: partner_noncommercial +#: model: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" + #. 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:partner_noncommercial.view_res_partner_filter +#: model: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 +#: model:ir.ui.menu,name:partner_noncommercial.menu_partner_main +msgid "Partners" +msgstr "Alle relaties" + #. module: partner_noncommercial #: model:ir.actions.act_window,name:partner_noncommercial.action_person_form #: model:ir.ui.menu,name:partner_noncommercial.menu_person_form diff --git a/partner_noncommercial/i18n/partner_noncommercial.pot b/partner_noncommercial/i18n/partner_noncommercial.pot index 59822eba7..58bf88c0b 100644 --- a/partner_noncommercial/i18n/partner_noncommercial.pot +++ b/partner_noncommercial/i18n/partner_noncommercial.pot @@ -4,8 +4,10 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 8.0\n" +"Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-12-01 12:32+0000\n" +"PO-Revision-Date: 2017-12-01 12:32+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -14,28 +16,46 @@ msgstr "" "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.

" +#: 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:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter +msgid "All partners" msgstr "" #. module: partner_noncommercial #: model:ir.actions.act_window,help:partner_noncommercial.action_person_form -msgid "

Click to add a person in your address book.

" +msgid "Click to add a person to your address book." 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 -msgid "All partners" +#: model: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: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 -#: view:res.partner:partner_noncommercial.view_res_partner_filter +#: model:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter msgid "Organisations" msgstr "" +#. module: partner_noncommercial +#: model:ir.ui.menu,name:partner_noncommercial.menu_partner +#: model:ir.ui.menu,name:partner_noncommercial.menu_partner_main +msgid "Partners" +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 diff --git a/partner_noncommercial/i18n_extra/en.po b/partner_noncommercial/i18n_extra/en.po index cf9ad055a..e55621687 100644 --- a/partner_noncommercial/i18n_extra/en.po +++ b/partner_noncommercial/i18n_extra/en.po @@ -1,6 +1,4 @@ # Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * vwn_crm_base_translations # msgid "" msgstr "" @@ -16,32 +14,14 @@ msgstr "" "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?" +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 +msgid "Sales & Purchases" +msgstr "Details" #. module: base #: view:res.partner:0 diff --git a/partner_noncommercial/i18n_extra/nl.po b/partner_noncommercial/i18n_extra/nl.po index 58468cb66..3b6290d9e 100644 --- a/partner_noncommercial/i18n_extra/nl.po +++ b/partner_noncommercial/i18n_extra/nl.po @@ -1,6 +1,4 @@ # Translation of OpenERP Server. -# This file contains the translation of the following modules: -# * vwn_crm_base_translations # msgid "" msgstr "" @@ -16,32 +14,14 @@ msgstr "" "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?" +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 +msgid "Sales & Purchases" +msgstr "Details" #. module: base #: view:res.partner:0 @@ -54,4 +34,3 @@ msgstr "Verantwoordelijke" msgid "Related Company" msgstr "Gerelateerde organisatie" - diff --git a/partner_noncommercial/views/menu.xml b/partner_noncommercial/views/menu.xml index 08cb9ffa7..5446a40a6 100644 --- a/partner_noncommercial/views/menu.xml +++ b/partner_noncommercial/views/menu.xml @@ -1,98 +1,110 @@ - - - - - - - - + + + + + - - - - + + + All partners + ir.actions.act_window + res.partner + form + tree,kanban,form + {"search_default_type_relation": 1} + + + - - - All partners - ir.actions.act_window - res.partner - form - kanban,tree,form - - - + + 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.

+
+ - - - 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.

-
- + + All addresses + ir.actions.act_window + res.partner + form + tree,kanban,form + + +

Click to add item to 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 index 4536b0260..5741a1eff 100644 --- a/partner_noncommercial/views/res_partner.xml +++ b/partner_noncommercial/views/res_partner.xml @@ -1,13 +1,28 @@ - - - - - res.partner - - - Organisations - - - - - + + + + + + res.partner + + + + + + + [('is_company','=',0),('type','=','contact')] + + + Organisations + + + + +