[tryton-debian-vcs] tryton-modules-account-deposit branch upstream updated. upstream/3.8.0-2-g16a5168

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Thu Jun 2 16:05:28 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-account-deposit.git;a=commitdiff;h=upstream/3.8.0-2-g16a5168

commit 16a5168364fa444b9d4e0ecbefaedeeb4f0b6cdc
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 27 18:35:05 2016 +0200

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

diff --git a/CHANGELOG b/CHANGELOG
index b43a07b..f8e909e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.0.1 - 2016-05-11
+* Bug fixes (see mercurial logs for details)
+
 Version 4.0.0 - 2016-05-02
 * Bug fixes (see mercurial logs for details)
 * Add Python3 support
diff --git a/PKG-INFO b/PKG-INFO
index d2539b1..35c7bb2 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond_account_deposit
-Version: 4.0.0
+Version: 4.0.1
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/locale/es_CO.po b/locale/es_CO.po
index 80b5928..b3f41bb 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -5,6 +5,8 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 msgctxt "error:account.invoice:"
 msgid "The account \"%(account)s\" for party \"%(party)s\" has not enough deposit."
 msgstr ""
+"La cuenta \"%(account)s\" del tercero \"%(party)s\" no tiene suficiente "
+"depósito."
 
 msgctxt "field:account.invoice.recall_deposit.start,account:"
 msgid "Account"
@@ -42,10 +44,9 @@ msgctxt "selection:account.account.template,kind:"
 msgid "Deposit"
 msgstr "Depósito"
 
-#, fuzzy
 msgctxt "view:account.invoice.recall_deposit.start:"
 msgid "Recall Deposit"
-msgstr "Recordar Deposito"
+msgstr "Recordar Depósito"
 
 msgctxt "view:account.invoice:"
 msgid "Recall Deposit"
diff --git a/locale/lo_LA.po b/locale/lo_LA.po
index 60c5dea..e29acb9 100644
--- a/locale/lo_LA.po
+++ b/locale/lo_LA.po
@@ -4,56 +4,56 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:account.invoice:"
 msgid "The account \"%(account)s\" for party \"%(party)s\" has not enough deposit."
-msgstr ""
+msgstr "ບັນຊີ \"%(account)s\" ສຳລັບພາກສ່ວນ \"%(party)s\" ມີຍອດມັດຈໍາບໍ່ພຽງພໍ."
 
 msgctxt "field:account.invoice.recall_deposit.start,account:"
 msgid "Account"
-msgstr ""
+msgstr "ບັນຊີ"
 
 msgctxt "field:account.invoice.recall_deposit.start,company:"
 msgid "Company"
-msgstr ""
+msgstr "ບໍລິສັດ"
 
 msgctxt "field:account.invoice.recall_deposit.start,description:"
 msgid "Description"
-msgstr ""
+msgstr "ເນື້ອໃນລາຍການ"
 
 msgctxt "field:account.invoice.recall_deposit.start,id:"
 msgid "ID"
-msgstr ""
+msgstr "ເລກລໍາດັບ"
 
 msgctxt "field:party.party,deposit:"
 msgid "Deposit"
-msgstr ""
+msgstr "ເງິນມັດຈໍາ"
 
 msgctxt "model:account.invoice.recall_deposit.start,name:"
 msgid "Recall deposit on Invoice"
-msgstr ""
+msgstr "ຮຽກເງິນມັດຈໍາໃນໃບເກັບເງິນ"
 
 msgctxt "model:ir.action,name:wizard_recall_deposit"
 msgid "Recall Deposit"
-msgstr ""
+msgstr "ຮຽກເງິນມັດຈໍາຄືນ"
 
 msgctxt "selection:account.account,kind:"
 msgid "Deposit"
-msgstr ""
+msgstr "ເງິນມັດຈໍາ"
 
 msgctxt "selection:account.account.template,kind:"
 msgid "Deposit"
