Migrate to py3
This commit is contained in:
parent
37d25b76cc
commit
df13fca856
|
@ -1,14 +1,13 @@
|
|||
# This file is part of the sale_discount_visible module for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from .sale import *
|
||||
from .invoice import *
|
||||
from . import sale
|
||||
from . import invoice
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
SaleLine,
|
||||
InvoiceLine,
|
||||
sale.SaleLine,
|
||||
invoice.InvoiceLine,
|
||||
module='sale_discount_visible', type_='model')
|
||||
|
|
|
@ -9,8 +9,7 @@ from trytond.transaction import Transaction
|
|||
__all__ = ['InvoiceLine']
|
||||
|
||||
|
||||
class InvoiceLine:
|
||||
__metaclass__ = PoolMeta
|
||||
class InvoiceLine(metaclass=PoolMeta):
|
||||
__name__ = 'account.invoice.line'
|
||||
|
||||
def update_prices_visible_discount(self):
|
||||
|
|
3
sale.py
3
sale.py
|
@ -8,8 +8,7 @@ from trytond.model import fields
|
|||
__all__ = ['SaleLine']
|
||||
|
||||
|
||||
class SaleLine:
|
||||
__metaclass__ = PoolMeta
|
||||
class SaleLine(metaclass=PoolMeta):
|
||||
__name__ = 'sale.line'
|
||||
|
||||
def update_prices_visible_discount(self):
|
||||
|
|
Loading…
Reference in New Issue