[tryton-debian-vcs] tryton-modules-account-dunning branch upstream updated. upstream/3.0.1-1-g90c0137

Mathias Behrle tryton-debian-vcs at alioth.debian.org
Tue Apr 22 13:04:58 UTC 2014


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-dunning.git;a=commitdiff;h=upstream/3.0.1-1-g90c0137

commit 90c01373141d16e0c7d69f4eaae1ce8743198c10
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Apr 22 14:20:31 2014 +0200

    Adding upstream version 3.2.0.

diff --git a/CHANGELOG b/CHANGELOG
index be7289e..a77894f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Version 3.0.1 - 2013-12-04
+Version 3.2.0 - 2014-04-21
 * Bug fixes (see mercurial logs for details)
 
 Version 3.0.0 - 2013-10-21
diff --git a/COPYRIGHT b/COPYRIGHT
index 1ef62b0..f8646f0 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2013 Cédric Krier.
-Copyright (C) 2013 B2CK SPRL.
+Copyright (C) 2013-2014 Cédric Krier.
+Copyright (C) 2013-2014 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/INSTALL b/INSTALL
index 7639378..f9c2e43 100644
--- a/INSTALL
+++ b/INSTALL
@@ -4,7 +4,7 @@ Installing trytond_account_dunning
 Prerequisites
 -------------
 
