- Add an origin reference on sale to point to opportunity - Update of opportunity amount based on linked sales - Add a state 'won' - Allow to edit the probability after conversion - Update reports for the new 'won' state issue3320 review6031002
25 lines
715 B
Python
25 lines
715 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 Pool
|
|
from .opportunity import *
|
|
from .configuration import *
|
|
from .sale import *
|
|
|
|
|
|
def register():
|
|
Pool.register(
|
|
SaleOpportunity,
|
|
SaleOpportunityLine,
|
|
SaleOpportunityHistory,
|
|
SaleOpportunityEmployee,
|
|
OpenSaleOpportunityEmployeeStart,
|
|
SaleOpportunityMonthly,
|
|
SaleOpportunityEmployeeMonthly,
|
|
Configuration,
|
|
Sale,
|
|
module='sale_opportunity', type_='model')
|
|
Pool.register(
|
|
OpenSaleOpportunityEmployee,
|
|
module='sale_opportunity', type_='wizard')
|