-msgstr ""
+msgstr "ເງິນມັດຈໍາ"
 
 msgctxt "view:account.invoice.recall_deposit.start:"
 msgid "Recall Deposit"
-msgstr ""
+msgstr "ຮຽກເງິນມັດຈໍາຄືນ"
 
 msgctxt "view:account.invoice:"
 msgid "Recall Deposit"
-msgstr ""
+msgstr "ຮຽກເງິນມັດຈໍາຄືນ"
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,end:"
 msgid "Cancel"
-msgstr ""
+msgstr "ຍົກເລີກ"
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,recall:"
 msgid "Recall"
-msgstr ""
+msgstr "ຮຽກຄືນ"
diff --git a/tryton.cfg b/tryton.cfg
index 4edc142..8eaf5e2 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=4.0.0
+version=4.0.1
 depends:
     account
     account_invoice
diff --git a/trytond_account_deposit.egg-info/PKG-INFO b/trytond_account_deposit.egg-info/PKG-INFO
index 8d5aa02..7d0b474 100644
--- a/trytond_account_deposit.egg-info/PKG-INFO
+++ b/trytond_account_deposit.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: trytond-account-deposit
-Version: 4.0.0
+Version: 4.0.1
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
diff --git a/trytond_account_deposit.egg-info/SOURCES.txt b/trytond_account_deposit.egg-info/SOURCES.txt
index 1ea3020..ecb1690 100644
--- a/trytond_account_deposit.egg-info/SOURCES.txt
+++ b/trytond_account_deposit.egg-info/SOURCES.txt
@@ -30,6 +30,7 @@ tryton.cfg
 ./minimal_chart_es.xml
 ./minimal_chart_fr.xml
 ./minimal_chart_nl.xml
+./minimal_chart_pt.xml
 ./minimal_chart_ru.xml
 ./minimal_chart_sl.xml
 ./party.py
@@ -48,11 +49,13 @@ tryton.cfg
 ./locale/hu_HU.po
 ./locale/it_IT.po
 ./locale/ja_JP.po
+./locale/lo_LA.po
 ./locale/lt_LT.po
 ./locale/nl_NL.po
 ./locale/pt_BR.po
 ./locale/ru_RU.po
 ./locale/sl_SI.po
+./locale/zh_CN.po
 ./tests/__init__.py
 ./tests/scenario_deposit.rst
 ./tests/test_account_deposit.py
diff --git a/trytond_account_deposit.egg-info/requires.txt b/trytond_account_deposit.egg-info/requires.txt
index 3b494ae..0273685 100644
--- a/trytond_account_deposit.egg-info/requires.txt
+++ b/trytond_account_deposit.egg-info/requires.txt
@@ -4,4 +4,4 @@ trytond_account >= 4.0, < 4.1
 trytond_account_invoice >= 4.0, < 4.1
 trytond_company >= 4.0, < 4.1
 trytond_party >= 4.0, < 4.1
-trytond >= 4.0, < 4.1
\ No newline at end of file
+trytond >= 4.0, < 4.1
commit 6b8e47e6451af3a882307d7747e7f091acefcdd6
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Fri May 27 18:25:45 2016 +0200

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

diff --git a/CHANGELOG b/CHANGELOG
index ef76b2a..b43a07b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+Version 4.0.0 - 2016-05-02
+* Bug fixes (see mercurial logs for details)
+* Add Python3 support
+
 Version 3.8.0 - 2015-11-02
 * Bug fixes (see mercurial logs for details)
 
diff --git a/COPYRIGHT b/COPYRIGHT
index a085246..a29b425 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2014-2015 Cédric Krier.
-Copyright (C) 2014-2015 B2CK SPRL.
+Copyright (C) 2014-2016 Cédric Krier.
+Copyright (C) 2014-2016 B2CK SPRL.
 
 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/PKG-INFO b/PKG-INFO