- * Python 2.6 or later (http://www.python.org/)
+ * Python 2.7 or later (http://www.python.org/)
  * trytond (http://www.tryton.org/)
  * trytond_account (http://www.tryton.org/)
  * trytond_party (http://www.tryton.org/)
diff --git a/PKG-INFO b/PKG-INFO
index 5678c62..05c7f12 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_account_dunning
-Version: 3.0.1
+Version: 3.2.0
 Summary: Tryton module for account dunning
 Home-page: http://www.tryton.org/
 Author: Tryton
-Author-email: UNKNOWN
+Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.0/
+Download-URL: http://downloads.tryton.org/3.2/
 Description: trytond_account_dunning
         =======================
         
@@ -43,6 +43,7 @@ Description: trytond_account_dunning
         
           http://www.tryton.org/
         
+Keywords: tryton account dunning
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Plugins
@@ -62,7 +63,6 @@ Classifier: Natural Language :: Russian
 Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Topic :: Office/Business
 Classifier: Topic :: Office/Business :: Financial :: Accounting
diff --git a/dunning.py b/dunning.py
index d2a3e5c..31e9be9 100644
--- a/dunning.py
+++ b/dunning.py
@@ -282,7 +282,7 @@ class ProcessDunning(Wizard):
     start = StateView('account.dunning.process.start',
         'account_dunning.dunning_process_start_view_form', [
             Button('Cancel', 'end', 'tryton-cancel'),
-            Button('process', 'process', 'tryton-ok', default=True),
+            Button('Process', 'process', 'tryton-ok', default=True),
         ])
     process = StateTransition()
 
diff --git a/dunning.xml b/dunning.xml
index 0668c8a..bfe79a8 100644
--- a/dunning.xml
+++ b/dunning.xml
@@ -171,7 +171,7 @@ this repository contains the full copyright notices and license terms. -->
         <record model="ir.action.act_window" id="act_dunning_party">
             <field name="name">Dunnings</field>
             <field name="res_model">account.dunning</field>
-            <field name="domain">[('line.party', '=', Eval('active_id'))]</field>
+            <field name="domain">[('line.party', 'in', Eval('active_ids'))]</field>
         </record>
         <record model="ir.action.act_window.view" id="act_dunning_party_view1">
             <field name="sequence" eval="10"/>
diff --git a/locale/ca_ES.po b/locale/ca_ES.po
index a05d70a..ba14cac 100644
--- a/locale/ca_ES.po
+++ b/locale/ca_ES.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:account.dunning:"
 msgid "Line can be used only once on dunning."
-msgstr "La línia només ha de ser utilitzada una vegada en la reclamació."
+msgstr "L'apunt només pot ser utilitzat una vegada en les reclamacions."
 
 msgctxt "field:account.configuration,default_dunning_procedure:"
 msgid "Default Dunning Procedure"
@@ -24,7 +24,7 @@ msgstr "Import segona moneda"
 
 msgctxt "field:account.dunning,blocked:"
 msgid "Blocked"
-msgstr "Bloquejat"
+msgstr "Bloquejada"
 
 msgctxt "field:account.dunning,company:"
 msgid "Company"
@@ -180,23 +180,23 @@ msgstr "Procediment de reclamació"
 
 msgctxt "model:account.dunning,name:"
 msgid "Account Dunning"
-msgstr "Compte de reclamació"
+msgstr "Reclamació comptable"
 
 msgctxt "model:account.dunning.create.start,name:"
 msgid "Create Account Dunning"
-msgstr "Crea compte de reclamació"
+msgstr "Crea reclamació comptable"
 
 msgctxt "model:account.dunning.level,name:"
 msgid "Account Dunning Level"
-msgstr "Nivell de compte de reclamació"
+msgstr "Nivell de reclamació comptable"
 
 msgctxt "model:account.dunning.procedure,name:"
 msgid "Account Dunning Procedure"
-msgstr "Procediment de compte de reclamació"
+msgstr "Procediment de reclamació comptable"
 
 msgctxt "model:account.dunning.process.start,name:"
 msgid "Create Account Dunning"
-msgstr "Crea compte de reclamació"
+msgstr "Crea reclamació comptable"
 
 msgctxt "model:ir.action,name:act_dunning_form"
 msgid "Dunnings"
@@ -224,7 +224,7 @@ msgstr "Totes"
 
 msgctxt "model:ir.action.act_window.domain,name:act_dunning_form_domain_done"
 msgid "Done"
-msgstr "Fetes"
+msgstr "Realitzada"
 
 msgctxt "model:ir.action.act_window.domain,name:act_dunning_form_domain_draft"
 msgid "Draft"
@@ -256,7 +256,7 @@ msgstr "Reclamació"
 
 msgctxt "selection:account.dunning,state:"
 msgid "Done"
-msgstr "Feta"
+msgstr "Realitzada"
 
 msgctxt "selection:account.dunning,state:"
 msgid "Draft"
@@ -276,7 +276,7 @@ msgstr "Nivell de reclamació"
 
 msgctxt "view:account.dunning.level:"
 msgid "dunning levels"
-msgstr "nivells de reclamació"
+msgstr "Nivells de reclamació"
 
 msgctxt "view:account.dunning.procedure:"
 msgid "Dunning Procedure"
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Cancel·la"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
-msgstr "processa"
+msgid "Process"
+msgstr "Processa"
diff --git a/locale/de_DE.po b/locale/de_DE.po
index 77ea903..310650f 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -20,7 +20,7 @@ msgstr "Betrag"
 
 msgctxt "field:account.dunning,amount_second_currency:"
 msgid "Amount Second Currency"
-msgstr "Betrag Zweitwährung"
+msgstr "Fremdwährungsbetrag"
 
 msgctxt "field:account.dunning,blocked:"
 msgid "Blocked"
@@ -40,7 +40,7 @@ msgstr "Erstellt durch"
 
 msgctxt "field:account.dunning,currency_digits:"
 msgid "Currency Digits"
-msgstr "Währung (signifikante Stellen)"
+msgstr "Nachkommastellen Währung"
 
 msgctxt "field:account.dunning,id:"
 msgid "ID"
@@ -72,11 +72,11 @@ msgstr "Name"
 
 msgctxt "field:account.dunning,second_currency:"
 msgid "Second Currency"
-msgstr "Zweitwährung"
+msgstr "Fremdwährung"
 
 msgctxt "field:account.dunning,second_currency_digits:"
 msgid "Second Currency Digits"
-msgstr "Stellen Zweitwährung"
+msgstr "Nachkommastellen Fremdwährung"
 
 msgctxt "field:account.dunning,state:"
 msgid "State"
@@ -232,7 +232,7 @@ msgstr "Entwurf"
 
 msgctxt "model:ir.ui.menu,name:menu_dunning_configuration"
 msgid "Dunnings"
-msgstr "Mahnungen"
+msgstr "Mahnwesen"
 
 msgctxt "model:ir.ui.menu,name:menu_dunning_create"
 msgid "Create Dunnings"
@@ -248,7 +248,7 @@ msgstr "Mahnmethoden"
 
 msgctxt "model:ir.ui.menu,name:menu_dunnings"
 msgid "Dunnings"
-msgstr "Mahnungen"
+msgstr "Mahnwesen"
 
 msgctxt "model:res.group,name:group_dunning"
 msgid "Dunning"
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Abbrechen"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
-msgstr "Durchführen"
+msgid "Process"
+msgstr "Ausführen"
diff --git a/locale/es_AR.po b/locale/es_AR.po
index 5242314..ac36751 100644
--- a/locale/es_AR.po
+++ b/locale/es_AR.po
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Cancelar"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
+msgid "Process"
 msgstr "Procesar"
diff --git a/locale/es_CO.po b/locale/es_CO.po
index fd98b67..a469f03 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -40,7 +40,7 @@ msgstr "Creado por Usuario"
 
 msgctxt "field:account.dunning,currency_digits:"
 msgid "Currency Digits"
-msgstr "Gestión de Moneda"
+msgstr "Decimales de Moneda"
 
 msgctxt "field:account.dunning,id:"
 msgid "ID"
@@ -60,11 +60,11 @@ msgstr "Fecha Vencimiento"
 
 msgctxt "field:account.dunning,party:"
 msgid "Party"
-msgstr "Terceros"
+msgstr "Tercero"
 
 msgctxt "field:account.dunning,procedure:"
 msgid "Procedure"
-msgstr "Proceso"
+msgstr "Procedimiento"
 
 msgctxt "field:account.dunning,rec_name:"
 msgid "Name"
@@ -84,7 +84,7 @@ msgstr "Estado"
 
 msgctxt "field:account.dunning,write_date:"
 msgid "Write Date"
-msgstr "Modificado por Usuario"
+msgstr "Fecha de Modificación"
 
 msgctxt "field:account.dunning,write_uid:"
 msgid "Write User"
@@ -116,7 +116,7 @@ msgstr "ID"
 
 msgctxt "field:account.dunning.level,procedure:"
 msgid "Procedure"
-msgstr "Proceso"
+msgstr "Procedimiento"
 
 msgctxt "field:account.dunning.level,rec_name:"
 msgid "Name"
@@ -128,7 +128,7 @@ msgstr "Secuencia"
 
 msgctxt "field:account.dunning.level,write_date:"
 msgid "Write Date"
-msgstr "Modificado por Usuario"
+msgstr "Fecha de Modificación"
 
 msgctxt "field:account.dunning.level,write_uid:"
 msgid "Write User"
@@ -160,7 +160,7 @@ msgstr "Nombre"
 
 msgctxt "field:account.dunning.procedure,write_date:"
 msgid "Write Date"
-msgstr "Modificado por Usuario"
+msgstr "Fecha de Modificación"
 
 msgctxt "field:account.dunning.procedure,write_uid:"
 msgid "Write User"
@@ -176,7 +176,7 @@ msgstr "Cobros"
 
 msgctxt "field:party.party,dunning_procedure:"
 msgid "Dunning Procedure"
-msgstr "Proceso de Cobro"
+msgstr "Procedimiento de Cobro"
 
 msgctxt "model:account.dunning,name:"
 msgid "Account Dunning"
@@ -208,7 +208,7 @@ msgstr "Cobros"
 
 msgctxt "model:ir.action,name:act_dunning_procedure_form"
 msgid "Dunning Procedures"
-msgstr "Procesos de Cobro"
+msgstr "Procedimientos de Cobro"
 
 msgctxt "model:ir.action,name:wizard_dunning_create"
 msgid "Create Dunnings"
@@ -224,7 +224,7 @@ msgstr "Todo"
 
 msgctxt "model:ir.action.act_window.domain,name:act_dunning_form_domain_done"
 msgid "Done"
-msgstr "Terminado"
+msgstr "Hecho"
 
 msgctxt "model:ir.action.act_window.domain,name:act_dunning_form_domain_draft"
 msgid "Draft"
@@ -244,7 +244,7 @@ msgstr "Cobros"
 
 msgctxt "model:ir.ui.menu,name:menu_dunning_procedure_form"
 msgid "Dunning Procedures"
-msgstr "Proceso de Cobro"
+msgstr "Procedimientos de Cobro"
 
 msgctxt "model:ir.ui.menu,name:menu_dunnings"
 msgid "Dunnings"
@@ -256,7 +256,7 @@ msgstr "Cobro"
 
 msgctxt "selection:account.dunning,state:"
 msgid "Done"
-msgstr "Terminado"
+msgstr "Hecho"
 
 msgctxt "selection:account.dunning,state:"
 msgid "Draft"
@@ -280,11 +280,11 @@ msgstr "niveles de cobro"
 
 msgctxt "view:account.dunning.procedure:"
 msgid "Dunning Procedure"
-msgstr "Proceso de Cobro"
+msgstr "Procedimiento de Cobro"
 
 msgctxt "view:account.dunning.procedure:"
 msgid "Dunning Procedures"
-msgstr "Procedimiento de Cobro"
+msgstr "Procedimientos de Cobro"
 
 msgctxt "view:account.dunning.process.start:"
 msgid "Process Dunning"
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Cancelar"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
-msgstr "procesar"
+msgid "Process"
+msgstr "Procesar"
diff --git a/locale/es_ES.po b/locale/es_ES.po
index 2befb0d..3efabe6 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:account.dunning:"
 msgid "Line can be used only once on dunning."
-msgstr "La línea puede ser utilizada sólo una vez en la reclamación."
+msgstr "El apunte puede ser utilizado sólo una vez en las reclamaciones."
 
 msgctxt "field:account.configuration,default_dunning_procedure:"
 msgid "Default Dunning Procedure"
@@ -24,7 +24,7 @@ msgstr "Importe segunda moneda"
 
 msgctxt "field:account.dunning,blocked:"
 msgid "Blocked"
-msgstr "Bloqueado"
+msgstr "Bloqueada"
 
 msgctxt "field:account.dunning,company:"
 msgid "Company"
@@ -44,7 +44,7 @@ msgstr "Decimales de moneda"
 
 msgctxt "field:account.dunning,id:"
 msgid "ID"
-msgstr "Id"
+msgstr "ID"
 
 msgctxt "field:account.dunning,level:"
 msgid "Level"
@@ -96,7 +96,7 @@ msgstr "Fecha"
 
 msgctxt "field:account.dunning.create.start,id:"
 msgid "ID"
-msgstr "Id"
+msgstr "ID"
 
 msgctxt "field:account.dunning.level,create_date:"
 msgid "Create Date"
@@ -112,7 +112,7 @@ msgstr "Número de días de atraso"
 
 msgctxt "field:account.dunning.level,id:"
 msgid "ID"
-msgstr "Id"
+msgstr "ID"
 
 msgctxt "field:account.dunning.level,procedure:"
 msgid "Procedure"
@@ -144,7 +144,7 @@ msgstr "Usuario creación"
 
 msgctxt "field:account.dunning.procedure,id:"
 msgid "ID"
-msgstr "Id"
+msgstr "ID"
 
 msgctxt "field:account.dunning.procedure,levels:"
 msgid "Levels"
@@ -168,7 +168,7 @@ msgstr "Usuario modificación"
 
 msgctxt "field:account.dunning.process.start,id:"
 msgid "ID"
-msgstr "Id"
+msgstr "ID"
 
 msgctxt "field:account.move.line,dunnings:"
 msgid "Dunnings"
@@ -192,7 +192,7 @@ msgstr "Nivel de reclamación contable"
 
 msgctxt "model:account.dunning.procedure,name:"
 msgid "Account Dunning Procedure"
-msgstr "Procedimiento de reclamación"
+msgstr "Procedimiento de reclamación contable"
 
 msgctxt "model:account.dunning.process.start,name:"
 msgid "Create Account Dunning"
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Cancelar"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
+msgid "Process"
 msgstr "Procesar"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index 343fb9b..92d7275 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Annuler"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
-msgstr "traiter"
+msgid "Process"
+msgstr "Traiter"
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
index 23fe535..3153ddb 100644
--- a/locale/sl_SI.po
+++ b/locale/sl_SI.po
@@ -28,7 +28,7 @@ msgstr "Zamrznjeno"
 
 msgctxt "field:account.dunning,company:"
 msgid "Company"
-msgstr "Podjetje"
+msgstr "Družba"
 
 msgctxt "field:account.dunning,create_date:"
 msgid "Create Date"
@@ -60,7 +60,7 @@ msgstr "Datum dospelosti"
 
 msgctxt "field:account.dunning,party:"
 msgid "Party"
-msgstr "Stranka"
+msgstr "Partner"
 
 msgctxt "field:account.dunning,procedure:"
 msgid "Procedure"
@@ -228,7 +228,7 @@ msgstr "Zaključeno"
 
 msgctxt "model:ir.action.act_window.domain,name:act_dunning_form_domain_draft"
 msgid "Draft"
-msgstr "Osnutki"
+msgstr "Priprava"
 
 msgctxt "model:ir.ui.menu,name:menu_dunning_configuration"
 msgid "Dunnings"
@@ -260,7 +260,7 @@ msgstr "Zaključeno"
 
 msgctxt "selection:account.dunning,state:"
 msgid "Draft"
-msgstr "Osnutek"
+msgstr "V pripravi"
 
 msgctxt "view:account.dunning.create.start:"
 msgid "Create Dunning"
@@ -319,5 +319,5 @@ msgid "Cancel"
 msgstr "Prekliči"
 
 msgctxt "wizard_button:account.dunning.process,start,process:"
-msgid "process"
+msgid "Process"
 msgstr "Obdelava"
diff --git a/setup.py b/setup.py
index cd4992f..e02fac5 100644
--- a/setup.py
+++ b/setup.py
@@ -11,33 +11,51 @@ import ConfigParser
 def read(fname):
     return open(os.path.join(os.path.dirname(__file__), fname)).read()
 
+
+def get_require_version(name):
+    if minor_version % 2:
+        require = '%s >= %s.%s.dev0, < %s.%s'
+    else:
+        require = '%s >= %s.%s, < %s.%s'
+    require %= (name, major_version, minor_version,
+        major_version, minor_version + 1)
+    return require
+
 config = ConfigParser.ConfigParser()
 config.readfp(open('tryton.cfg'))
 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, _ = info.get('version', '0.0.1').split('.', 2)
+version = info.get('version', '0.0.1')
+major_version, minor_version, _ = version.split('.', 2)
 major_version = int(major_version)
 minor_version = int(minor_version)
+name = 'trytond_account_dunning'
+
+download_url = 'http://downloads.tryton.org/%s.%s/' % (
+    major_version, minor_version)
+if minor_version % 2:
+    version = '%s.%s.dev0' % (major_version, minor_version)
+    download_url = (
+        'hg+http://hg.tryton.org/modules/%s#egg=%s-%s' % (
+            name[8:], name, version))
 
 requires = []
 for dep in info.get('depends', []):
     if not re.match(r'(ir|res|webdav)(\W|$)', dep):
-        requires.append('trytond_%s >= %s.%s, < %s.%s' %
-                (dep, major_version, minor_version, major_version,
-                    minor_version + 1))
-requires.append('trytond >= %s.%s, < %s.%s' %
-        (major_version, minor_version, major_version, minor_version + 1))
+        requires.append(get_require_version('trytond_%s' % dep))
+requires.append(get_require_version('trytond'))
 
-setup(name='trytond_account_dunning',
-    version=info.get('version', '0.0.1'),
+setup(name=name,
+    version=version,
     description='Tryton module for account dunning',
     long_description=read('README'),
     author='Tryton',
+    author_email='issue_tracker at tryton.org',
     url='http://www.tryton.org/',
-    download_url=("http://downloads.tryton.org/" +
-        info.get('version', '0.0.1').rsplit('.', 1)[0] + '/'),
+    download_url=download_url,
+    keywords='tryton account dunning',
     package_dir={'trytond.modules.account_dunning': '.'},
     packages=[
         'trytond.modules.account_dunning',
@@ -66,7 +84,6 @@ setup(name='trytond_account_dunning',
         'Natural Language :: Slovenian',
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
-        'Programming Language :: Python :: 2.6',
         'Programming Language :: Python :: 2.7',
         'Topic :: Office/Business',
         'Topic :: Office/Business :: Financial :: Accounting',
diff --git a/tests/scenario_account_dunning.rst b/tests/scenario_account_dunning.rst
index 53e6522..d3c6f6c 100644
--- a/tests/scenario_account_dunning.rst
+++ b/tests/scenario_account_dunning.rst
@@ -309,6 +309,7 @@ Create dunnings on 30 days::
 Pay dunning::
 
     >>> config.user = account_user.id
+    >>> MoveLine = Model.get('account.move.line')
     >>> move = Move()
     >>> move.period = period
     >>> move.journal = journal_cash
@@ -323,7 +324,7 @@ Pay dunning::
     >>> move.save()
     >>> reconcile2, = [l for l in move.lines if l.account == receivable]
     >>> reconcile_lines = Wizard('account.move.reconcile_lines',
-    ...     [dunning.line, reconcile2])
+    ...     [MoveLine(dunning.line.id), reconcile2])
     >>> Dunning.find([])
     []
 
diff --git a/tests/test_account_dunning.py b/tests/test_account_dunning.py
index af370f4..4fe79cc 100644
--- a/tests/test_account_dunning.py
+++ b/tests/test_account_dunning.py
@@ -1,55 +1,26 @@
-#!/usr/bin/env python
 #This file is part of Tryton.  The COPYRIGHT file at the top level of
 #this repository contains the full copyright notices and license terms.
-
-import sys
-import 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 doctest
 import trytond.tests.test_tryton
-from trytond.tests.test_tryton import test_view, test_depends
-from trytond.backend.sqlite.database import Database as SQLiteDatabase
+from trytond.tests.test_tryton import test_view, test_depends, doctest_dropdb
 
 
 class AccountDunningTestCase(unittest.TestCase):
-    '''
-    Test AccountDunning module.
-    '''
+    'Test AccountDunning module'
 
     def setUp(self):
         trytond.tests.test_tryton.install_module('account_dunning')
 
     def test0005views(self):
-        '''
-        Test views.
-        '''
+        'Test views'
         test_view('account_dunning')
 
     def test0006depends(self):
-        '''
-        Test depends.
-        '''
+        'Test depends'
         test_depends()
 
 
-def doctest_dropdb(test):
-    '''
-    Remove sqlite memory database
-    '''
-    database = SQLiteDatabase().connect()
-    cursor = database.cursor(autocommit=True)
-    try:
-        database.drop(cursor, ':memory:')
-        cursor.commit()
-    finally:
-        cursor.close()
-
-
 def suite():
     suite = trytond.tests.test_tryton.suite()
     suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
@@ -59,6 +30,3 @@ def suite():
             setUp=doctest_dropdb, tearDown=doctest_dropdb, encoding='utf-8',
             optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
     return suite
-
-if __name__ == '__main__':
-    unittest.TextTestRunner(verbosity=2).run(suite())
diff --git a/tryton.cfg b/tryton.cfg
index 8e6a0b7..a36afc2 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.0.1
+version=3.2.0
 depends:
     account
     company
diff --git a/trytond_account_dunning.egg-info/PKG-INFO b/trytond_account_dunning.egg-info/PKG-INFO
index f2021e4..0a1aa8c 100644
--- a/trytond_account_dunning.egg-info/PKG-INFO
+++ b/trytond_account_dunning.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-account-dunning
-Version: 3.0.1
+Version: 3.2.0
 Summary: Tryton module for account dunning
 Home-page: http://www.tryton.org/
 Author: Tryton
-Author-email: UNKNOWN
+Author-email: issue_tracker at tryton.org
 License: GPL-3
-Download-URL: http://downloads.tryton.org/3.0/
+Download-URL: http://downloads.tryton.org/3.2/
 Description: trytond_account_dunning
         =======================
         
@@ -43,6 +43,7 @@ Description: trytond_account_dunning
         
           http://www.tryton.org/
         
+Keywords: tryton account dunning
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Plugins
@@ -62,7 +63,6 @@ Classifier: Natural Language :: Russian
 Classifier: Natural Language :: Slovenian
 Classifier: Natural Language :: Spanish
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 2.6
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Topic :: Office/Business
 Classifier: Topic :: Office/Business :: Financial :: Accounting
diff --git a/trytond_account_dunning.egg-info/requires.txt b/trytond_account_dunning.egg-info/requires.txt
index d5c5c36..5727924 100644
--- a/trytond_account_dunning.egg-info/requires.txt
+++ b/trytond_account_dunning.egg-info/requires.txt
@@ -1,4 +1,4 @@
-trytond_account >= 3.0, < 3.1
-trytond_company >= 3.0, < 3.1
-trytond_party >= 3.0, < 3.1
-trytond >= 3.0, < 3.1
\ No newline at end of file
+trytond_account >= 3.2, < 3.3
+trytond_company >= 3.2, < 3.3
+trytond_party >= 3.2, < 3.3
+trytond >= 3.2, < 3.3
\ No newline at end of file
-- 
tryton-modules-account-dunning



More information about the tryton-debian-vcs mailing list