diff --git a/booking.py b/booking.py index e5da19a..89f14e0 100644 --- a/booking.py +++ b/booking.py @@ -578,7 +578,7 @@ class Booking(Workflow, ModelSQL, ModelView): ('type', '=', 'revenue'), ], limit=1) - address = Party.address_get(party, type='invoice') + address = party.address_get(type='invoice') payment_term = data.get('payment_term', None) if not payment_term: payment_terms = PaymentTerm.search([])