Merge lp:~therp-nl/therp-addons/7.0-partner_name_dutch_salutation into lp:~therp-nl/therp-addons/7.0

Proposed by Holger Brunn (Therp)
Status: Merged
Merged at revision: 102
Proposed branch: lp:~therp-nl/therp-addons/7.0-partner_name_dutch_salutation
Merge into: lp:~therp-nl/therp-addons/7.0
Diff against target: 170 lines (+118/-0)
6 files modified
partner_name_dutch/__openerp__.py (+4/-0)
partner_name_dutch/data/res_partner_title.xml (+23/-0)
partner_name_dutch/i18n/nl.po (+34/-0)
partner_name_dutch/model/__init__.py (+1/-0)
partner_name_dutch/model/res_partner_title.py (+29/-0)
partner_name_dutch/view/res_partner_title.xml (+27/-0)
To merge this branch: bzr merge lp:~therp-nl/therp-addons/7.0-partner_name_dutch_salutation
Reviewer Review Type Date Requested Status
Stefan Rijnhart (Opener) (community) Approve
Review via email: mp+203685@code.launchpad.net
To post a comment you must log in.
103. By Holger Brunn (Therp)

[ADD] mention latest changes in manifest

104. By Holger Brunn (Therp)

[FIX] copy&paste mistake

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks, sorry I've missed this.

Salutations in English are capitalized (as in "Dear Madam" / "My dear Professor"). Can you change this in the data lines and update the translations?

review: Needs Fixing
105. By Holger Brunn (Therp)

[FIX] English salutations are capitalized

Revision history for this message
Holger Brunn (Therp) (hbrunn) wrote :

