You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
528 B
21 lines
528 B
#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. |
|
|
|
from trytond.model import ModelView, Workflow |
|
from trytond.pool import Pool, PoolMeta |
|
|
|
__all__ = ['Invoice'] |
|
__metaclass__ = PoolMeta |
|
|
|
class Invoice: |
|
__name__ = 'account.invoice' |
|
|
|
@classmethod |
|
@ModelView.button |
|
@Workflow.transition('draft') |
|
def draft(cls, invoices): |
|
'''Available cancel invoices from purchase''' |
|
pass |
|
|
|
|
|
|