index 54c62aa..d2539b1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_account_deposit
-Version: 3.8.0
+Version: 4.0.0
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.8/
+Download-URL: http://downloads.tryton.org/4.0/
 Description: trytond_account_deposit
         =======================
         
@@ -54,6 +54,7 @@ Classifier: Intended Audience :: Legal Industry
 Classifier: License :: OSI Approved :: GNU General Public License (GPL)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
+Classifier: Natural Language :: Chinese (Simplified)
 Classifier: Natural Language :: Czech
 Classifier: Natural Language :: Dutch
 Classifier: Natural Language :: English
@@ -67,6 +68,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/account.py b/account.py
index 20b0294..9cf5327 100644
--- a/account.py
+++ b/account.py
@@ -3,10 +3,10 @@
 from trytond.pool import PoolMeta
 
 __all__ = ['AccountTemplate', 'Account']
-__metaclass__ = PoolMeta
 
 
 class AccountTemplate:
+    __metaclass__ = PoolMeta
     __name__ = 'account.account.template'
 
     @classmethod
@@ -16,6 +16,7 @@ class AccountTemplate:
 
 
 class Account:
+    __metaclass__ = PoolMeta
     __name__ = 'account.account'
 
     @classmethod
diff --git a/invoice.py b/invoice.py
index f92fdfb..18871bc 100644
--- a/invoice.py
+++ b/invoice.py
@@ -8,10 +8,10 @@ from trytond.transaction import Transaction
 
 __all__ = ['Invoice', 'InvoiceLine',
     'DepositRecall', 'DepositRecallStart']
-__metaclass__ = PoolMeta
 
 
 class Invoice:
+    __metaclass__ = PoolMeta
     __name__ = 'account.invoice'
 
     @classmethod
@@ -66,6 +66,7 @@ class Invoice:
 
 
 class InvoiceLine:
+    __metaclass__ = PoolMeta
     __name__ = 'account.invoice.line'
 
     @classmethod
diff --git a/locale/de_DE.po b/locale/de_DE.po
index 4d962fb..ca485b5 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -26,14 +26,6 @@ msgctxt "field:party.party,deposit:"
 msgid "Deposit"
 msgstr "Anzahlung"
 
-msgctxt "model:account.account.template,name:"
-msgid "Deposit"
-msgstr "Anzahlung"
-
-msgctxt "model:account.account.type.template,name:"
-msgid "Unearned Revenues"
-msgstr "Anzahlungen"
-
 msgctxt "model:account.invoice.recall_deposit.start,name:"
 msgid "Recall deposit on Invoice"
 msgstr "Anzahlung auf Rechnung verrechnen"
diff --git a/locale/es_MX.po b/locale/es_MX.po
index dfa492c..3e92ea3 100644
--- a/locale/es_MX.po
+++ b/locale/es_MX.po
@@ -44,13 +44,15 @@ msgctxt "selection:account.account.template,kind:"
 msgid "Deposit"
 msgstr "Anticipo"
 
+#, fuzzy
 msgctxt "view:account.invoice.recall_deposit.start:"
 msgid "Recall Deposit"
-msgstr ""
+msgstr "Recuperar anticipo"
 
+#, fuzzy
 msgctxt "view:account.invoice:"
 msgid "Recall Deposit"
-msgstr ""
+msgstr "Recuperar anticipo"
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,end:"
 msgid "Cancel"
diff --git a/locale/es_MX.po b/locale/lo_LA.po
similarity index 78%
copy from locale/es_MX.po
copy to locale/lo_LA.po
index dfa492c..60c5dea 100644
--- a/locale/es_MX.po
+++ b/locale/lo_LA.po
@@ -5,44 +5,42 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 msgctxt "error:account.invoice:"
 msgid "The account \"%(account)s\" for party \"%(party)s\" has not enough deposit."
 msgstr ""
