trytond-sale_invoice_cancel/sale.py

19 lines
567 B
Python
Raw Normal View History

2012-07-18 11:09:33 +02:00
#This file is part sale_invoice_cancel module for Tryton.
#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
2012-07-09 19:23:39 +02:00
from trytond.model import Workflow, ModelView, ModelSQL, fields
from trytond.tools import safe_eval, datetime_strftime
from trytond.transaction import Transaction
from trytond.pool import Pool
class Invoice(ModelSQL, ModelView):
_name = 'account.invoice'
@Workflow.transition('draft')
def draft(self, ids):
'''Available cancel invoices from sale'''
pass
Invoice()