trytond-commission_user/invoice.py
2015-11-27 16:53:53 +01:00

18 lines
486 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__ = ['Invoice']
__metaclass__ = PoolMeta
class Invoice:
__name__ = 'account.invoice'
@staticmethod
def default_agent():
if Transaction().context.get('agent'):
return Transaction().context['agent']