18 lines
478 B
Python
18 lines
478 B
Python
# This file is part commission_user 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
|
|
from trytond.transaction import Transaction
|
|
|
|
__all__ = ['Sale']
|
|
|
|
|
|
class Sale:
|
|
__metaclass__ = PoolMeta
|
|
__name__ = 'sale.sale'
|
|
|
|
@staticmethod
|
|
def default_agent():
|
|
if Transaction().context.get('agent'):
|
|
return Transaction().context['agent']
|