diff --git a/report/scop_contribution_report.py b/report/scop_contribution_report.py index 7cbfcc5ad78ed5ed5547537333bc25f10ef8cdac..0e06a3cb5f787de025c944c7cbf6f2ed57230e76 100644 --- a/report/scop_contribution_report.py +++ b/report/scop_contribution_report.py @@ -198,7 +198,9 @@ class ScopContributionReport(models.Model): payments_html = False if self.source == "odoo": invoice_ids = self.get_invoice_contribution() - payment_ids = invoice_ids.mapped("move_line_payment_ids") + payment_ids = invoice_ids.mapped("move_line_payment_ids").filtered( + lambda p: p.move_id.move_type == "entry" + ) if payment_ids: payments = payment_ids.mapped( lambda p: { @@ -208,14 +210,6 @@ class ScopContributionReport(models.Model): "credit": p.credit, "class": "", } - if p.move_id.move_type not in ("out_invoice", "out_refund") - else { - "date": p.date, - "name": p.name, - "ref": "", - "credit": p.credit, - "class": "text-danger", - } ) payments_html = self._get_html_table(payments) if not payments_html: diff --git a/views/res_partner.xml b/views/res_partner.xml index 43b0281a37b72c5add99913718081dab273929e3..860677c714e48f72b37a84b7491dd10e71303104 100644 --- a/views/res_partner.xml +++ b/views/res_partner.xml @@ -30,10 +30,6 @@ <field name='amount_called' /> <field name='amount_paid' /> <field name='amount_due' /> - <field - name='is_loss' - style="text-align: center;" - /> </tree> </field> </page>