mirror of
https://github.com/NaN-tic/trytond-sale_invoice_cancel.git
synced 2023-12-14 07:22:55 +01:00
17 lines
538 B
Python
17 lines
538 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.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()
|