trytond-stock_move_box/move.py

19 lines
486 B
Python
Raw Normal View History

2016-02-17 12:37:33 +01:00
# This file is part of the stock_move_box module for Tryton.
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
__all__ = ['Move']
class Move:
2016-03-29 17:26:09 +02:00
__metaclass__ = PoolMeta
2016-02-17 12:37:33 +01:00
__name__ = 'stock.move'
box = fields.Char('Box')
2016-02-17 12:37:33 +01:00
@classmethod
def __setup__(cls):
super(Move, cls).__setup__()
cls._order.insert(1, ('box', 'ASC'))