Browse Source

:Dec 15 [ADD] Bug Fixed 'payment_status_in_sale'

18.0
Risvana Cybro 3 days ago
parent
commit
df272347dc
  1. 2
      payment_status_in_sale/__manifest__.py
  2. 5
      payment_status_in_sale/doc/RELEASE_NOTES.md
  3. 3
      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.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

5
payment_status_in_sale/doc/RELEASE_NOTES.md

@ -19,3 +19,8 @@
#### Version 18.0.1.0.3
##### ADD
- 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”.

3
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.

Loading…
Cancel
Save