[tryton-debian-vcs] tryton-modules-health-qrcodes branch upstream updated. upstream/2.8.1-1-g542afd4

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Mon Mar 28 18:28:22 UTC 2016


The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-health-qrcodes.git;a=commitdiff;h=upstream/2.8.1-1-g542afd4

commit 542afd4ce8a0593508f9efd2baaed7a49f72bb2f
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Mon Mar 28 01:35:49 2016 +0200

    Adding upstream version 3.0.1.
    
    Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>

diff --git a/PKG-INFO b/PKG-INFO
index 388dbaf..769e27b 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_health_qrcodes
-Version: 2.8.1
+Version: 3.0.1
 Summary: GNU Health Quick Recognition - QR codes Module
 Home-page: http://health.gnu.org/
 Author: GNU Solidario
diff --git a/README b/README
index c4827ad..765e04a 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-#    Copyright (C) 2008-2015 Luis Falcon
+#    Copyright (C) 2008-2016 Luis Falcon
 
 #    This program is free software: you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
diff --git a/__init__.py b/__init__.py
index 18bdcba..0d53700 100644
--- a/__init__.py
+++ b/__init__.py
@@ -2,8 +2,8 @@
 ##############################################################################
 #
 #    GNU Health: The Free Health and Hospital Information System
-#    Copyright (C) 2008-2015 Luis Falcon <lfalcon at gnusolidario.org>
-#    Copyright (C) 2011-2015 GNU Solidario <health at gnusolidario.org>
+#    Copyright (C) 2008-2016 Luis Falcon <lfalcon at gnusolidario.org>
+#    Copyright (C) 2011-2016 GNU Solidario <health at gnusolidario.org>
 #
 #
 #    This program is free software: you can redistribute it and/or modify
diff --git a/health_qrcodes.py b/health_qrcodes.py
index ff6dd67..54d2453 100644
--- a/health_qrcodes.py
+++ b/health_qrcodes.py
@@ -2,8 +2,8 @@
 ##############################################################################
 #
 #    GNU Health: The Free Health and Hospital Information System
-#    Copyright (C) 2008-2015 Luis Falcon <lfalcon at gnusolidario.org>
-#    Copyright (C) 2011-2015 GNU Solidario <health at gnusolidario.org>
+#    Copyright (C) 2008-2016 Luis Falcon <lfalcon at gnusolidario.org>
+#    Copyright (C) 2011-2016 GNU Solidario <health at gnusolidario.org>
 #
 #
 #    This program is free software: you can redistribute it and/or modify
@@ -34,8 +34,11 @@ class Patient(ModelSQL, ModelView):
     'Patient'
     __name__ = 'gnuhealth.patient'
 
+    # Add the QR Code to the Patient
+    qr = fields.Function(fields.Binary('QR Code'), 'make_qrcode')
+
     def make_qrcode(self, name):
-# Create the QR code
+    # Create the QR code
 
         patient_puid = self.puid or ''
 
@@ -43,7 +46,7 @@ class Patient(ModelSQL, ModelView):
 
         patient_rh = self.rh or ''
 
-        patient_sex = self.sex or ''
+        patient_gender = self.gender or ''
 
         patient_dob = self.dob or ''
 
@@ -58,33 +61,34 @@ class Patient(ModelSQL, ModelView):
             + '\nName: ' + patient_lastname + ',' \
                 + self.name.name \
             + '\nPUID: ' + patient_puid \
-            + '\nSex: ' + patient_sex \
+            + '\nGender: ' + patient_gender \
             + '\nDoB: ' + str(patient_dob) \
             + '\nBlood Type: ' + patient_blood_type \
                 + ' ' + patient_rh
 
+        
         qr_image = qrcode.make(qr_string)
+         
+        # Make a PNG image from PIL without the need to create a temp file
 
-# Make a PNG image from PIL without the need to create a temp file
         holder = StringIO.StringIO()
         qr_image.save(holder)
         qr_png = holder.getvalue()
         holder.close()
 
-        return  buffer(qr_png)
-
-# Add the QR Code to the Patient
-    qr = fields.Function(fields.Binary('QR Code'), 'make_qrcode')
-
-
+        return bytearray(qr_png)
+        
 # Add the QR code field and image to the Newborn
 
 class Newborn(ModelSQL, ModelView):
     'NewBorn'
     __name__ = 'gnuhealth.newborn'
 
