mirror of
https://github.com/NaN-tic/trytond-sale_opportunity_category-old.git
synced 2023-12-14 02:52:56 +01:00
21 lines
545 B
Python
21 lines
545 B
Python
|
# The COPYRIGHT file at the top level of this repository contains the full
|
||
|
# copyright notices and license terms.
|
||
|
from trytond.model import ModelView, ModelSQL, fields
|
||
|
from trytond.pool import PoolMeta
|
||
|
|
||
|
__all__ = ['Opportunity', 'Category']
|
||
|
__metaclass__ = PoolMeta
|
||
|
|
||
|
|
||
|
class Category(ModelSQL, ModelView):
|
||
|
'Category'
|
||
|
__name__ = 'sale.opportunity.category'
|
||
|
name = fields.Char('Name', required=True)
|
||
|
|
||
|
|
||
|
class Opportunity:
|
||
|
__name__ = 'sale.opportunity'
|
||
|
|
||
|
category = fields.Many2One('sale.opportunity.category',
|
||
|
'Category')
|