mirror of
https://gitlab.com/datalifeit/trytond-stock_location_product_limit
synced 2023-12-14 04:23:00 +01:00
Migration to 4.2
This commit is contained in:
parent
c2bd05130b
commit
94836cb985
9 changed files with 13 additions and 18 deletions
|
@ -1,2 +1,3 @@
|
|||
Version 4.2.0 - 2017-07-27
|
||||
Version 4.0.3 - 2016-08-19
|
||||
* Initial release
|
||||
|
|
Binary file not shown.
|
@ -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::
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=4.0.3
|
||||
version=4.2.0
|
||||
depends:
|
||||
company_logo
|
||||
ir
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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"/>
|
||||
|
|
|
@ -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. -->
|
||||
<tree string="Product Limit">
|
||||
<tree>
|
||||
<field name="location"/>
|
||||
<field name="product"/>
|
||||
<field name="quantity"/>
|
||||
|
|
Loading…
Reference in a new issue