Skip to content

Commit

Permalink
Merge pull request OpenG2P#176 from lalithkota/15.0-develop
Browse files Browse the repository at this point in the history
G2P Connect PM: Fixed null status check cron. Precommit: Fixed errors
  • Loading branch information
shibu-narayanan authored Jan 17, 2024
2 parents 724d854 + e13cda9 commit a28d4d2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions g2p_payment_g2p_connect/models/payment_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ def payments_status_check(self, id_):

def stop_status_check_cron(self):
for rec in self:
rec.status_check_cron_id.unlink()
rec.status_check_cron_id = None
if rec.status_check_cron_id:
rec.status_check_cron_id.unlink()
rec.status_check_cron_id = None

def _get_payee_fa(self, payment):
self.ensure_one()
Expand Down
4 changes: 2 additions & 2 deletions g2p_program_assessment/static/src/js/g2p_assessment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion g2p_programs/models/entitlement.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion g2p_programs/models/payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ class G2PPaymentBatchTag(models.Model):

domain = fields.Text(default="[]")

max_batch_size = fields.Integer(default=500)
max_batch_size = fields.Integer(default=500)

0 comments on commit a28d4d2

Please sign in to comment.