trytond-stock_shipment_review/shipment.py

19 lines
478 B
Python
Raw Normal View History

2015-03-31 16:20:46 +02:00
# 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__ = ['ShipmentOut']
__metaclass__ = PoolMeta
class ShipmentOut:
__name__ = 'stock.shipment.out'
reviewed = fields.Boolean('Reviewed')
@classmethod
def done(cls, shipments):
super(ShipmentOut, cls).done(shipments)
cls.write(shipments, {'reviewed': True})