18 lines
663 B
Python
18 lines
663 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
|
|
from trytond.model import fields
|
|
|
|
|
|
class Opportunity(metaclass=PoolMeta):
|
|
__name__ = 'sale.opportunity'
|
|
agent = fields.Many2One('commission.agent', "Agent")
|
|
agency = fields.Many2One('commission.agent', "Agency")
|
|
source = fields.Selection([
|
|
('databases', 'Databases'),
|
|
('social_network', 'Social Network'),
|
|
('direct', 'Direct'),
|
|
('referred', 'Referred'),
|
|
('other', 'Other'),
|
|
], 'Source', required=True)
|