Migration to 4.2
This commit is contained in:
parent
4257b7cf86
commit
ff8e1c86a2
|
@ -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
|
||||||
|
|
4
load.py
4
load.py
|
@ -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)
|
||||||
|
|
BIN
load_sheet.odt
BIN
load_sheet.odt
Binary file not shown.
|
@ -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::
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[tryton]
|
[tryton]
|
||||||
version=4.0.3
|
version=4.2.0
|
||||||
depends:
|
depends:
|
||||||
carrier_vehicle
|
carrier_vehicle
|
||||||
incoterm
|
incoterm
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
|
@ -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/>
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
|
@ -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/>
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
|
@ -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"/>
|
||||||
|
|
Loading…
Reference in New Issue