Migration to 4.2

This commit is contained in:
Sergio Morillo 2017-07-28 18:55:55 +02:00
parent 4257b7cf86
commit ff8e1c86a2
15 changed files with 26 additions and 25 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

View File

@ -770,8 +770,10 @@ class LoadOrder(Workflow, ModelView, ModelSQL, IncotermDocumentMixin):
pool = Pool() pool = Pool()
Shipment = pool.get('stock.shipment.internal') Shipment = pool.get('stock.shipment.internal')
shipment = Shipment(company=self.company, shipment = Shipment(
company=self.company,
planned_date=self.end_date.date(), planned_date=self.end_date.date(),
planned_start_date=self.end_date.date(),
effective_date=self.end_date.date(), effective_date=self.end_date.date(),
from_location=self.warehouse.storage_location, from_location=self.warehouse.storage_location,
to_location=self.to_location) to_location=self.to_location)

Binary file not shown.

View File

@ -5,6 +5,7 @@ Carrier load
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 trytond.modules.company.tests.tools import create_company, \ >>> from trytond.modules.company.tests.tools import create_company, \
@ -24,10 +25,7 @@ Create database::
Install agro Module:: Install agro Module::
>>> Module = Model.get('ir.module') >>> config = activate_modules('carrier_load')
>>> module, = Module.find([('name', '=', 'carrier_load')])
>>> module.click('install')
>>> Wizard('ir.module.install_upgrade').execute('upgrade')
Create company:: Create company::

View File

@ -1,5 +1,5 @@
[tryton] [tryton]
version=4.0.3 version=4.2.0
depends: depends:
carrier_vehicle carrier_vehicle
incoterm incoterm

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="Carrier load"> <form>
<label name="date"/> <label name="date"/>
<field name="date"/> <field name="date"/>
<label name="code"/> <label name="code"/>

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. -->
<tree string="Carrier load"> <tree>
<field name="code"/> <field name="code"/>
<field name="state"/> <field name="state"/>
<field name="carrier"/> <field name="carrier"/>

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="Load order"> <form>
<label name="code"/> <label name="code"/>
<field name="code"/> <field name="code"/>
<label name="load"/> <label name="load"/>

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="Load order Incoterms"> <form>
<label name="version"/> <label name="version"/>
<field name="version"/> <field name="version"/>
<newline/> <newline/>

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. -->
<tree string="Load order Incoterms" editable="bottom"> <tree editable="bottom">
<field name="rule" widget="selection"/> <field name="rule" widget="selection"/>
<field name="place"/> <field name="place"/>
<field name="version" tree_invisible="1"/> <field name="version" tree_invisible="1"/>

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="Load order line"> <form>
<label name="order"/> <label name="order"/>
<field name="order"/> <field name="order"/>
<newline/> <newline/>

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. -->
<tree string="Load order line" editable="bottom"> <tree editable="bottom">
<field name="order"/> <field name="order"/>
<field name="origin"/> <field name="origin"/>
<field name="product"/> <field name="product"/>

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. -->
<tree string="Load order"> <tree>
<field name="code"/> <field name="code"/>
<field name="load"/> <field name="load"/>
<field name="party"/> <field name="party"/>