[tryton-debian-vcs] tryton-modules-stock-lot branch debian updated. debian/3.0.0-3-4-g7218c46

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


The following commit has been merged in the debian branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-lot.git;a=commitdiff;h=debian/3.0.0-3-4-g7218c46

commit 7218c4607e372afda9e72f46163f55576954100e
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Apr 22 15:00:24 2014 +0200

    Bumping minimal required Python version to 2.7.

diff --git a/debian/control b/debian/control
index 4e2c9d9..4eff999 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Standards-Version: 3.9.5
 Homepage: http://www.tryton.org/
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=tryton/tryton-modules-stock-lot.git
 Vcs-Git: git://anonscm.debian.org/tryton/tryton-modules-stock-lot.git
-X-Python-Version: >= 2.6
+X-Python-Version: >= 2.7
 
 Package: tryton-modules-stock-lot
 Architecture: all
commit 80b2ea71888da965c06ac1130405abc12b84e939
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Apr 22 14:46:56 2014 +0200

    Updating copyright.

diff --git a/debian/copyright b/debian/copyright
index 2630782..b1949df 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,8 +1,8 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 
 Files: *
-Copyright: 2012-2013 Cédric Krier
-           2012-2013 B2CK SPRL
+Copyright: 2012-2014 Cédric Krier
+           2012-2014 B2CK SPRL
 License: GPL-3+
 
 Files: debian/*
commit 1337732dddd8e1adf274248aac6a54cdbdd2d844
Author: Mathias Behrle <mathiasb at m9s.biz>
Date:   Tue Apr 22 14:23:45 2014 +0200

    Merging upstream version 3.2.0.

diff --git a/CHANGELOG b/CHANGELOG
index 8b6585f..c0dfc1d 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+Version 3.2.0 - 2014-04-21
+* Bug fixes (see mercurial logs for details)
+* Add relate from lot to moves
+
 Version 3.0.0 - 2013-10-21
 * Bug fixes (see mercurial logs for details)
 * Add quantity and forecast_quantity fields on Lot
diff --git a/COPYRIGHT b/COPYRIGHT
index 7668cfa..5695e54 100644
--- a/COPYRIGHT
+++ b/COPYRIGHT
@@ -1,5 +1,5 @@
-Copyright (C) 2012-2013 Cédric Krier.
-Copyright (C) 2012-2013 B2CK SPRL.
+Copyright (C) 2012-2014 Cédric Krier.
+Copyright (C) 2012-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 03d2f6e..0f4e4a8 100644
--- a/INSTALL
+++ b/INSTALL
@@ -4,7 +4,7 @@ Installing trytond_stock_lot
 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_product (http://www.tryton.org/)
  * trytond_stock (http://www.tryton.org/)
diff --git a/MANIFEST.in b/MANIFEST.in
index f040e5e..f2f691a 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,14 +1,11 @@
 include INSTALL
 include README
-include TODO
 include COPYRIGHT
 include CHANGELOG
 include LICENSE
 include tryton.cfg
 include *.xml
 include view/*.xml
-include *.odt
 include locale/*.po
 include doc/*
-include icons/*
 include tests/*.rst
diff --git a/PKG-INFO b/PKG-INFO
index 0e80546..bae3dae 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond_stock_lot
-Version: 3.0.0
+Version: 3.2.0
 Summary: Tryton module for lot of products
 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_stock_lot
         =================
         
@@ -43,6 +43,7 @@ Description: trytond_stock_lot
         
           http://www.tryton.org/
         
+Keywords: tryton stock lot
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Plugins
@@ -63,6 +64,5 @@ 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
diff --git a/locale/bg_BG.po b/locale/bg_BG.po
index da3662a..86246b6 100644
--- a/locale/bg_BG.po
+++ b/locale/bg_BG.po
@@ -192,6 +192,11 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Партиди"
 
+#, fuzzy
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Движения"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Партиди"
diff --git a/locale/ca_ES.po b/locale/ca_ES.po
index 538154a..4c3272e 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:stock.move:"
 msgid "Lot is required for move of product \"%s\"."
-msgstr "El lot es requerit pel moviment del producte \"%s\"."
+msgstr "El lot és requerit pel moviment del producte \"%s\"."
 
 msgctxt "field:product.template,lot_required:"
 msgid "Lot Required"
@@ -172,12 +172,16 @@ msgstr "Usuari modificació"
 
 msgctxt "help:product.template,lot_required:"
 msgid "The type of location for which lot is required"
-msgstr "Tipus d'ubicació per la qual el lot és obligatori"
+msgstr "Tipus d'ubicació per la qual el lot és obligatori."
 
 msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Lots"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Moviments"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Lots"
diff --git a/locale/cs_CZ.po b/locale/cs_CZ.po
index 1214beb..6aa20b9 100644
--- a/locale/cs_CZ.po
+++ b/locale/cs_CZ.po
@@ -181,6 +181,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr ""
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr ""
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr ""
diff --git a/locale/de_DE.po b/locale/de_DE.po
index e3593a9..bbfde43 100644
--- a/locale/de_DE.po
+++ b/locale/de_DE.po
@@ -178,6 +178,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Chargen"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Lagerbewegungen"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Chargen"
diff --git a/locale/es_AR.po b/locale/es_AR.po
index d1f4bb8..4a47830 100644
--- a/locale/es_AR.po
+++ b/locale/es_AR.po
@@ -178,6 +178,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Lotes"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Movimientos"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Lotes"
diff --git a/locale/es_CO.po b/locale/es_CO.po
index 1ceec73..d70f042 100644
--- a/locale/es_CO.po
+++ b/locale/es_CO.po
@@ -4,7 +4,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
 
 msgctxt "error:stock.move:"
 msgid "Lot is required for move of product \"%s\"."
-msgstr "EL lote es requerido para el movimiento de producto \"%s\"."
+msgstr "EL lote es requerido para el movimiento del producto \"%s\"."
 
 msgctxt "field:product.template,lot_required:"
 msgid "Lot Required"
@@ -68,7 +68,7 @@ msgstr "Número"
 
 msgctxt "field:stock.lot,product:"
 msgid "Product"
-msgstr "Productos"
+msgstr "Producto"
 
 msgctxt "field:stock.lot,quantity:"
 msgid "Quantity"
@@ -156,7 +156,7 @@ msgstr "Período"
 
 msgctxt "field:stock.period.cache.lot,product:"
 msgid "Product"
-msgstr "Productos"
+msgstr "Producto"
 
 msgctxt "field:stock.period.cache.lot,rec_name:"
 msgid "Name"
@@ -164,7 +164,7 @@ msgstr "Nombre"
 
 msgctxt "field:stock.period.cache.lot,write_date:"
 msgid "Write Date"
-msgstr "Modificado por Usuario"
+msgstr "Fecha de Modificación"
 
 msgctxt "field:stock.period.cache.lot,write_uid:"
 msgid "Write User"
@@ -178,6 +178,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Lotes"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Movimientos"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Lotes"
diff --git a/locale/es_ES.po b/locale/es_ES.po
index c8b12e9..624f900 100644
--- a/locale/es_ES.po
+++ b/locale/es_ES.po
@@ -28,7 +28,7 @@ msgstr "Nombre"
 
 msgctxt "field:product.template-stock.lot.type,template:"
 msgid "Template"
-msgstr "Plantila"
+msgstr "Plantilla"
 
 msgctxt "field:product.template-stock.lot.type,type:"
 msgid "Type"
@@ -178,13 +178,17 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Lotes"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Movimientos"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Lotes"
 
 msgctxt "model:product.template-stock.lot.type,name:"
 msgid "Template - Stock Lot Type"
-msgstr "Plantilla - Tipo lote stock"
+msgstr "Plantilla - Tipo de lote"
 
 msgctxt "model:stock.lot,name:"
 msgid "Stock Lot"
diff --git a/locale/fr_FR.po b/locale/fr_FR.po
index dab89a9..332d363 100644
--- a/locale/fr_FR.po
+++ b/locale/fr_FR.po
@@ -178,6 +178,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Lots"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Mouvements"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Lots"
diff --git a/locale/nl_NL.po b/locale/nl_NL.po
index 6303008..e81c5fe 100644
--- a/locale/nl_NL.po
+++ b/locale/nl_NL.po
@@ -194,6 +194,11 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr ""
 
+#, fuzzy
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Boekingen"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr ""
diff --git a/locale/ru_RU.po b/locale/ru_RU.po
index 6295f6f..ace025d 100644
--- a/locale/ru_RU.po
+++ b/locale/ru_RU.po
@@ -214,6 +214,11 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr ""
 
+#, fuzzy
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Перемещения"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr ""
diff --git a/locale/sl_SI.po b/locale/sl_SI.po
index 817b98d..6abdec1 100644
--- a/locale/sl_SI.po
+++ b/locale/sl_SI.po
@@ -178,6 +178,10 @@ msgctxt "model:ir.action,name:act_lot_form"
 msgid "Lots"
 msgstr "Šarže"
 
+msgctxt "model:ir.action,name:act_move_form_relate_lot"
+msgid "Moves"
+msgstr "Promet"
+
 msgctxt "model:ir.ui.menu,name:menu_lot_form"
 msgid "Lots"
 msgstr "Šarže"
diff --git a/setup.py b/setup.py
index 983b0f3..362d1b0 100644
--- a/setup.py
+++ b/setup.py
@@ -11,35 +11,52 @@ 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_stock_lot'
+
+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))
-tests_require = ['proteus >= %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'))
+tests_require = [get_require_version('proteus'), 'python-dateutil']
 
-setup(name='trytond_stock_lot',
-    version=info.get('version', '0.0.1'),
+setup(name=name,
+    version=version,
     description='Tryton module for lot of products',
     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 stock lot',
     package_dir={'trytond.modules.stock_lot': '.'},
     packages=[
         'trytond.modules.stock_lot',
@@ -69,7 +86,6 @@ setup(name='trytond_stock_lot',
         'Natural Language :: Slovenian',
         'Natural Language :: Spanish',
         'Operating System :: OS Independent',
-        'Programming Language :: Python :: 2.6',
         'Programming Language :: Python :: 2.7',
         'Topic :: Office/Business',
         ],
diff --git a/stock.py b/stock.py
index 27915c6..782ffac 100644
--- a/stock.py
+++ b/stock.py
@@ -96,18 +96,11 @@ class ShipmentOut:
     __name__ = 'stock.shipment.out'
 
     @classmethod
-    @ModelView.button
-    @Workflow.transition('packed')
-    def pack(cls, shipments):
+    def _sync_inventory_to_outgoing(cls, shipments):
         pool = Pool()
         Uom = pool.get('product.uom')
         Move = pool.get('stock.move')
-
-        super(ShipmentOut, cls).pack(shipments)
-
-        # Unassign move to allow update
-        Move.draft([m for s in shipments for m in s.outgoing_moves])
-
+        super(ShipmentOut, cls)._sync_inventory_to_outgoing(shipments)
         for shipment in shipments:
             outgoing_by_product = {}
             for move in shipment.outgoing_moves:
@@ -137,8 +130,6 @@ class ShipmentOut:
                     quantity -= out_quantity
                 assert quantity <= 0
 
-        Move.assign([m for s in shipments for m in s.outgoing_moves])
-
 
 class ShipmentOutReturn:
     __name__ = 'stock.shipment.out.return'
@@ -275,8 +266,8 @@ class InventoryLine:
     def unique_key(self):
         return super(InventoryLine, self).unique_key + (self.lot,)
 
-    def _get_move(self):
-        move = super(InventoryLine, self)._get_move()
+    def get_move(self):
+        move = super(InventoryLine, self).get_move()
         if move:
             move.lot = self.lot
         return move
diff --git a/stock.xml b/stock.xml
index d12ca2b..78c6609 100644
--- a/stock.xml
+++ b/stock.xml
@@ -48,6 +48,19 @@ this repository contains the full copyright notices and license terms. -->
             <field name="perm_delete" eval="True"/>
         </record>
 
+        <record model="ir.action.act_window" id="act_move_form_relate_lot">
+            <field name="name">Moves</field>
+            <field name="res_model">stock.move</field>
+            <field name="domain">[('lot', 'in', Eval('active_ids'))]</field>
+            <field name="order">[('effective_date', 'DESC'), ('planned_date', 'DESC')]</field>
+        </record>
+        <record model="ir.action.keyword"
+            id="act_move_form_relate_lot_keyword1">
+            <field name="keyword">form_relate</field>
+            <field name="model">stock.lot,-1</field>
+            <field name="action" ref="act_move_form_relate_lot"/>
+        </record>
+
         <record model="stock.lot.type" id="type_supplier">
             <field name="code">supplier</field>
             <field name="name">Supplier</field>
diff --git a/tests/scenario_stock_lot_shipment_out.rst b/tests/scenario_stock_lot_shipment_out.rst
index 8a8b2e2..a3d1870 100644
--- a/tests/scenario_stock_lot_shipment_out.rst
+++ b/tests/scenario_stock_lot_shipment_out.rst
@@ -35,14 +35,14 @@ Create company::
     >>> company_config = Wizard('company.company.config')
     >>> company_config.execute('company')
     >>> company = company_config.form
-    >>> party = Party(name='B2CK')
+    >>> party = Party(name='Dunder Mifflin')
     >>> party.save()
     >>> company.party = party
-    >>> currencies = Currency.find([('code', '=', 'EUR')])
+    >>> currencies = Currency.find([('code', '=', 'USD')])
     >>> if not currencies:
-    ...     currency = Currency(name='Euro', symbol=u'€', code='EUR',
+    ...     currency = Currency(name='U.S. Dollar', symbol='$', code='USD',
     ...         rounding=Decimal('0.01'), mon_grouping='[3, 3, 0]',
-    ...         mon_decimal_point=',')
+    ...         mon_decimal_point='.', mon_thousands_sep=',')
     ...     currency.save()
     ...     CurrencyRate(date=today + relativedelta(month=1, day=1),
     ...         rate=Decimal('1.0'), currency=currency).save()
diff --git a/tests/test_stock_lot.py b/tests/test_stock_lot.py
index 0a0abce..4c0ecfc 100644
--- a/tests/test_stock_lot.py
+++ b/tests/test_stock_lot.py
@@ -1,14 +1,5 @@
-#!/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 datetime
@@ -17,15 +8,12 @@ from decimal import Decimal
 
 import trytond.tests.test_tryton
 from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT, test_view,\
-    test_depends
-from trytond.backend.sqlite.database import Database as SQLiteDatabase
+    test_depends, doctest_dropdb
 from trytond.transaction import Transaction
 
 
 class StockLotTestCase(unittest.TestCase):
-    '''
-    Test Stock Lot module.
-    '''
+    'Test Stock Lot module'
 
     def setUp(self):
         trytond.tests.test_tryton.install_module('stock_lot')
@@ -41,21 +29,15 @@ class StockLotTestCase(unittest.TestCase):
         self.cache = POOL.get('stock.period.cache')
 
     def test0005views(self):
-        '''
-        Test views.
-        '''
+        'Test views'
         test_view('stock_lot')
 
     def test0006depends(self):
-        '''
-        Test depends.
-        '''
+        'Test depends'
         test_depends()
 
     def test0010products_by_location(self):
-        '''
-        Test products_by_location.
-        '''
+        'Test products_by_location'
         with Transaction().start(DB_NAME, USER, context=CONTEXT):
             kg, = self.uom.search([('name', '=', 'Kilogram')])
             g, = self.uom.search([('name', '=', 'Gram')])
@@ -73,7 +55,9 @@ class StockLotTestCase(unittest.TestCase):
             supplier, = self.location.search([('code', '=', 'SUP')])
             customer, = self.location.search([('code', '=', 'CUS')])
             storage, = self.location.search([('code', '=', 'STO')])
-            company, = self.company.search([('rec_name', '=', 'B2CK')])
+            company, = self.company.search([
+                    ('rec_name', '=', 'Dunder Mifflin'),
+                    ])
             currency = company.currency
             self.user.write([self.user(USER)], {
                 'main_company': company.id,
@@ -146,9 +130,7 @@ class StockLotTestCase(unittest.TestCase):
                 self.assertEqual(lot2.quantity, 8)
 
     def test0020period(self):
-        '''
-        Test period.
-        '''
+        'Test period'
         with Transaction().start(DB_NAME, USER, context=CONTEXT):
             unit, = self.uom.search([('name', '=', 'Unit')])
             template, = self.template.create([{
@@ -164,7 +146,9 @@ class StockLotTestCase(unittest.TestCase):
                         }])
             supplier, = self.location.search([('code', '=', 'SUP')])
             storage, = self.location.search([('code', '=', 'STO')])
-            company, = self.company.search([('rec_name', '=', 'B2CK')])
+            company, = self.company.search([
+                    ('rec_name', '=', 'Dunder Mifflin'),
+                    ])
             currency = company.currency
             self.user.write([self.user(USER)], {
                 'main_company': company.id,
@@ -250,19 +234,6 @@ class StockLotTestCase(unittest.TestCase):
                     quantities[(lot_cache.location, lot_cache.lot)])
 
 
-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()
     from trytond.modules.company.tests import test_company
@@ -275,6 +246,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 d6d3790..e1d6040 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
 [tryton]
-version=3.0.0
+version=3.2.0
 depends:
     ir
     product
diff --git a/trytond_stock_lot.egg-info/PKG-INFO b/trytond_stock_lot.egg-info/PKG-INFO
index ebdd1f9..f5532df 100644
--- a/trytond_stock_lot.egg-info/PKG-INFO
+++ b/trytond_stock_lot.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
 Metadata-Version: 1.1
 Name: trytond-stock-lot
-Version: 3.0.0
+Version: 3.2.0
 Summary: Tryton module for lot of products
 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_stock_lot
         =================
         
@@ -43,6 +43,7 @@ Description: trytond_stock_lot
         
           http://www.tryton.org/
         
+Keywords: tryton stock lot
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Environment :: Plugins
@@ -63,6 +64,5 @@ 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
diff --git a/trytond_stock_lot.egg-info/requires.txt b/trytond_stock_lot.egg-info/requires.txt
index 943e3c2..c4f6720 100644
--- a/trytond_stock_lot.egg-info/requires.txt
+++ b/trytond_stock_lot.egg-info/requires.txt
@@ -1,3 +1,3 @@
-trytond_product >= 3.0, < 3.1
-trytond_stock >= 3.0, < 3.1
-trytond >= 3.0, < 3.1
\ No newline at end of file
+trytond_product >= 3.2, < 3.3
+trytond_stock >= 3.2, < 3.3
+trytond >= 3.2, < 3.3
\ No newline at end of file
diff --git a/view/template_form.xml b/view/template_form.xml
index df0c3f5..f518dc6 100644
--- a/view/template_form.xml
+++ b/view/template_form.xml
@@ -5,7 +5,7 @@ this repository contains the full copyright notices and license terms. -->
     <xpath expr="/form/notebook/page[@id='general']" position="after">
         <page string="Lots" id="lots"
             states="{'invisible': ~Eval('type').in_(['goods', 'assets'])}">
-            <field name="lot_required" colspan="4"/>
+            <field name="lot_required" colspan="4" widget="multiselection"/>
         </page>
     </xpath>
 </data>
-- 
tryton-modules-stock-lot



More information about the tryton-debian-vcs mailing list