Migration to 4.2

This commit is contained in:
Sergio Morillo 2017-07-28 18:55:53 +02:00
parent f3ec8a265f
commit 255caf588a
7 changed files with 7 additions and 5 deletions

View File

@ -1,2 +1,3 @@
Version 4.2.0 - 2017-07-27
Version 4.0.3 - 2016-08-19
* Initial release

View File

@ -52,6 +52,7 @@ class LocationStateHistoryTestCase(ModuleTestCase):
self.assertEqual(production.history_state, 'on')
at_date, = [h.date for h in production.history if h.state == 'off']
# TODO: fails in sqlite
at_date += relativedelta(seconds=0.5)
with Transaction().set_context(state_at_date=at_date):

View File

@ -1,5 +1,5 @@
[tryton]
version=4.0.3
version=4.2.0
depends:
ir
res

View File

@ -17,4 +17,4 @@ this repository contains the full copyright notices and license terms. -->
</group>
</group>
</xpath>
</data>
</data>

View File

@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<tree string="Location history">
<tree>
<field name="date" widget="date"/>
<field name="date" widget="time" string="Change Time"/>
<field name="user"/>
<field name="state"/>
</tree>
</tree>

View File

@ -7,4 +7,4 @@ this repository contains the full copyright notices and license terms. -->
<button string="Start" name="on"/>
<button string="Stop" name="off"/>
</xpath>
</data>
</data>