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 Version 4.0.3 - 2016-08-19
* Initial release * Initial release

Binary file not shown.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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