Skip to content
Extraits de code Groupes Projets
Valider ae24d715 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[fix] fix errors due to account_payment_order module changes

parent 6c34e178
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -33,7 +33,8 @@ class AccountPaymentOrder(models.Model): ...@@ -33,7 +33,8 @@ class AccountPaymentOrder(models.Model):
def _compute_bank_line_amount(self): def _compute_bank_line_amount(self):
for po in 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): def _compute_attachment_ids(self):
Attachment = self.env["ir.attachment"] Attachment = self.env["ir.attachment"]
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</div> </div>
</xpath> </xpath>
<!-- Sheet Buttons --> <!-- 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="payment_line_amount" />
<field name="bank_line_amount" /> <field name="bank_line_amount" />
<button <button
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter