mirror of
https://github.com/NaN-tic/trytond-carrier_zip.git
synced 2023-12-14 02:13:03 +01:00
Add python 3 support
This commit is contained in:
parent
f1eb630c3f
commit
6341d4d0ef
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,6 @@
|
||||||
from trytond.model import ModelView, ModelSQL, fields
|
from trytond.model import ModelView, ModelSQL, fields
|
||||||
from trytond.pool import Pool, PoolMeta
|
from trytond.pool import Pool, PoolMeta
|
||||||
|
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
__all__ = ['CarrierZip', 'Carrier']
|
__all__ = ['CarrierZip', 'Carrier']
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,6 +37,7 @@ class CarrierZip(ModelSQL, ModelView):
|
||||||
|
|
||||||
|
|
||||||
class Carrier:
|
class Carrier:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'carrier'
|
__name__ = 'carrier'
|
||||||
zips = fields.One2Many('carrier.zip', 'carrier', 'Carrier Zips')
|
zips = fields.One2Many('carrier.zip', 'carrier', 'Carrier Zips')
|
||||||
|
|
||||||
|
|
2
sale.py
2
sale.py
|
@ -7,10 +7,10 @@ from trytond.pyson import Eval
|
||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
|
|
||||||
__all__ = ['Sale']
|
__all__ = ['Sale']
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
|
|
||||||
|
|
||||||
class Sale:
|
class Sale:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'sale.sale'
|
__name__ = 'sale.sale'
|
||||||
carrier_domain = fields.Function(fields.One2Many('carrier', None,
|
carrier_domain = fields.Function(fields.One2Many('carrier', None,
|
||||||
'Carrier Domain', depends=['shipment_address', 'party']),
|
'Carrier Domain', depends=['shipment_address', 'party']),
|
||||||
|
|
Loading…
Reference in a new issue