Files
tryton/sale.py
T
Jonathan Levy 52afa0d39d Add Python3 support
issue3211
review16061002
2016-03-10 22:24:04 +01:00

19 lines
572 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.pool import PoolMeta
__all__ = ['Sale']
class Sale:
__metaclass__ = PoolMeta
__name__ = 'sale.sale'
@classmethod
def proceed(cls, sales):
for sale in sales:
if sale.state == 'confirmed' and sale.shipment_method == 'order':
sale.party.check_credit_limit(sale.untaxed_amount,
origin=str(sale))
return super(Sale, cls).proceed(sales)