Upgrade to 4.9
This commit is contained in:
parent
ce1aee44e4
commit
489e933799
|
@ -2,11 +2,10 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains
|
||||
# the full copyright notices and license terms.
|
||||
from trytond.pool import Pool
|
||||
from .stock import *
|
||||
from . import stock
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
Lot,
|
||||
stock.Lot,
|
||||
module='stock_lot_date', type_='model')
|
||||
|
||||
|
|
5
setup.py
5
setup.py
|
@ -7,10 +7,7 @@ from setuptools import setup
|
|||
import re
|
||||
import os
|
||||
import io
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import ConfigParser
|
||||
from configparser import ConfigParser
|
||||
|
||||
MODULE2PREFIX = {}
|
||||
|
||||
|
|
3
stock.py
3
stock.py
|
@ -7,8 +7,7 @@ from trytond.pool import Pool, PoolMeta
|
|||
__all__ = ['Lot']
|
||||
|
||||
|
||||
class Lot:
|
||||
__metaclass__ = PoolMeta
|
||||
class Lot(metaclass=PoolMeta):
|
||||
__name__ = 'stock.lot'
|
||||
lot_date = fields.Date('Date Lot', required=True)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[tryton]
|
||||
version=4.8.0
|
||||
version=4.9.0
|
||||
depends:
|
||||
ir
|
||||
res
|
||||
|
|
Loading…
Reference in New Issue