Browse Source

Sep 20: [FIX] Bug Fixed 'payment_status_in_sale'

18.0
Risvana Cybro 3 days ago
parent
commit
53d2f1ba15
  1. 2
      payment_status_in_sale/__manifest__.py
  2. 7
      payment_status_in_sale/doc/RELEASE_NOTES.md
  3. 6
      payment_status_in_sale/models/sale_order.py

2
payment_status_in_sale/__manifest__.py

@ -21,7 +21,7 @@
############################################################################### ###############################################################################
{ {
'name': 'Sale Order Payment Status', 'name': 'Sale Order Payment Status',
'version': '18.0.1.0.1', 'version': '18.0.1.0.3',
'category': 'Sales', 'category': 'Sales',
'summary': 'Displays the payment status and details in the Sale Order.', 'summary': 'Displays the payment status and details in the Sale Order.',
'description': """This module is used to display the invoice status of the 'description': """This module is used to display the invoice status of the

7
payment_status_in_sale/doc/RELEASE_NOTES.md

@ -13,4 +13,9 @@
#### 15.07.2025 #### 15.07.2025
#### Version 18.0.1.0.2 #### Version 18.0.1.0.2
##### ADD ##### ADD
- Issue resolved in computing the amount due by considering only posted invoices. - 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.

6
payment_status_in_sale/models/sale_order.py

@ -105,6 +105,7 @@ class SaleOrder(models.Model):
total_invoiced -= invoice.amount_total total_invoiced -= invoice.amount_total
total_paid -= ( total_paid -= (
invoice.amount_total - invoice.amount_residual) invoice.amount_total - invoice.amount_residual)
rec.amount_due = total_invoiced - total_paid rec.amount_due = total_invoiced - total_paid
def action_open_business_doc(self): def action_open_business_doc(self):
@ -117,7 +118,10 @@ class SaleOrder(models.Model):
name = _("Journal Entry") name = _("Journal Entry")
move = self.env['account.move'].browse(self.id) move = self.env['account.move'].browse(self.id)
res_model = 'account.payment' 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 { return {
'name': name, 'name': name,
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',

Loading…
Cancel
Save