Skip to content
Snippets Groups Projects
Commit ae24d715 authored by Benjamin - Le Filament's avatar Benjamin - Le Filament
Browse files

[fix] fix errors due to account_payment_order module changes

parent 6c34e178
Branches
Tags
No related merge requests found
......@@ -33,7 +33,8 @@ class AccountPaymentOrder(models.Model):
def _compute_bank_line_amount(self):
for po in self:
po.bank_line_amount = sum(po.bank_line_ids.mapped("amount_currency"))
po.bank_line_amount = sum(po.payment_ids.filtered(
lambda p: not p.reversed_entry_id).mapped("amount_total_signed"))
def _compute_attachment_ids(self):
Attachment = self.env["ir.attachment"]
......
......@@ -78,7 +78,7 @@
</div>
</xpath>
<!-- Sheet Buttons -->
<xpath expr="//field[@name='bank_line_count']" position="after">
<xpath expr="//field[@name='payment_count']" position="after">
<field name="payment_line_amount" />
<field name="bank_line_amount" />
<button
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment