diff --git a/payment_status_in_sale/__manifest__.py b/payment_status_in_sale/__manifest__.py index e610ba2ba..52975a1a4 100644 --- a/payment_status_in_sale/__manifest__.py +++ b/payment_status_in_sale/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'Sale Order Payment Status', - 'version': '18.0.1.0.3', + 'version': '18.0.1.0.4', 'category': 'Sales', 'summary': 'Displays the payment status and details in the Sale Order.', 'description': """This module is used to display the invoice status of the diff --git a/payment_status_in_sale/doc/RELEASE_NOTES.md b/payment_status_in_sale/doc/RELEASE_NOTES.md index 0a6c91a61..0ca5e847f 100644 --- a/payment_status_in_sale/doc/RELEASE_NOTES.md +++ b/payment_status_in_sale/doc/RELEASE_NOTES.md @@ -18,4 +18,9 @@ #### 20.09.2025 #### Version 18.0.1.0.3 ##### ADD -- Issue resolved while clicking view from payment info. \ No newline at end of file +- Issue resolved while clicking view from payment info. + +#### 09.12.2025 +#### Version 18.0.1.0.4 +##### BUG_FIX +- Resolved the issue where the badge was not appearing as “NOT PAID”. diff --git a/payment_status_in_sale/models/sale_order.py b/payment_status_in_sale/models/sale_order.py index d7a5252ca..0d1b7af51 100644 --- a/payment_status_in_sale/models/sale_order.py +++ b/payment_status_in_sale/models/sale_order.py @@ -60,7 +60,7 @@ class SaleOrder(models.Model): payment_states = posted_invoices.mapped('payment_state') status_length = len(payment_states) if order.amount_due > 0: - if 'partial' in payment_states or 'not_paid' in payment_states: + if 'partial' in payment_states: order.payment_status = 'Partially Paid' elif 'not_paid' in payment_states and status_length == payment_states.count( 'not_paid'): @@ -108,6 +108,7 @@ class SaleOrder(models.Model): rec.amount_due = total_invoiced - total_paid + def action_open_business_doc(self): """ This method is intended to be used in the context of an account.move record.