Migrate to py3

This commit is contained in:
Raimon Esteve 2018-09-19 07:55:46 +02:00
parent 666c1ee822
commit 02fb40fb33
4 changed files with 8 additions and 11 deletions

View File

@ -2,13 +2,13 @@
# The COPYRIGHT file at the top level of this repository contains the full
# copyright notices and license terms.
from trytond.pool import Pool
from .shipment import *
from .move import *
from . import shipment
from . import move
def register():
Pool.register(
Move,
move.Move,
module='stock_shipment_return', type_='model')
Pool.register(
CreateShipmentOutReturn,
shipment.CreateShipmentOutReturn,
module='stock_shipment_return', type_='wizard')

View File

@ -6,10 +6,9 @@ from trytond.pool import PoolMeta
__all__ = ['Move']
class Move:
__metaclass__ = PoolMeta
class Move(metaclass=PoolMeta):
__name__ = 'stock.move'
@classmethod
def _get_origin(cls):
models = super(Move, cls)._get_origin()

View File

@ -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 = {}

View File

@ -7,6 +7,7 @@ from trytond.transaction import Transaction
from trytond.wizard import Wizard, StateAction
__all__ = ['CreateShipmentOutReturn']
MOVE_EXCLUDE_FIELDS = ['origin', 'shipment', 'invoice_lines']
class CreateShipmentOutReturn(Wizard):