Skip to content

Instantly share code, notes, and snippets.

@ianjosephwilson
Created January 26, 2013 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianjosephwilson/4644691 to your computer and use it in GitHub Desktop.
Save ianjosephwilson/4644691 to your computer and use it in GitHub Desktop.
import logging
from decimal import Decimal
from trytond.modules.company import CompanyReport
from trytond.wizard import Wizard, StateAction
from trytond.pool import Pool, PoolMeta
from trytond.transaction import Transaction
__metaclass__ = PoolMeta
log = logging.getLogger(__name__)
class CloseSale(Wizard):
""" Close Sale """
__name__ = 'sale_wizard.close'
start = StateAction('sale_wizard.close_sale_keyword')
@classmethod
def __setup__(cls):
super(CloseSale, cls).__setup__()
def transition_start(self):
return 'end'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment