Skip to content

Commit

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

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

@api.depends(
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")
pmt_weightage = fields.Float(string="Weightage", digits=(0, 7))

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

0 comments on commit e4fcb54

Please sign in to comment.