Merge lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS into lp:openerp-canada

Proposed by Marc Cassuto (SFL)
Status: Rejected
Rejected by: Maxime Chambreuil (http://www.savoirfairelinux.com)
Proposed branch: lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS
Merge into: lp:openerp-canada
Diff against target: 208 lines (+175/-0)
6 files modified
res_partner_attributes_add_NAS/__init__.py (+25/-0)
res_partner_attributes_add_NAS/__openerp__.py (+39/-0)
res_partner_attributes_add_NAS/i18n/fr.po (+32/-0)
res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot (+32/-0)
res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py (+32/-0)
res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml (+15/-0)
To merge this branch: bzr merge lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS
Reviewer Review Type Date Requested Status
Maxime Chambreuil (http://www.savoirfairelinux.com) Disapprove
Review via email: mp+174489@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote :
review: Disapprove

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'res_partner_attributes_add_NAS'
2=== added file 'res_partner_attributes_add_NAS/__init__.py'
3--- res_partner_attributes_add_NAS/__init__.py 1970-01-01 00:00:00 +0000
4+++ res_partner_attributes_add_NAS/__init__.py 2013-07-12 19:31:37 +0000
5@@ -0,0 +1,25 @@
6+# -*- encoding: utf-8 -*-
7+##############################################################################
8+#
9+# OpenERP, Open Source Management Solution
10+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
11+#
12+# This program is free software: you can redistribute it and/or modify
13+# it under the terms of the GNU Affero General Public License as
14+# published by the Free Software Foundation, either version 3 of the
15+# License, or (at your option) any later version.
16+#
17+# This program is distributed in the hope that it will be useful,
18+# but WITHOUT ANY WARRANTY; without even the implied warranty of
19+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20+# GNU Affero General Public License for more details.
21+#
22+# You should have received a copy of the GNU Affero General Public License
23+# along with this program. If not, see <http://www.gnu.org/licenses/>.
24+#
25+##############################################################################
26+
27+import res_partner_attributes_add_NAS
28+
29+
30+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
31
32=== added file 'res_partner_attributes_add_NAS/__openerp__.py'
33--- res_partner_attributes_add_NAS/__openerp__.py 1970-01-01 00:00:00 +0000
34+++ res_partner_attributes_add_NAS/__openerp__.py 2013-07-12 19:31:37 +0000
35@@ -0,0 +1,39 @@
36+# -*- encoding: utf-8 -*-
37+##############################################################################
38+#
39+# OpenERP, Open Source Management Solution
40+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
41+#
42+# This program is free software: you can redistribute it and/or modify
43+# it under the terms of the GNU Affero General Public License as
44+# published by the Free Software Foundation, either version 3 of the
45+# License, or (at your option) any later version.
46+#
47+# This program is distributed in the hope that it will be useful,
48+# but WITHOUT ANY WARRANTY; without even the implied warranty of
49+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50+# GNU Affero General Public License for more details.
51+#
52+# You should have received a copy of the GNU Affero General Public License
53+# along with this program. If not, see <http://www.gnu.org/licenses/>.
54+#
55+##############################################################################
56+
57+{
58+ 'name' : 'Quebec Social Insurance Number (NAS)',
59+ 'version' : '1.0',
60+ "author" : "Savoir-faire Linux (mcassuto@savoirfairelinux.com)",
61+ "website" : "http://www.savoirfairelinux.com",
62+ 'license': 'AGPL-3',
63+ 'category' : 'Localisation/Canada',
64+ 'depends' : ['base'],
65+ 'description': """
66+Add the Social Insurance Number (NAS) to the partner form.
67+""",
68+ 'auto_install': False,
69+ 'installable': True,
70+ 'data' : ['res_partner_attributes_add_NAS_view.xml']
71+}
72+
73+
74+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
75
76=== added directory 'res_partner_attributes_add_NAS/i18n'
77=== added file 'res_partner_attributes_add_NAS/i18n/fr.mo'
78Binary files res_partner_attributes_add_NAS/i18n/fr.mo 1970-01-01 00:00:00 +0000 and res_partner_attributes_add_NAS/i18n/fr.mo 2013-07-12 19:31:37 +0000 differ
79=== added file 'res_partner_attributes_add_NAS/i18n/fr.po'
80--- res_partner_attributes_add_NAS/i18n/fr.po 1970-01-01 00:00:00 +0000
81+++ res_partner_attributes_add_NAS/i18n/fr.po 2013-07-12 19:31:37 +0000
82@@ -0,0 +1,32 @@
83+# Translation of OpenERP Server.
84+# This file contains the translation of the following modules:
85+# * res_partner_attributes_add_NAS
86+#
87+msgid ""
88+msgstr ""
89+"Project-Id-Version: OpenERP Server 7.0\n"
90+"Report-Msgid-Bugs-To: \n"
91+"POT-Creation-Date: 2013-07-11 14:53+0000\n"
92+"PO-Revision-Date: 2013-07-11 10:55-0500\n"
93+"Last-Translator: Marc Cassuto <marc.cassuto@savoirfairelinux.com>\n"
94+"Language-Team: \n"
95+"MIME-Version: 1.0\n"
96+"Content-Type: text/plain; charset=UTF-8\n"
97+"Content-Transfer-Encoding: 8bit\n"
98+"Plural-Forms: \n"
99+
100+#. module: res_partner_attributes_add_NAS
101+#: field:res.partner,nas:0
102+msgid "NAS"
103+msgstr "NAS"
104+
105+#. module: res_partner_attributes_add_NAS
106+#: help:res.partner,nas:0
107+msgid "Social Insurance Number (9 digits)"
108+msgstr "Numéro d'Assurance Sociale (9 chiffres)"
109+
110+#. module: res_partner_attributes_add_NAS
111+#: model:ir.model,name:res_partner_attributes_add_NAS.model_res_partner
112+msgid "Partner"
113+msgstr "Partenaire"
114+
115
116=== added file 'res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot'
117--- res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot 1970-01-01 00:00:00 +0000
118+++ res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot 2013-07-12 19:31:37 +0000
119@@ -0,0 +1,32 @@
120+# Translation of OpenERP Server.
121+# This file contains the translation of the following modules:
122+# * res_partner_attributes_add_NAS
123+#
124+msgid ""
125+msgstr ""
126+"Project-Id-Version: OpenERP Server 7.0\n"
127+"Report-Msgid-Bugs-To: \n"
128+"POT-Creation-Date: 2013-07-11 14:53+0000\n"
129+"PO-Revision-Date: 2013-07-11 14:53+0000\n"
130+"Last-Translator: <>\n"
131+"Language-Team: \n"
132+"MIME-Version: 1.0\n"
133+"Content-Type: text/plain; charset=UTF-8\n"
134+"Content-Transfer-Encoding: \n"
135+"Plural-Forms: \n"
136+
137+#. module: res_partner_attributes_add_NAS
138+#: field:res.partner,nas:0
139+msgid "NAS"
140+msgstr ""
141+
142+#. module: res_partner_attributes_add_NAS
143+#: help:res.partner,nas:0
144+msgid "Social Insurance Number (9 digits)"
145+msgstr ""
146+
147+#. module: res_partner_attributes_add_NAS
148+#: model:ir.model,name:res_partner_attributes_add_NAS.model_res_partner
149+msgid "Partner"
150+msgstr ""
151+
152
153=== added file 'res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py'
154--- res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py 1970-01-01 00:00:00 +0000
155+++ res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py 2013-07-12 19:31:37 +0000
156@@ -0,0 +1,32 @@
157+# -*- encoding: utf-8 -*-
158+##############################################################################
159+#
160+# OpenERP, Open Source Management Solution
161+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
162+#
163+# This program is free software: you can redistribute it and/or modify
164+# it under the terms of the GNU Affero General Public License as
165+# published by the Free Software Foundation, either version 3 of the
166+# License, or (at your option) any later version.
167+#
168+# This program is distributed in the hope that it will be useful,
169+# but WITHOUT ANY WARRANTY; without even the implied warranty of
170+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
171+# GNU Affero General Public License for more details.
172+#
173+# You should have received a copy of the GNU Affero General Public License
174+# along with this program. If not, see <http://www.gnu.org/licenses/>.
175+#
176+##############################################################################
177+
178+from openerp.osv import fields, orm
179+from openerp.tools.translate import _
180+
181+class res_partner(orm.Model):
182+ _name = 'res.partner'
183+ _inherit = 'res.partner'
184+ _columns = {
185+ 'nas' : fields.float('NAS', digits=(9,0),help="Social Insurance Number (9 digits)"),
186+ }
187+
188+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
189
190=== added file 'res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml'
191--- res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml 1970-01-01 00:00:00 +0000
192+++ res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml 2013-07-12 19:31:37 +0000
193@@ -0,0 +1,15 @@
194+<?xml version="1.0" encoding="utf-8"?>
195+<openerp>
196+ <data>
197+ <record model="ir.ui.view" id="res_partner_attributes_add_NAS_form_view">
198+ <field name="name">res_partner_attributes_add_NAS</field>
199+ <field name="model">res.partner</field>
200+ <field name="inherit_id" ref="base.view_partner_form"/>
201+ <field name="arch" type="xml">
202+ <field name="website" position="after">
203+ <field name="nas" attrs="{'invisible': [('is_company','=', True)]}"/>
204+ </field>
205+ </field>
206+ </record>
207+ </data>
208+</openerp>

Subscribers

People subscribed via source and target branches