View difference between Paste ID: kFtb5JuP and JmJxHYgn
SHOW: | | - or go back to the newest paste.
1-
from __future__ import with_statement
1+
from trytond.pool import PoolMeta
2-
from trytond.model import Workflow, ModelView, ModelSQL, fields
2+
3-
from trytond.pool import Pool, PoolMeta
3+
4
__metaclass__ = PoolMeta
5
6
class Sale:
7
    __name__ = 'sale.sale'
8-
class Sale(Workflow, ModelSQL, ModelView):
8+
9-
    'Sale'
9+
    def _get_invoice_sale(self, invoice_type):
10
        invoice = super(Sale, self)._get_invoice_sale(invoice_type)
11
        invoice.description = self.description
12
        return invoice