-"La cuenta \"%(account)s\" de la entidad \"%(party)s\" no tiene suficiente "
-"anticipo."
 
 msgctxt "field:account.invoice.recall_deposit.start,account:"
 msgid "Account"
-msgstr "Cuenta"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,company:"
 msgid "Company"
-msgstr "Empresa"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,description:"
 msgid "Description"
-msgstr "Descripción"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,id:"
 msgid "ID"
-msgstr "ID"
+msgstr ""
 
 msgctxt "field:party.party,deposit:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "model:account.invoice.recall_deposit.start,name:"
 msgid "Recall deposit on Invoice"
-msgstr "Recuperación de anticipo en factura"
+msgstr ""
 
 msgctxt "model:ir.action,name:wizard_recall_deposit"
 msgid "Recall Deposit"
-msgstr "Recuperar anticipo"
+msgstr ""
 
 msgctxt "selection:account.account,kind:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "selection:account.account.template,kind:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "view:account.invoice.recall_deposit.start:"
 msgid "Recall Deposit"
@@ -54,8 +52,8 @@ msgstr ""
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,end:"
 msgid "Cancel"
-msgstr "Cancelar"
+msgstr ""
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,recall:"
 msgid "Recall"
-msgstr "Recuperar"
+msgstr ""
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
index f5b83e8..fe207bc 100644
--- a/locale/sl_SI.po
+++ b/locale/sl_SI.po
@@ -26,14 +26,6 @@ msgctxt "field:party.party,deposit:"
 msgid "Deposit"
 msgstr "Depozit"
 
-msgctxt "model:account.account.template,name:"
-msgid "Deposit"
-msgstr "Depozit"
-
-msgctxt "model:account.account.type.template,name:"
-msgid "Unearned Revenues"
-msgstr "Nezasluženi prihodki"
-
 msgctxt "model:account.invoice.recall_deposit.start,name:"
 msgid "Recall deposit on Invoice"
 msgstr "Odpoklic depozita za račun"
diff --git a/locale/es_MX.po b/locale/zh_CN.po
similarity index 78%
copy from locale/es_MX.po
copy to locale/zh_CN.po
index dfa492c..60c5dea 100644
--- a/locale/es_MX.po
+++ b/locale/zh_CN.po
@@ -5,44 +5,42 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 msgctxt "error:account.invoice:"
 msgid "The account \"%(account)s\" for party \"%(party)s\" has not enough deposit."
 msgstr ""
-"La cuenta \"%(account)s\" de la entidad \"%(party)s\" no tiene suficiente "
-"anticipo."
 
 msgctxt "field:account.invoice.recall_deposit.start,account:"
 msgid "Account"
-msgstr "Cuenta"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,company:"
 msgid "Company"
-msgstr "Empresa"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,description:"
 msgid "Description"
-msgstr "Descripción"
+msgstr ""
 
 msgctxt "field:account.invoice.recall_deposit.start,id:"
 msgid "ID"
-msgstr "ID"
+msgstr ""
 
 msgctxt "field:party.party,deposit:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "model:account.invoice.recall_deposit.start,name:"
 msgid "Recall deposit on Invoice"
-msgstr "Recuperación de anticipo en factura"
+msgstr ""
 
 msgctxt "model:ir.action,name:wizard_recall_deposit"
 msgid "Recall Deposit"
-msgstr "Recuperar anticipo"
+msgstr ""
 
 msgctxt "selection:account.account,kind:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "selection:account.account.template,kind:"
 msgid "Deposit"
-msgstr "Anticipo"
+msgstr ""
 
 msgctxt "view:account.invoice.recall_deposit.start:"
 msgid "Recall Deposit"
@@ -54,8 +52,8 @@ msgstr ""
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,end:"
 msgid "Cancel"
-msgstr "Cancelar"
+msgstr ""
 
 msgctxt "wizard_button:account.invoice.recall_deposit,start,recall:"
 msgid "Recall"
