Migration to 4.2

This commit is contained in:
Sergio Morillo 2017-07-28 18:55:57 +02:00
parent c2bd05130b
commit 94836cb985
9 changed files with 13 additions and 18 deletions

View File

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

Binary file not shown.

View File

@ -5,6 +5,7 @@ Product Limit Scenario
Imports::
>>> import datetime
>>> from trytond.tests.tools import activate_modules
>>> from dateutil.relativedelta import relativedelta
>>> from decimal import Decimal
>>> from proteus import config, Model, Wizard, Report
@ -20,19 +21,12 @@ Create database::
Install stock_location_product_limit Module::
>>> Module = Model.get('ir.module')
>>> module, = Module.find([('name', '=', 'stock_location_product_limit')])
>>> if module.state == 'uninstalled':
... module.click('install')
... Wizard('ir.module.install_upgrade').execute('upgrade')
>>> config = activate_modules('stock_location_product_limit')
Create company::
>>> try:
... company = get_company()
... except:
... _ = create_company()
... company = get_company()
>>> _ = create_company()
>>> company = get_company()
Reload the context::

View File

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

View File

@ -6,4 +6,4 @@ this repository contains the full copyright notices and license terms. -->
<field name="limit_quantity" />
<field name="diff_quantity" />
</xpath>
</data>
</data>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<form string="Product Limit">
<form>
<label name="location"/>
<field name="location"/>
<label name="product"/>
@ -10,4 +10,4 @@
<field name="quantity"/>
<label name="uom"/>
<field name="uom"/>
</form>
</form>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<form string="Print product limit">
<form>
<label name="start_date"/>
<field name="start_date"/>
<label name="end_date"/>
@ -10,4 +10,4 @@
<field name="location"/>
<label name="product"/>
<field name="product"/>
</form>
</form>

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="Product Limit">
<tree>
<field name="location"/>
<field name="product"/>
<field name="quantity"/>
<field name="uom"/>
</tree>
</tree>