Skip to content

Commit

Permalink
changed pmt socre range to 4 digits after decimal.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumar-02 committed Nov 27, 2023
1 parent e4fcb54 commit d22a02b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g2p_proxy_means_test/models/program_registrant_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class G2PProgramRegistrantInfo(models.Model):
_inherit = "g2p.program.registrant_info"

pmt_score = fields.Float(
"PMT Score", compute="_compute_pmt_score", digits=(0, 7), store=True
"PMT Score", compute="_compute_pmt_score", digits=(0, 4), store=True
)
program_pmt_config = fields.Boolean(related="program_id.pmt_config", readonly=True)

Expand Down
2 changes: 1 addition & 1 deletion g2p_proxy_means_test/models/proxy_means_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ProxyMeanTestParams(models.Model):

program_id = fields.Many2one("g2p.program")
pmt_field = fields.Selection(selection="get_fields_label", string="Field")
pmt_weightage = fields.Float(string="Weightage", digits=(0, 7))
pmt_weightage = fields.Float(string="Weightage", digits=(0, 4))

def get_fields_label(self):
reg_info = self.env["g2p.program.registrant_info"]
Expand Down

0 comments on commit d22a02b

Please sign in to comment.