savoirfairelinux-openerp team mailing list archive
-
savoirfairelinux-openerp team
-
Mailing list archive
-
Message #00167
lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS into lp:openerp-canada
Marc Cassuto (SFL) has proposed merging lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS into lp:openerp-canada.
Requested reviews:
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903)
For more details, see:
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS/+merge/174489
--
https://code.launchpad.net/~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS/+merge/174489
Your team Savoir-faire Linux' OpenERP is subscribed to branch lp:~savoirfairelinux-openerp/openerp-canada/openerp-canada_res_partner_attributes_add_NAS.
=== added directory 'res_partner_attributes_add_NAS'
=== added file 'res_partner_attributes_add_NAS/__init__.py'
--- res_partner_attributes_add_NAS/__init__.py 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/__init__.py 2013-07-12 19:31:37 +0000
@@ -0,0 +1,25 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import res_partner_attributes_add_NAS
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'res_partner_attributes_add_NAS/__openerp__.py'
--- res_partner_attributes_add_NAS/__openerp__.py 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/__openerp__.py 2013-07-12 19:31:37 +0000
@@ -0,0 +1,39 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+{
+ 'name' : 'Quebec Social Insurance Number (NAS)',
+ 'version' : '1.0',
+ "author" : "Savoir-faire Linux (mcassuto@xxxxxxxxxxxxxxxxxxxx)",
+ "website" : "http://www.savoirfairelinux.com",
+ 'license': 'AGPL-3',
+ 'category' : 'Localisation/Canada',
+ 'depends' : ['base'],
+ 'description': """
+Add the Social Insurance Number (NAS) to the partner form.
+""",
+ 'auto_install': False,
+ 'installable': True,
+ 'data' : ['res_partner_attributes_add_NAS_view.xml']
+}
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added directory 'res_partner_attributes_add_NAS/i18n'
=== added file 'res_partner_attributes_add_NAS/i18n/fr.mo'
Binary 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
=== added file 'res_partner_attributes_add_NAS/i18n/fr.po'
--- res_partner_attributes_add_NAS/i18n/fr.po 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/i18n/fr.po 2013-07-12 19:31:37 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * res_partner_attributes_add_NAS
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-07-11 14:53+0000\n"
+"PO-Revision-Date: 2013-07-11 10:55-0500\n"
+"Last-Translator: Marc Cassuto <marc.cassuto@xxxxxxxxxxxxxxxxxxxx>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: \n"
+
+#. module: res_partner_attributes_add_NAS
+#: field:res.partner,nas:0
+msgid "NAS"
+msgstr "NAS"
+
+#. module: res_partner_attributes_add_NAS
+#: help:res.partner,nas:0
+msgid "Social Insurance Number (9 digits)"
+msgstr "Numéro d'Assurance Sociale (9 chiffres)"
+
+#. module: res_partner_attributes_add_NAS
+#: model:ir.model,name:res_partner_attributes_add_NAS.model_res_partner
+msgid "Partner"
+msgstr "Partenaire"
+
=== added file 'res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot'
--- res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/i18n/res_partner_attributes_add_NAS.pot 2013-07-12 19:31:37 +0000
@@ -0,0 +1,32 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * res_partner_attributes_add_NAS
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-07-11 14:53+0000\n"
+"PO-Revision-Date: 2013-07-11 14:53+0000\n"
+"Last-Translator: <>\n"
+"Language-Team: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: \n"
+"Plural-Forms: \n"
+
+#. module: res_partner_attributes_add_NAS
+#: field:res.partner,nas:0
+msgid "NAS"
+msgstr ""
+
+#. module: res_partner_attributes_add_NAS
+#: help:res.partner,nas:0
+msgid "Social Insurance Number (9 digits)"
+msgstr ""
+
+#. module: res_partner_attributes_add_NAS
+#: model:ir.model,name:res_partner_attributes_add_NAS.model_res_partner
+msgid "Partner"
+msgstr ""
+
=== added file 'res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py'
--- res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/res_partner_attributes_add_NAS.py 2013-07-12 19:31:37 +0000
@@ -0,0 +1,32 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+# OpenERP, Open Source Management Solution
+# Copyright (C) 2013 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as
+# published by the Free Software Foundation, either version 3 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import fields, orm
+from openerp.tools.translate import _
+
+class res_partner(orm.Model):
+ _name = 'res.partner'
+ _inherit = 'res.partner'
+ _columns = {
+ 'nas' : fields.float('NAS', digits=(9,0),help="Social Insurance Number (9 digits)"),
+ }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
=== added file 'res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml'
--- res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml 1970-01-01 00:00:00 +0000
+++ res_partner_attributes_add_NAS/res_partner_attributes_add_NAS_view.xml 2013-07-12 19:31:37 +0000
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+ <data>
+ <record model="ir.ui.view" id="res_partner_attributes_add_NAS_form_view">
+ <field name="name">res_partner_attributes_add_NAS</field>
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="base.view_partner_form"/>
+ <field name="arch" type="xml">
+ <field name="website" position="after">
+ <field name="nas" attrs="{'invisible': [('is_company','=', True)]}"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</openerp>
Follow ups