Migrate to 4.0

This commit refs #1277
This commit is contained in:
Sergio Morillo 2016-08-23 09:17:30 +02:00
parent 94dee53c2d
commit 32611f2318
5 changed files with 7 additions and 8 deletions

View file

@ -1 +1,2 @@
Version 4.0.3 - 2016-08-19
* Initial release

View file

@ -4,13 +4,12 @@ from trytond.pool import PoolMeta, Pool
from trytond.pyson import Eval, Or, Id
from trytond.transaction import Transaction
__metaclass__ = PoolMeta
__all__ = ['LoadOrder']
class LoadOrder:
__name__ = 'carrier.load.order'
__metaclass__ = PoolMeta
@classmethod
def __setup__(cls):

View file

@ -14,7 +14,6 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.ui.view" id="load_order_view_form">
<field name="model">carrier.load.order</field>
<field name="type">form</field>
<field name="name">load_order_form</field>
<field name="inherit" ref="carrier_load.load_order_view_form"/>
</record>

View file

@ -25,10 +25,10 @@ Create database::
Install agro Module::
>>> Module = Model.get('ir.module.module')
>>> Module = Model.get('ir.module')
>>> module, = Module.find([('name', '=', 'carrier_load_done2running')])
>>> module.click('install')
>>> Wizard('ir.module.module.install_upgrade').execute('upgrade')
>>> Wizard('ir.module.install_upgrade').execute('upgrade')
Create company::
@ -193,7 +193,7 @@ Add other products to unit load::
>>> product = Product()
>>> template = ProductTemplate()
>>> template.name = 'Plastic Case 30x30'
>>> template.category = category
>>> template.categories.append(category)
>>> template.default_uom = unit
>>> template.type = 'goods'
>>> template.salable = True
@ -353,7 +353,7 @@ Check sale::
True
>>> order.sale.state
u'quotation'
>>> order.sale.reference != None
>>> order.sale.number != None
True
>>> len(order.sale.lines)
1

View file

@ -1,5 +1,5 @@
[tryton]
version=3.6.1
version=4.0.3
depends:
carrier_load_ul
ir