Skip to content
Snippets Groups Projects
Commit a2de4051 authored by Thomas Josse (thjo)'s avatar Thomas Josse (thjo)
Browse files

[FIX] event_sale: remove 'need to be paid' banner for free ticket


This commit fixes an issue where if a ticket is free, the registration would
still "need to be paid" by the attendee.

This behavior is contradictory for a free ticket, so the attendee now has to
pay the ticket if it is not paid and is not a free ticket.

task-3012928

closes odoo/odoo#105542

X-original-commit: 2b0587fb
Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
parent d15f08de
Branches
Tags
No related merge requests found
......@@ -128,6 +128,6 @@ class EventRegistration(models.Model):
res.update({
'payment_status': self.payment_status,
'payment_status_value': dict(self._fields['payment_status']._description_selection(self.env))[self.payment_status],
'has_to_pay': not self.is_paid,
'has_to_pay': self.payment_status == 'to_pay',
})
return res
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment