diff --git a/portal_event_tickets/tests/common.py b/portal_event_tickets/tests/common.py index 43979b2..161c2ef 100644 --- a/portal_event_tickets/tests/common.py +++ b/portal_event_tickets/tests/common.py @@ -79,9 +79,9 @@ def _create_ticket(self, ticket_type, partner, event): { "partner_id": partner.id, "note": "Invoice after delivery", - "payment_term_id": self.env.ref("account.account_payment_term").id, } ) + sale_order.onchange_partner_id() # In the sale order I add some sale order lines. i choose event product sale_order_line = self.env["sale.order.line"].create(