OCA/sale-workflow

[14.0] sale_advance_payment: advance_payment_status field calculation

Drsmartinkus opened this issue · 0 comments

[14.0] sale_advance_payment: advance_payment_status field calculation

Module

sale_advance_payment

Describe the bug

It seems there is a bug with how field advance_payment_status is calculated when you dont create any advance payment and just follow with invoice and making that invoice paid. In this scenario advance_payment_status is still as not_paid.
Seem that issue is on these line which checks for linked payments to Sale Order via this line

To Reproduce

Affected versions: 14.0 possible 15 too

Steps to reproduce the behavior:

  1. Create Sale Order
  2. Create Invoice
  3. Pay that Invoice in full.
  4. Check advance_payment_status

SO63090-Odoo
SO63090-Odoo-2
INV2023026183-Odoo

Expected behavior
advance_payment_status should be set as paid, as invoice is fully paid and residual amount is 0.