-msgstr "Recuperar"
+msgstr ""
diff --git a/minimal_chart.xml b/minimal_chart.xml
index 6a02dda..e32d241 100644
--- a/minimal_chart.xml
+++ b/minimal_chart.xml
@@ -12,6 +12,7 @@ this repository contains the full copyright notices and license terms. -->
             <field name="name" lang="es">Unearned Revenues</field>
             <field name="name" lang="fr">Unearned Revenues</field>
             <field name="name" lang="nl">Unearned Revenues</field>
+            <field name="name" lang="pt">Receitas Não Auferidas</field>
             <field name="name" lang="ru">Unearned Revenues</field>
             <field name="name" lang="sl">Unearned Revenues</field>
             <field name="parent"
@@ -27,6 +28,7 @@ this repository contains the full copyright notices and license terms. -->
             <field name="name" lang="es">Deposit</field>
             <field name="name" lang="fr">Deposit</field>
             <field name="name" lang="nl">Deposit</field>
+            <field name="name" lang="pt">Depósito</field>
             <field name="name" lang="ru">Deposit</field>
             <field name="name" lang="sl">Deposit</field>
             <field name="type"
diff --git a/minimal_chart_pt.xml b/minimal_chart_pt.xml
new file mode 100644
index 0000000..15c0b6e
--- /dev/null
+++ b/minimal_chart_pt.xml
@@ -0,0 +1,40 @@
+<?xml version="1.0"?>
+<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
+this repository contains the full copyright notices and license terms. -->
+<tryton>
+    <data>
+        <record id="account_type_template_liability_current_unearned_revenues_pt" model="account.account.type.template">
+            
+            
+            
+            
+            
+            
+            
+            <field name="name">Receitas Não Auferidas</field>
+            
+            
+            <field name="parent" ref="account.account_type_template_liability_current_pt"/>
+            <field name="sequence" eval="30"/>
+        </record>
+
+        <record id="account_template_deposit_pt" model="account.account.template">
+            
+            
+            
+            
+            
+            
+            
+            <field name="name">Depósito</field>
+            
+            
+            <field name="type" ref="account_type_template_liability_current_unearned_revenues_pt"/>
+            <field name="reconcile" eval="True"/>
+            <field name="deferral" eval="True"/>
+            <field name="parent" ref="account.account_template_root_pt"/>
+            <field name="kind">deposit</field>
+            <field name="party_required" eval="True"/>
+        </record>
+    </data>
+</tryton>
diff --git a/party.py b/party.py
index f3ffb59..198f030 100644
--- a/party.py
+++ b/party.py
@@ -13,10 +13,10 @@ from trytond.tools import grouped_slice, reduce_ids
 
 
 __all__ = ['Party']
-__metaclass__ = PoolMeta
 
 
 class Party:
