mirror of
https://github.com/NaN-tic/trytond-sale_discount_visible.git
synced 2023-12-14 05:13:13 +01:00
Migrate to py3
This commit is contained in:
parent
37d25b76cc
commit
df13fca856
4 changed files with 7 additions and 13 deletions
|
@ -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):
|
||||
|
|
5
setup.py
5
setup.py
|
@ -7,10 +7,7 @@ from setuptools import setup
|
|||
import re
|
||||
import os
|
||||
import io
|
||||
try:
|
||||
from configparser import ConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import ConfigParser
|
||||
from configparser import ConfigParser
|
||||
|
||||
MODULE2PREFIX = {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue