From 21d908e64fc773cb44fa716a5a59b5b1c149d832 Mon Sep 17 00:00:00 2001 From: mkumar-02 Date: Wed, 17 Jan 2024 09:25:43 +0530 Subject: [PATCH 1/2] Fixed inkind entitlement issue. --- g2p_entitlement_in_kind/__manifest__.py | 2 +- g2p_programs/models/entitlement.py | 2 +- g2p_programs/models/payment.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/g2p_entitlement_in_kind/__manifest__.py b/g2p_entitlement_in_kind/__manifest__.py index cdfc4708..2bfc35af 100644 --- a/g2p_entitlement_in_kind/__manifest__.py +++ b/g2p_entitlement_in_kind/__manifest__.py @@ -8,7 +8,7 @@ "website": "https://openg2p.org", "license": "Other OSI approved licence", "development_status": "Alpha", - "depends": ["spp_programs", "spp_entitlement_in_kind"], + "depends": ["spp_programs", "spp_entitlement_in_kind", "spp_service_points"], "data": [ "views/in_kind.xml", ], diff --git a/g2p_programs/models/entitlement.py b/g2p_programs/models/entitlement.py index 2f98f73e..d4847a1f 100644 --- a/g2p_programs/models/entitlement.py +++ b/g2p_programs/models/entitlement.py @@ -28,7 +28,7 @@ def _generate_code(self): ern = fields.Char( compute="_compute_generate_ern", - string="ERN", + string="ERN", readonly=True, copy=False, store=True, diff --git a/g2p_programs/models/payment.py b/g2p_programs/models/payment.py index 7539e1b2..8b8d9b53 100644 --- a/g2p_programs/models/payment.py +++ b/g2p_programs/models/payment.py @@ -177,4 +177,4 @@ class G2PPaymentBatchTag(models.Model): domain = fields.Text(default="[]") - max_batch_size = fields.Integer(default=500) \ No newline at end of file + max_batch_size = fields.Integer(default=500) From 9c5a0e1abd3da2af7c86abbcc639bbf3cbc12158 Mon Sep 17 00:00:00 2001 From: mkumar-02 Date: Wed, 17 Jan 2024 09:33:41 +0530 Subject: [PATCH 2/2] Fixed pre commit issues. --- g2p_program_assessment/static/src/js/g2p_assessment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/g2p_program_assessment/static/src/js/g2p_assessment.js b/g2p_program_assessment/static/src/js/g2p_assessment.js index 3f3e88bc..7e12a4e3 100644 --- a/g2p_program_assessment/static/src/js/g2p_assessment.js +++ b/g2p_program_assessment/static/src/js/g2p_assessment.js @@ -34,8 +34,8 @@ var G2PAssessmentWizardWidget = AbstractField.extend({ } else if (this.nodeOptions.not_readonly_field) { this.readonly = !this.recordData[this.nodeOptions.not_readonly_field]; } - this.showAddCommentsButton = this.nodeOptions.show_add_comments_button != false; - this.showAddAssessmentsButton = this.nodeOptions.show_add_assessments_button != false; + this.showAddCommentsButton = this.nodeOptions.show_add_comments_button !== false; + this.showAddAssessmentsButton = this.nodeOptions.show_add_assessments_button !== false; console.log(this); this.assessmentAddMode = 0; this.assessmentAddModeStarted = 0;