mirror of
https://github.com/NaN-tic/trytond-stock_lot_date.git
synced 2023-12-14 05:13:04 +01:00
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 COPYRIGHT file at the top level of this repository contains
|
||||||
# the full copyright notices and license terms.
|
# the full copyright notices and license terms.
|
||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
from .stock import *
|
from . import stock
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
Pool.register(
|
Pool.register(
|
||||||
Lot,
|
stock.Lot,
|
||||||
module='stock_lot_date', type_='model')
|
module='stock_lot_date', type_='model')
|
||||||
|
|
||||||
|
|
5
setup.py
5
setup.py
|
@ -7,10 +7,7 @@ from setuptools import setup
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import io
|
import io
|
||||||
try:
|
from configparser import ConfigParser
|
||||||
from configparser import ConfigParser
|
|
||||||
except ImportError:
|
|
||||||
from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
MODULE2PREFIX = {}
|
MODULE2PREFIX = {}
|
||||||
|
|
||||||
|
|
3
stock.py
3
stock.py
|
@ -7,8 +7,7 @@ from trytond.pool import Pool, PoolMeta
|
||||||
__all__ = ['Lot']
|
__all__ = ['Lot']
|
||||||
|
|
||||||
|
|
||||||
class Lot:
|
class Lot(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'stock.lot'
|
__name__ = 'stock.lot'
|
||||||
lot_date = fields.Date('Date Lot', required=True)
|
lot_date = fields.Date('Date Lot', required=True)
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[tryton]
|
[tryton]
|
||||||
version=4.8.0
|
version=4.9.0
|
||||||
depends:
|
depends:
|
||||||
ir
|
ir
|
||||||
res
|
res
|
||||||
|
|
Loading…
Reference in a new issue