Squashed commit of the following: commit5adce1fd15Author: Marc Durepos <marc@bemade.org> Date: Thu Sep 4 12:33:00 2025 -0400 [MIG] 17.0..18.0 account_credit_hold Migrated module account_credit_hold from 17.0 to 18.0. Fixed views and models and wrote test cases to check functionality. commit91c52af6f4Author: Marc Durepos <marc@bemade.org> Date: Thu Sep 4 11:38:37 2025 -0400 Initial migration of account_credit_hold for testing in 18.0
16 lines
571 B
Python
16 lines
571 B
Python
from odoo import models, fields, api, _
|
|
|
|
|
|
class FollowUpReport(models.AbstractModel):
|
|
_inherit = 'account.followup.report'
|
|
|
|
def _get_followup_report_options(self, partner, options=None):
|
|
"""
|
|
Override to include credit hold information in followup report options.
|
|
"""
|
|
res = super()._get_followup_report_options(partner, options)
|
|
res.update({
|
|
'credit_hold': partner.followup_line_id.account_hold if partner.followup_line_id else False,
|
|
'partner_on_hold': partner.on_hold
|
|
})
|
|
return res
|