Skip to content

Commit 1354954

Browse files
committed
[MIG] partner_noncommercial: Migration to 18.0
1 parent 58afadb commit 1354954

File tree

15 files changed

+105
-105
lines changed

15 files changed

+105
-105
lines changed

partner_noncommercial/README.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Partner Non Commercial
2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

3131
This module changes menu and view descriptions to make partner
32-
management suitable for use in non commercial organisations.
32+
management suitable for use in non commercial organizations.
3333

3434
**Table of contents**
3535

@@ -39,17 +39,15 @@ management suitable for use in non commercial organisations.
3939
Configuration
4040
=============
4141

42-
To configure this module, you need to:
43-
44-
1. This module requires no special configuration.
42+
This module requires no special configuration.
4543

4644
Usage
4745
=====
4846

4947
This module changes some strings for partners to make them more
5048
appropiate for non-commercial context, especially renaming companies to
51-
organisations. It also adds some filters that are often used in
52-
non-commercial settings, although they can be usefull within companies
49+
organizations. It also adds some filters that are often used in
50+
non-commercial settings, although they can be useful within companies
5351
too.
5452

5553
Bug Tracker

partner_noncommercial/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
2+
from . import models

partner_noncommercial/__manifest__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
33
{
44
"name": "Partner Non Commercial",
5-
"version": "12.0.2.0.0",
5+
"version": "18.0.1.0.0",
66
"author": "Therp BV,Camptocamp,Odoo Community Association (OCA)",
77
"website": "https://github.com/OCA/partner-contact",
88
"category": "Customer Relationship Management",
99
"license": "AGPL-3",
1010
"depends": [
1111
"contacts",
12+
"base_view_inheritance_extension",
1213
],
1314
"data": [
1415
"views/menu.xml",

partner_noncommercial/i18n/nl.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ msgstr "Plaats"
2121

2222
#. module: partner_noncommercial
2323
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
24-
msgid "Organisation"
24+
msgid "Organization"
2525
msgstr "Organisatie"
2626

2727
#. module: partner_noncommercial
2828
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
29-
msgid "Organisations"
29+
msgid "Organizations"
3030
msgstr "Organisaties"
3131

3232
#. module: partner_noncommercial

partner_noncommercial/i18n/partner_noncommercial.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ msgstr ""
2020

2121
#. module: partner_noncommercial
2222
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
23-
msgid "Organisation"
23+
msgid "Organization"
2424
msgstr ""
2525

2626
#. module: partner_noncommercial
2727
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
28-
msgid "Organisations"
28+
msgid "Organizations"
2929
msgstr ""
3030

3131
#. module: partner_noncommercial

partner_noncommercial/i18n/sl.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ msgstr ""
2626

2727
#. module: partner_noncommercial
2828
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
29-
msgid "Organisation"
29+
msgid "Organization"
3030
msgstr ""
3131

3232
#. module: partner_noncommercial
3333
#: model_terms:ir.ui.view,arch_db:partner_noncommercial.view_res_partner_filter
34-
msgid "Organisations"
34+
msgid "Organizations"
3535
msgstr "Organizacije"
3636

3737
#. module: partner_noncommercial

partner_noncommercial/i18n_extra/en.po

Lines changed: 0 additions & 35 deletions
This file was deleted.

partner_noncommercial/i18n_extra/nl.po

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
2+
from . import res_partner
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
2+
from odoo import fields, models
3+
4+
5+
class ResPartner(models.Model):
6+
_inherit = "res.partner"
7+
8+
parent_id = fields.Many2one(string="Related organization")
9+
user_id = fields.Many2one(string="Responsible")
10+
company_type = fields.Selection(selection_add=[("company", "Organization")])

0 commit comments

Comments
 (0)