mirror of
https://github.com/NaN-tic/trytond-stock_lot_expiry-zz.git
synced 2023-12-14 03:02:56 +01:00
Add python 3 support
This commit is contained in:
parent
fc267f36b4
commit
ec5693c1ea
5
stock.py
5
stock.py
|
@ -8,10 +8,10 @@ from trytond.pyson import And, Bool, Equal, Eval, If, Not
|
|||
from trytond.transaction import Transaction
|
||||
|
||||
__all__ = ['Template', 'Lot', 'Location', 'Move']
|
||||
__metaclass__ = PoolMeta
|
||||
|
||||
|
||||
class Template:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'product.template'
|
||||
|
||||
life_time = fields.Integer('Life Time',
|
||||
|
@ -28,6 +28,7 @@ class Template:
|
|||
|
||||
|
||||
class Lot:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'stock.lot'
|
||||
|
||||
life_date = fields.Date('End of Life Date',
|
||||
|
@ -122,6 +123,7 @@ class Lot:
|
|||
|
||||
|
||||
class Location:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'stock.location'
|
||||
|
||||
expired = fields.Boolean('Expired Products\' Location',
|
||||
|
@ -160,6 +162,7 @@ class Location:
|
|||
|
||||
|
||||
class Move:
|
||||
__metaclass__ = PoolMeta
|
||||
__name__ = 'stock.move'
|
||||
|
||||
to_location_allow_expired = fields.Function(
|
||||
|
|
Loading…
Reference in a new issue