+    __metaclass__ = PoolMeta
     __name__ = 'party.party'
 
     deposit = fields.Function(fields.Numeric('Deposit'),
@@ -28,7 +28,7 @@ class Party:
         MoveLine = pool.get('account.move.line')
         Account = pool.get('account.account')
         User = pool.get('res.user')
-        cursor = Transaction().cursor
+        cursor = Transaction().connection.cursor()
 
         line = MoveLine.__table__()
         account = Account.__table__()
@@ -97,20 +97,16 @@ class Party:
         'Return the deposit account balance (debit - credit) for the party'
         pool = Pool()
         MoveLine = pool.get('account.move.line')
-        Account = pool.get('account.account')
-        cursor = Transaction().cursor
+        transaction = Transaction()
+        cursor = transaction.connection.cursor()
 
         line = MoveLine.__table__()
-        account = Account.__table__()
-
         assert deposit_account.kind == 'deposit'
 
-        cursor.lock(MoveLine._table)
-
-        cursor.execute(*line.join(account, condition=account.id == line.account
-                ).select(
+        transaction.database.lock(transaction.connection, MoveLine._table)
+        cursor.execute(*line.select(
                 Sum(Coalesce(line.debit, 0) - Coalesce(line.credit, 0)),
-                where=(account.id == deposit_account.id)
+                where=(line.account == deposit_account.id)
                 & (line.party == self.id)
                 & (line.reconciliation == Null)))
         amount, = cursor.fetchone()
diff --git a/setup.py b/setup.py
index c9e99ad..d08c304 100644
--- a/setup.py
+++ b/setup.py
@@ -5,11 +5,17 @@
 from setuptools import setup
 import re
 import os
-import ConfigParser
+import io
+try:
+    from configparser import ConfigParser
+except ImportError:
+    from ConfigParser import ConfigParser
 
 
 def read(fname):
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+    return io.open(
+        os.path.join(os.path.dirname(__file__), fname),
+        'r', encoding='utf-8').read()
 
 
 def get_require_version(name):
@@ -21,7 +27,7 @@ def get_require_version(name):
         major_version, minor_version + 1)
     return require
 
-config = ConfigParser.ConfigParser()
+config = ConfigParser()
 config.readfp(open('tryton.cfg'))
 info = dict(config.items('tryton'))
 for key in ('depends', 'extras_depend', 'xml'):
@@ -43,7 +49,7 @@ if minor_version % 2:
 
 requires = ['python-dateutil', 'python-sql >= 0.4']
 for dep in info.get('depends', []):
-    if not re.match(r'(ir|res|webdav)(\W|$)', dep):
+    if not re.match(r'(ir|res)(\W|$)', dep):
         requires.append(get_require_version('trytond_%s' % dep))
 requires.append(get_require_version('trytond'))
 
@@ -82,6 +88,7 @@ setup(name=name,
         'License :: OSI Approved :: GNU General Public License (GPL)',
         'Natural Language :: Bulgarian',
         'Natural Language :: Catalan',
+        'Natural Language :: Chinese (Simplified)',
         'Natural Language :: Czech',
         'Natural Language :: Dutch',
         'Natural Language :: English',
@@ -95,6 +102,9 @@ setup(name=name,
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
         'Programming Language :: Python :: 2.7',
+        'Programming Language :: Python :: 3.3',
+        'Programming Language :: Python :: 3.4',
+        'Programming Language :: Python :: 3.5',
         'Programming Language :: Python :: Implementation :: CPython',
         'Programming Language :: Python :: Implementation :: PyPy',
         'Topic :: Office/Business',
@@ -111,4 +121,6 @@ setup(name=name,
     test_suite='tests',
     test_loader='trytond.test_loader:Loader',
     tests_require=tests_require,
+    use_2to3=True,
+    convert_2to_2_doctests=['tests/scenario_deposit.rst'],
     )
diff --git a/tests/__init__.py b/tests/__init__.py
index 78ab043..f2feba2 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,6 +1,9 @@
 # This file is part of Tryton.  The COPYRIGHT file at the top level of
 # this repository contains the full copyright notices and license terms.
 
-from .test_account_deposit import suite
+try:
+    from trytond.modules.account_deposit.tests.test_account_deposit import suite
+except ImportError:
+    from .test_account_deposit import suite
 
 __all__ = ['suite']
diff --git a/tests/test_account_deposit.py b/tests/test_account_deposit.py
index ddfabaa..2ee4446 100644
--- a/tests/test_account_deposit.py
+++ b/tests/test_account_deposit.py
@@ -5,6 +5,7 @@ import doctest
 from trytond.tests.test_tryton import suite as test_suite
 from trytond.tests.test_tryton import ModuleTestCase
 from trytond.tests.test_tryton import doctest_setup, doctest_teardown
+from trytond.tests.test_tryton import doctest_checker
 
 
 class AccountDepositTestCase(ModuleTestCase):
@@ -18,5 +19,6 @@ def suite():
             AccountDepositTestCase))
     suite.addTests(doctest.DocFileSuite('scenario_deposit.rst',
             setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
+            checker=doctest_checker,
             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
     return suite
diff --git a/tryton.cfg b/tryton.cfg
index 2d1768d..4edc142 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.8.0
+version=4.0.0
 depends:
     account
     account_invoice
@@ -17,6 +17,7 @@ xml:
     minimal_chart_es.xml
     minimal_chart_fr.xml
     minimal_chart_nl.xml
+    minimal_chart_pt.xml
     minimal_chart_ru.xml
     minimal_chart_sl.xml
 
diff --git a/trytond_account_deposit.egg-info/PKG-INFO b/trytond_account_deposit.egg-info/PKG-INFO
index b0d71f6..8d5aa02 100644
--- a/trytond_account_deposit.egg-info/PKG-INFO
+++ b/trytond_account_deposit.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-account-deposit
-Version: 3.8.0
+Version: 4.0.0
 Summary: Tryton module for accounting deposit
 Home-page: http://www.tryton.org/
 Author: Tryton
 Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.8/
+Download-URL: http://downloads.tryton.org/4.0/
 Description: trytond_account_deposit
         =======================
         
@@ -54,6 +54,7 @@ Classifier: Intended Audience :: Legal Industry
 Classifier: License :: OSI Approved :: GNU General Public License (GPL)
 Classifier: Natural Language :: Bulgarian
 Classifier: Natural Language :: Catalan
+Classifier: Natural Language :: Chinese (Simplified)
 Classifier: Natural Language :: Czech
 Classifier: Natural Language :: Dutch
 Classifier: Natural Language :: English
@@ -67,6 +68,9 @@ Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3.3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: Implementation :: CPython
 Classifier: Programming Language :: Python :: Implementation :: PyPy
 Classifier: Topic :: Office/Business
diff --git a/trytond_account_deposit.egg-info/SOURCES.txt b/trytond_account_deposit.egg-info/SOURCES.txt
index 1eb6f3d..1ea3020 100644
--- a/trytond_account_deposit.egg-info/SOURCES.txt
+++ b/trytond_account_deposit.egg-info/SOURCES.txt
@@ -13,6 +13,7 @@ minimal_chart_en.xml
 minimal_chart_es.xml
 minimal_chart_fr.xml
 minimal_chart_nl.xml
+minimal_chart_pt.xml
 minimal_chart_ru.xml
 minimal_chart_sl.xml
 party.xml
@@ -74,11 +75,13 @@ locale/fr_FR.po
 locale/hu_HU.po
 locale/it_IT.po
 locale/ja_JP.po
+locale/lo_LA.po
 locale/lt_LT.po
 locale/nl_NL.po
 locale/pt_BR.po
 locale/ru_RU.po
 locale/sl_SI.po
+locale/zh_CN.po
 tests/scenario_deposit.rst
 trytond_account_deposit.egg-info/PKG-INFO
 trytond_account_deposit.egg-info/SOURCES.txt
diff --git a/trytond_account_deposit.egg-info/requires.txt b/trytond_account_deposit.egg-info/requires.txt
index 7a2a6c5..3b494ae 100644
--- a/trytond_account_deposit.egg-info/requires.txt
+++ b/trytond_account_deposit.egg-info/requires.txt
@@ -1,7 +1,7 @@
 python-dateutil
 python-sql >= 0.4
-trytond_account >= 3.8, < 3.9
-trytond_account_invoice >= 3.8, < 3.9
-trytond_company >= 3.8, < 3.9
-trytond_party >= 3.8, < 3.9
-trytond >= 3.8, < 3.9
\ No newline at end of file
+trytond_account >= 4.0, < 4.1
+trytond_account_invoice >= 4.0, < 4.1
+trytond_company >= 4.0, < 4.1
+trytond_party >= 4.0, < 4.1
+trytond >= 4.0, < 4.1
\ No newline at end of file
-- 
tryton-modules-account-deposit



More information about the tryton-debian-vcs mailing list