Migrate to python 3

This commit is contained in:
Albert Cervera i Areny
2018-09-03 23:37:02 +02:00
parent e4461e24cf
commit b48f3318d9
4 changed files with 6 additions and 14 deletions

View File

@@ -18,8 +18,7 @@ __all__ = ['Sale', 'SalePaymentForm', 'WizardSalePayment',
'WizardSaleReconcile']
class Sale:
__metaclass__ = PoolMeta
class Sale(metaclass=PoolMeta):
__name__ = 'sale.sale'
payments = fields.One2Many('account.statement.line', 'sale', 'Payments')
paid_amount = fields.Function(fields.Numeric('Paid Amount', readonly=True),