+    # Add the QR Code to the Newborn
+    qr = fields.Function(fields.Binary('QR Code'), 'make_qrcode')
+
     def make_qrcode(self, name):
-# Create the QR code
+    # Create the QR code
 
         if self.mother:
             if self.mother.name.lastname:
@@ -114,16 +118,16 @@ class Newborn(ModelSQL, ModelView):
             + '\nSex: ' + newborn_sex \
             + '\nDoB: ' + str(newborn_birth_date)
 
+
         qr_image = qrcode.make(qr_string)
+         
+        # Make a PNG image from PIL without the need to create a temp file
 
-# Make a PNG image from PIL without the need to create a temp file
         holder = StringIO.StringIO()
         qr_image.save(holder)
         qr_png = holder.getvalue()
         holder.close()
 
-        return buffer(qr_png)
-
-# Add the QR Code to the Newborn
-    qr = fields.Function(fields.Binary('QR Code'), 'make_qrcode')
+        return bytearray(qr_png)
 
+        
diff --git a/locale/ar.po b/locale/ar.po
new file mode 100644
index 0000000..65ecbc5
--- /dev/null
+++ b/locale/ar.po
@@ -0,0 +1,28 @@
+# Nab3a <asn09 at aub.edu.lb>, 2016.
+msgid ""
+msgstr ""
+"PO-Revision-Date: 2016-01-08 12:32+0000\n"
+"Last-Translator: Nab3a <asn09 at aub.edu.lb>\n"
+"Language: ar\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
+"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"
+"X-Generator: Pootle 2.5.0\n"
+"X-POOTLE-MTIME: 1452256365.0\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr "رمز QR"
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr "رمز QR"
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr "معرف المولود - QR"
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr "بطاقات الهوية - QR"
diff --git a/locale/de_AT.po b/locale/de_AT.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/de_AT.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/el_GR.po b/locale/el_GR.po
index 0fc1fb0..8750470 100644
--- a/locale/el_GR.po
+++ b/locale/el_GR.po
@@ -1,112 +1,19 @@
-# 
-# Translators:
-# kvisitor <kvisitor at gnugr.org>, 2012
+#
 msgid ""
-msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-13 14:55+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: Greek (http://www.transifex.com/projects/p/GNU_Health/language/el/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: el\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
-msgstr "Γραμμωτός Κώδικας QR δύο διαστάσεων"
+msgstr ""
 
 msgctxt "field:gnuhealth.patient,qr:"
 msgid "QR Code"
-msgstr "Γραμμωτός Κώδικας QR δύο διαστάσεων"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_newborn_qrcard"
 msgid "Newborn ID - QR"
-msgstr "Νεογνικός κωδικός ID - Γραμμωτός Κώδικας QR δύο διαστάσεων"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
-msgstr "Κάρτες ταυτοποίησης ID - "
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "Ημερομ. γενν."
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "Θήλυ"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "Άρρην"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "Μητέρα"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
 msgstr ""
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "Όνομα"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "και"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "εκ"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "γρ"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "Ομάδα αίματος"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "Ημερομ. γενν."
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "Θήλυ"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "Άρρην"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "Όνομα"
diff --git a/locale/en_GB.po b/locale/en_GB.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/en_GB.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/es_AR.po b/locale/es_AR.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/es_AR.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/es_EC.po b/locale/es_EC.po
new file mode 100644
index 0000000..e81ef38
--- /dev/null
+++ b/locale/es_EC.po
@@ -0,0 +1,27 @@
+# Fabyc <fabianc7 at gmail.com>, 2016.
+msgid ""
+msgstr ""
+"PO-Revision-Date: 2016-01-08 20:51+0000\n"
+"Last-Translator: Fabyc <fabianc7 at gmail.com>\n"
+"Language: es_EC\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n !=1);\n"
+"X-Generator: Pootle 2.5.0\n"
+"X-POOTLE-MTIME: 1452286276.0\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr "Código QR"
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr "Código QR"
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr "ID del recién nacido - QR"
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr "Carnets de Identidad - QR"
diff --git a/locale/es_ES.po b/locale/es_ES.po
index ef451e5..8750470 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -1,113 +1,19 @@
-# 
-# Translators:
-# Carlos <carloschebair at gmail.com>, 2013
-# cristina <cmelgosa at thymbra.com>, 2012
+#
 msgid ""
-msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-30 17:11+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: Spanish (http://www.transifex.com/projects/p/GNU_Health/language/es/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: es\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
-msgstr "QR Code"
+msgstr ""
 
 msgctxt "field:gnuhealth.patient,qr:"
 msgid "QR Code"
-msgstr "QR Code"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_newborn_qrcard"
 msgid "Newborn ID - QR"
-msgstr "Recién Nacido ID - QR"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
-msgstr "ID Cards - QR"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "Fecha de nacimiento"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "Femenino"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "UP"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "Masculino"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "Madre"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
-msgstr "Madre"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "Nombre"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "y"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "cm"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "gr"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "Grupo Sanguíneo"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "Fecha de nacimiento"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "Femenino"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "Masculino"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "Nombre"
+msgstr ""
diff --git a/locale/es_MX.po b/locale/es_MX.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/es_MX.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/es_PE.po b/locale/es_PE.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/es_PE.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 3215a65..8750470 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -1,112 +1,19 @@
-# 
-# Translators:
-# Eric Vernichon <eric at vernichon.fr>, 2012
+#
 msgid ""
-msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-13 14:55+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: French (France) (http://www.transifex.com/projects/p/GNU_Health/language/fr_FR/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: fr_FR\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
-msgstr "QR Code"
+msgstr ""
 
 msgctxt "field:gnuhealth.patient,qr:"
 msgid "QR Code"
-msgstr "QR Code"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_newborn_qrcard"
 msgid "Newborn ID - QR"
-msgstr "ID du nouveau-né - QR"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
-msgstr "Cartes d'identité - QR"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "Date de naissance"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "Féminin"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "Masculin"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "Mère"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
 msgstr ""
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "Nom"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "et"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "cm"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "gr"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "Groupe sanguin"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "Date de naissance"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "Féminin"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "Masculin"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "Nom"
diff --git a/locale/it_IT.po b/locale/it_IT.po
index f88757c..8750470 100644
--- a/locale/it_IT.po
+++ b/locale/it_IT.po
@@ -1,112 +1,19 @@
-# 
-# Translators:
-# Selene <scordara at thymbra.com>, 2012
+#
 msgid ""
-msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-13 14:55+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: Italian (http://www.transifex.com/projects/p/GNU_Health/language/it/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: it\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
-msgstr "Codice QR"
+msgstr ""
 
 msgctxt "field:gnuhealth.patient,qr:"
 msgid "QR Code"
-msgstr "Codice QR"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_newborn_qrcard"
 msgid "Newborn ID - QR"
-msgstr "Identificazione - QR Neonato"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
-msgstr "Carta d`Identità - QR"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "Data di nascita"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "Femmina"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "Maschio"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "Madre"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
 msgstr ""
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "Nome"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "e"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "cm"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "gr"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "Gruppo sanguigno"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "Data di nascita"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "Femmina"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "Maschio"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "Nome"
diff --git a/locale/kn.po b/locale/kn.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/kn.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/lo.po b/locale/lo.po
new file mode 100644
index 0000000..8750470
--- /dev/null
+++ b/locale/lo.po
@@ -0,0 +1,19 @@
+#
+msgid ""
+msgstr "Content-Type: text/plain; charset=utf-8\n"
+
+msgctxt "field:gnuhealth.newborn,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "field:gnuhealth.patient,qr:"
+msgid "QR Code"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_newborn_qrcard"
+msgid "Newborn ID - QR"
+msgstr ""
+
+msgctxt "model:ir.action,name:report_patient_qrcard"
+msgid "ID Cards - QR"
+msgstr ""
diff --git a/locale/pt_BR.po b/locale/pt_BR.po
index 0016f62..32392bf 100644
--- a/locale/pt_BR.po
+++ b/locale/pt_BR.po
@@ -1,19 +1,14 @@
-# 
-# Translators:
-# Daniel Linhares <danielinhares at gmail.com>, 2012
+# rvnovaes <rvnovaes at gmail.com>, 2016.
 msgid ""
 msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-13 14:55+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/GNU_Health/language/pt_BR/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
+"PO-Revision-Date: 2015-12-28 00:01+0000\n"
+"Last-Translator: rvnovaes <rvnovaes at gmail.com>\n"
 "Language: pt_BR\n"
-"Plural-Forms: nplurals=2; plural=(n > 1);\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Pootle 2.5.0\n"
+"X-POOTLE-MTIME: 1451260884.0\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
@@ -30,83 +25,3 @@ msgstr "Código Recém-nascido - RR"
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
 msgstr "Código  Cartões - RR"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "DoB"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "Feminino"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "Identificação"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "Masculino"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "Mãe"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
-msgstr "Mãe"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "Nome"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "PU"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "e"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "cm"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "gr"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr ","
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "Tipo Sanguíneo"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "DoB"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "Feminino"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "Masculino"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "Nome"
diff --git a/locale/zh_CN.po b/locale/zh_CN.po
index 65f2a10..8750470 100644
--- a/locale/zh_CN.po
+++ b/locale/zh_CN.po
@@ -1,113 +1,19 @@
-# 
-# Translators:
-# haiker <huzech at 163.com>, 2012
-# Zenith Zhao <>, 2012
+#
 msgid ""
-msgstr ""
-"Project-Id-Version: GNU Health\n"
-"Report-Msgid-Bugs-To: https://savannah.gnu.org/bugs/?group=health\n"
-"POT-Creation-Date: 2015-01-27 11:17+0000\n"
-"PO-Revision-Date: 2015-01-13 14:55+0000\n"
-"Last-Translator: Bruno Villasanti <bvillasanti at thymbra.com>\n"
-"Language-Team: Chinese (http://www.transifex.com/projects/p/GNU_Health/language/zh/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: zh\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
+msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "field:gnuhealth.newborn,qr:"
 msgid "QR Code"
-msgstr "QR码"
+msgstr ""
 
 msgctxt "field:gnuhealth.patient,qr:"
 msgid "QR Code"
-msgstr "QR码"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_newborn_qrcard"
 msgid "Newborn ID - QR"
-msgstr "新生儿ID - QR"
+msgstr ""
 
 msgctxt "model:ir.action,name:report_patient_qrcard"
 msgid "ID Cards - QR"
-msgstr "ID卡 - QR"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ","
-msgstr "。"
-
-msgctxt "odt:newborn.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "DoB"
-msgstr "出生日期"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Female"
-msgstr "女"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "ID"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Male"
-msgstr "男"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother"
-msgstr "母亲"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Mother's"
 msgstr ""
-
-msgctxt "odt:newborn.qrcard:"
-msgid "Name"
-msgstr "名字"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "PU"
-msgstr "ID"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "and"
-msgstr "与"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "cm"
-msgstr "厘米"
-
-msgctxt "odt:newborn.qrcard:"
-msgid "gr"
-msgstr "gr"
-
-msgctxt "odt:patient.qrcard:"
-msgid ","
-msgstr "。"
-
-msgctxt "odt:patient.qrcard:"
-msgid ":"
-msgstr ":"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Blood Type"
-msgstr "血型"
-
-msgctxt "odt:patient.qrcard:"
-msgid "DoB"
-msgstr "出生日期"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Female"
-msgstr "女"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Male"
-msgstr "男"
-
-msgctxt "odt:patient.qrcard:"
-msgid "Name"
-msgstr "名字"
diff --git a/report/newborn_card.odt b/report/newborn_card.odt
index e107501..0fc4a59 100644
Binary files a/report/newborn_card.odt and b/report/newborn_card.odt differ
diff --git a/report/patient_card.odt b/report/patient_card.odt
index 6803799..e84de94 100644
Binary files a/report/patient_card.odt and b/report/patient_card.odt differ
diff --git a/setup.py b/setup.py
index 74f67e5..df5fdb1 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ info = dict(config.items('tryton'))
 for key in ('depends', 'extras_depend', 'xml'):
     if key in info:
         info[key] = info[key].strip().splitlines()
-major_version, minor_version = 3, 4
+major_version, minor_version = 3, 8
 
 requires = ['qrcode']
 
diff --git a/tests/test_health_qrcodes.py b/tests/test_health_qrcodes.py
index 1667534..0084aaf 100644
--- a/tests/test_health_qrcodes.py
+++ b/tests/test_health_qrcodes.py
@@ -1,41 +1,17 @@
-#!/usr/bin/env python
-
-import sys, os
-DIR = os.path.abspath(os.path.normpath(os.path.join(__file__,
-    '..', '..', '..', '..', '..', 'trytond')))
-if os.path.isdir(DIR):
-    sys.path.insert(0, os.path.dirname(DIR))
-
 import unittest
 import trytond.tests.test_tryton
-from trytond.tests.test_tryton import test_view, test_depends
+from trytond.tests.test_tryton import ModuleTestCase
 
 
-class HealthQrcodesTestCase(unittest.TestCase):
+class HealthQRcodesTestCase(ModuleTestCase):
     '''
-    Test HealthQrcodes module.
+    Test Health QR codes module.
     '''
+    module = 'health_qrcodes'
 
-    def setUp(self):
-        trytond.tests.test_tryton.install_module('health_qrcodes')
-
-    def test0005views(self):
-        '''
-        Test views.
-        '''
-        test_view('health_qrcodes')
-
-    def test0006depends(self):
-        '''
-        Test depends.
-        '''
-        test_depends()
 
 def suite():
     suite = trytond.tests.test_tryton.suite()
     suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
-        HealthQrcodesTestCase))
+        HealthQRcodesTestCase))
     return suite
