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. 5
      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',
'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

5
payment_status_in_sale/doc/RELEASE_NOTES.md

@ -14,3 +14,8 @@
#### Version 18.0.1.0.2
##### ADD
- 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_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',

Loading…
Cancel
Save