trytond-stock_shipment_retu.../move.py

18 lines
507 B
Python

# This file is part of the stock_shipment_return module for Tryton.
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import PoolMeta
__all__ = ['Move']
class Move(metaclass=PoolMeta):
__name__ = 'stock.move'
@classmethod
def _get_origin(cls):
models = super(Move, cls)._get_origin()
if not 'stock.shipment.out' in models:
models.append('stock.shipment.out')
return models