-
-if __name__ == '__main__':
-    unittest.TextTestRunner(verbosity=2).run(suite())
diff --git a/tryton.cfg b/tryton.cfg
index e80c06b..6f6542b 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=2.8.1
+version=3.0.1
 depends:
     health
     health_pediatrics
diff --git a/trytond_health_qrcodes.egg-info/PKG-INFO b/trytond_health_qrcodes.egg-info/PKG-INFO
index cd6ba52..2062e61 100644
--- a/trytond_health_qrcodes.egg-info/PKG-INFO
+++ b/trytond_health_qrcodes.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-health-qrcodes
-Version: 2.8.1
+Version: 3.0.1
 Summary: GNU Health Quick Recognition - QR codes Module
 Home-page: http://health.gnu.org/
 Author: GNU Solidario
diff --git a/trytond_health_qrcodes.egg-info/SOURCES.txt b/trytond_health_qrcodes.egg-info/SOURCES.txt
index 43c4965..15422bd 100644
--- a/trytond_health_qrcodes.egg-info/SOURCES.txt
+++ b/trytond_health_qrcodes.egg-info/SOURCES.txt
@@ -10,11 +10,20 @@ setup.py
 ./health_qrcodes_view.xml
 ./tryton.cfg
 ./doc/index.rst
+./locale/ar.po
+./locale/de_AT.po
 ./locale/el_GR.po
+./locale/en_GB.po
+./locale/es_AR.po
+./locale/es_EC.po
 ./locale/es_ES.po
+./locale/es_MX.po
+./locale/es_PE.po
 ./locale/fr_FR.po
 ./locale/it_IT.po
 ./locale/ja_JP.po
+./locale/kn.po
+./locale/lo.po
 ./locale/pt_BR.po
 ./locale/zh_CN.po
 ./report/newborn_card.odt
@@ -23,11 +32,20 @@ setup.py
 ./tests/test_health_qrcodes.py
 ./view/gnuhealth_patient_form.xml
 ./view/newborn_form.xml
+locale/ar.po
+locale/de_AT.po
 locale/el_GR.po
+locale/en_GB.po
+locale/es_AR.po
+locale/es_EC.po
 locale/es_ES.po
+locale/es_MX.po
+locale/es_PE.po
 locale/fr_FR.po
 locale/it_IT.po
 locale/ja_JP.po
+locale/kn.po
+locale/lo.po
 locale/pt_BR.po
 locale/zh_CN.po
 report/newborn_card.odt
diff --git a/trytond_health_qrcodes.egg-info/requires.txt b/trytond_health_qrcodes.egg-info/requires.txt
index 5d328da..20d7efc 100644
--- a/trytond_health_qrcodes.egg-info/requires.txt
+++ b/trytond_health_qrcodes.egg-info/requires.txt
@@ -1,4 +1,4 @@
 qrcode
-trytond_health == 2.8.1
-trytond_health_pediatrics == 2.8.1
-trytond >= 3.4, < 3.5
+trytond_health == 3.0.1
+trytond_health_pediatrics == 3.0.1
+trytond >= 3.8, < 3.9
diff --git a/view/newborn_form.xml b/view/newborn_form.xml
index 68110d8..46b3403 100644
--- a/view/newborn_form.xml
+++ b/view/newborn_form.xml
@@ -2,7 +2,7 @@
 <data>
     <xpath expr="//group[@id="group_newborn_notes"]" position="after">
         <group id="group_qr">
-            <field name="qr" widget="image"/>
+            <field xfill="0" xexpand="1" name="qr" widget="image"/>
         </group>
     </xpath>
 </data>
-- 
tryton-modules-health-qrcodes



More information about the tryton-debian-vcs mailing list