mirror of
https://github.com/NaN-tic/trytond-commission_user.git
synced 2023-12-14 02:53:06 +01:00
18 lines
486 B
Python
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']
|