diff --git a/payment_status_in_sale/__manifest__.py b/payment_status_in_sale/__manifest__.py index e26af7933..e610ba2ba 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.1', + 'version': '18.0.1.0.3', '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 3ac9a32e0..0a6c91a61 100644 --- a/payment_status_in_sale/doc/RELEASE_NOTES.md +++ b/payment_status_in_sale/doc/RELEASE_NOTES.md @@ -13,4 +13,9 @@ #### 15.07.2025 #### Version 18.0.1.0.2 ##### ADD -- Issue resolved in computing the amount due by considering only posted invoices. \ No newline at end of file +- Issue resolved in computing the amount due by considering only posted invoices. + +#### 20.09.2025 +#### Version 18.0.1.0.3 +##### ADD +- Issue resolved while clicking view from payment info. \ No newline at end of file diff --git a/payment_status_in_sale/models/sale_order.py b/payment_status_in_sale/models/sale_order.py index edb6b91f3..d7a5252ca 100644 --- a/payment_status_in_sale/models/sale_order.py +++ b/payment_status_in_sale/models/sale_order.py @@ -105,6 +105,7 @@ class SaleOrder(models.Model): total_invoiced -= invoice.amount_total total_paid -= ( invoice.amount_total - invoice.amount_residual) + rec.amount_due = total_invoiced - total_paid def action_open_business_doc(self): @@ -117,7 +118,10 @@ class SaleOrder(models.Model): name = _("Journal Entry") move = self.env['account.move'].browse(self.id) res_model = 'account.payment' - res_id = move.payment_id.id + payments = move.payment_ids + res_id = payments.id + + # res_id = move.payment_id.id return { 'name': name, 'type': 'ir.actions.act_window',