Thanks!

Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks for the updates

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'partner_name_dutch/__openerp__.py'
2--- partner_name_dutch/__openerp__.py 2013-10-01 12:00:28 +0000
3+++ partner_name_dutch/__openerp__.py 2014-03-17 07:52:16 +0000
4@@ -27,12 +27,16 @@
5 - have infixes
6 - have initials
7 - split first and last name (provided by partner_firstname)
8+ - use a different title for address and salutation ('aan de heer'/'geachte
9+ heer')
10 """,
11 "category" : "Generic Modules",
12 "depends" : [
13 'partner_firstname',
14 ],
15 "data" : [
16+ "data/res_partner_title.xml",
17+ "view/res_partner_title.xml",
18 'view/res_partner.xml',
19 ],
20 "js": [
21
22=== added directory 'partner_name_dutch/data'
23=== added file 'partner_name_dutch/data/res_partner_title.xml'
24--- partner_name_dutch/data/res_partner_title.xml 1970-01-01 00:00:00 +0000
25+++ partner_name_dutch/data/res_partner_title.xml 2014-03-17 07:52:16 +0000
26@@ -0,0 +1,23 @@
27+<?xml version="1.0" encoding="UTF-8"?>
28+<openerp>
29+ <data noupdate="1">
30+ <record id="base.res_partner_title_prof" model="res.partner.title">
31+ <field name="salutation">Prof.</field>
32+ </record>
33+ <record id="base.res_partner_title_doctor" model="res.partner.title">
34+ <field name="salutation">Dr.</field>
35+ </record>
36+ <record id="base.res_partner_title_mister" model="res.partner.title">
37+ <field name="salutation">Mister</field>
38+ </record>
39+ <record id="base.res_partner_title_miss" model="res.partner.title">
40+ <field name="salutation">Miss</field>
41+ </record>
42+ <record id="base.res_partner_title_madam" model="res.partner.title">
43+ <field name="salutation">Madam</field>
44+ </record>
45+ <record id="base.res_partner_title_sir" model="res.partner.title">
46+ <field name="salutation">Sir</field>
47+ </record>
48+ </data>
49+</openerp>
50
51=== modified file 'partner_name_dutch/i18n/nl.po'
52--- partner_name_dutch/i18n/nl.po 2013-10-02 14:43:20 +0000
53+++ partner_name_dutch/i18n/nl.po 2014-03-17 07:52:16 +0000
54@@ -26,7 +26,41 @@
55 msgstr "Tussenvoegsel"
56
57 #. module: partner_name_dutch
58+#: field:res.partner.title,salutation:0
59+msgid "Salutation"
60+msgstr "Aanhef"
61+
62+#. module: partner_name_dutch
63 #: field:res.partner,initials:0
64 msgid "Initials"
65 msgstr "Voorletters"
66
67+#. module: partner_name_dutch
68+#: model:res.partner.title,salutation:base.res_partner_title_prof
69+msgid "Prof."
70+msgstr "prof."
71+
72+#. module: partner_name_dutch
73+#: model:res.partner.title,salutation:base.res_partner_title_doctor
74+msgid "Dr."
75+msgstr "dr."
76+
77+#. module: partner_name_dutch
78+#: model:res.partner.title,salutation:base.res_partner_title_mister
79+msgid "Mister"
80+msgstr "heer"
81+
82+#. module: partner_name_dutch
83+#: model:res.partner.title,salutation:base.res_partner_title_miss
84+msgid "Miss"
85+msgstr "mejuffrouw"
86+
87+#. module: partner_name_dutch
88+#: model:res.partner.title,salutation:base.res_partner_title_madam
89+msgid "Madam"
90+msgstr "mevrouw"
91+
92+#. module: partner_name_dutch
93+#: model:res.partner.title,salutation:base.res_partner_title_sir
94+msgid "Sir"
95+msgstr "heer"
96
97=== modified file 'partner_name_dutch/model/__init__.py'
98--- partner_name_dutch/model/__init__.py 2013-10-01 12:00:28 +0000
99+++ partner_name_dutch/model/__init__.py 2014-03-17 07:52:16 +0000
100@@ -19,3 +19,4 @@
101 #
102 ##############################################################################
103 import res_partner
104+import res_partner_title
105
106=== added file 'partner_name_dutch/model/res_partner_title.py'
107--- partner_name_dutch/model/res_partner_title.py 1970-01-01 00:00:00 +0000
108+++ partner_name_dutch/model/res_partner_title.py 2014-03-17 07:52:16 +0000
109@@ -0,0 +1,29 @@
110+# -*- coding: utf-8 -*-
111+##############################################################################
112+#
113+# OpenERP, Open Source Management Solution
114+# This module copyright (C) 2014 Therp BV (<http://therp.nl>).
115+#
116+# This program is free software: you can redistribute it and/or modify
117+# it under the terms of the GNU Affero General Public License as
118+# published by the Free Software Foundation, either version 3 of the
119+# License, or (at your option) any later version.
120+#
121+# This program is distributed in the hope that it will be useful,
122+# but WITHOUT ANY WARRANTY; without even the implied warranty of
123+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
124+# GNU Affero General Public License for more details.
125+#
126+# You should have received a copy of the GNU Affero General Public License
127+# along with this program. If not, see <http://www.gnu.org/licenses/>.
128+#
129+##############################################################################
130+from openerp.osv.orm import Model
131+from openerp.osv import fields
132+
133+class ResPartnerTitle(Model):
134+ _inherit = 'res.partner.title'
135+
136+ _columns = {
137+ 'salutation': fields.char('Salutation', size=64, translate=True),
138+ }
139
140=== added file 'partner_name_dutch/view/res_partner_title.xml'
141--- partner_name_dutch/view/res_partner_title.xml 1970-01-01 00:00:00 +0000
142+++ partner_name_dutch/view/res_partner_title.xml 2014-03-17 07:52:16 +0000
143@@ -0,0 +1,27 @@
144+<?xml version="1.0" encoding="UTF-8"?>
145+<openerp>
146+ <data>
147+ <record id="view_partner_title_tree" model="ir.ui.view">
148+ <field name="model">res.partner.title</field>
149+ <field name="inherit_id" ref="base.view_partner_title_tree" />
150+ <field name="arch" type="xml">
151+ <data>
152+ <field name="name" position="after">
153+ <field name="salutation" />
154+ </field>
155+ </data>
156+ </field>
157+ </record>
158+ <record id="view_partner_title_form" model="ir.ui.view">
159+ <field name="model">res.partner.title</field>
160+ <field name="inherit_id" ref="base.view_partner_title_form" />
161+ <field name="arch" type="xml">
162+ <data>
163+ <field name="name" position="after">
164+ <field name="salutation" />
165+ </field>
166+ </data>
167+ </field>
168+ </record>
169+ </data>
170+</openerp>

Subscribers

People subscribed via source and target branches

to all changes: