adapt to python3

This commit is contained in:
?ngel ?lvarez 2019-01-16 16:04:34 +01:00
parent b31d01c17d
commit 0468c09543
2 changed files with 3 additions and 4 deletions

View File

@ -8,9 +8,9 @@ from trytond.pyson import If, Bool, Eval
__all__ = ['CarrierSelection']
class CarrierSelection:
class CarrierSelection(metaclass=PoolMeta):
__name__ = 'carrier.selection'
__metaclass__ = PoolMeta
start_zip = fields.Many2One('country.zip', 'Start Zip',
domain=[
If(Bool(Eval('to_country')),

View File

@ -7,8 +7,7 @@ from trytond.transaction import Transaction
__all__ = ['Sale']
class Sale:
__metaclass__ = PoolMeta
class Sale(metaclass=PoolMeta):
__name__ = 'sale.sale'
def _get_carrier_selection_pattern(self):