On shipment a good default order is by target location and product, but we add the id to have deterministic result and remove the target location if by design it is always the same. On report with sequence on location, the order is fixed by the sequence of the location. Closes #7819
10 lines
340 B
Python
10 lines
340 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from trytond.model import sequence_ordered
|
|
from trytond.pool import PoolMeta
|
|
|
|
|
|
class Location(sequence_ordered(), metaclass=PoolMeta):
|
|
__name__ = 'stock.location'
|
|
_order_name = 'sequence'
|