adapt to python3
This commit is contained in:
parent
b31d01c17d
commit
0468c09543
|
@ -8,9 +8,9 @@ from trytond.pyson import If, Bool, Eval
|
||||||
__all__ = ['CarrierSelection']
|
__all__ = ['CarrierSelection']
|
||||||
|
|
||||||
|
|
||||||
class CarrierSelection:
|
class CarrierSelection(metaclass=PoolMeta):
|
||||||
__name__ = 'carrier.selection'
|
__name__ = 'carrier.selection'
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
start_zip = fields.Many2One('country.zip', 'Start Zip',
|
start_zip = fields.Many2One('country.zip', 'Start Zip',
|
||||||
domain=[
|
domain=[
|
||||||
If(Bool(Eval('to_country')),
|
If(Bool(Eval('to_country')),
|
||||||
|
|
3
sale.py
3
sale.py
|
@ -7,8 +7,7 @@ from trytond.transaction import Transaction
|
||||||
__all__ = ['Sale']
|
__all__ = ['Sale']
|
||||||
|
|
||||||
|
|
||||||
class Sale:
|
class Sale(metaclass=PoolMeta):
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__name__ = 'sale.sale'
|
__name__ = 'sale.sale'
|
||||||
|
|
||||||
def _get_carrier_selection_pattern(self):
|
def _get_carrier_selection_pattern(self):
|
||||||
|
|
Loading…
Reference in New Issue