diff --git a/base_accounting_kit/__manifest__.py b/base_accounting_kit/__manifest__.py index e1412fbd0..05d13f3bd 100644 --- a/base_accounting_kit/__manifest__.py +++ b/base_accounting_kit/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': 'Odoo 17 Full Accounting Kit', - 'version': '17.0.1.0.3', + 'version': '17.0.1.0.4', 'category': 'Accounting', 'summary': """Odoo 17 Accounting, Odoo 17 Accounting Reports, Odoo Accounting, Odoo17 Financial Reports, Odoo17 Asset, Odoo17 Profit and Loss, PDC, Followups, Odo17""", 'description': """ Odoo 17 Accounting, The module used to manage the Full diff --git a/base_accounting_kit/models/res_partner.py b/base_accounting_kit/models/res_partner.py index 7635e1fe8..ff902b920 100644 --- a/base_accounting_kit/models/res_partner.py +++ b/base_accounting_kit/models/res_partner.py @@ -95,9 +95,13 @@ class ResPartner(models.Model): return today def get_delay(self): - delay = """select id,delay from followup_line where followup_id = - (select id from account_followup where company_id = %s) - order by delay limit 1""" + delay = """SELECT fl.id, fl.delay + FROM followup_line fl + JOIN account_followup af ON fl.followup_id = af.id + WHERE af.company_id = %s + ORDER BY fl.delay; + + """ self._cr.execute(delay, [self.env.company.id]) record = self._cr.dictfetchall() return record diff --git a/base_accounting_kit/views/account_payment_view.xml b/base_accounting_kit/views/account_payment_view.xml index ed2e87217..4b889542c 100644 --- a/base_accounting_kit/views/account_payment_view.xml +++ b/base_accounting_kit/views/account_payment_view.xml @@ -80,7 +80,7 @@ ref="account.view_account_payment_register_form"/> - +