v 14.0 Third Party 5
Download for v 14.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Discuss (mail)
Lines of code 186
Technical Name supplier_quality_index
LicenseAGPL-3
Websitehttps://github.com/Escodoo/purchase-addons
You bought this module and need support? Click here!

Supplier Quality Index

Beta License: AGPL-3 Escodoo/purchase-addons

This module implements a simple and dynamic mechanism to calculate the Supplier Quality Index (SQI).”

Table of contents

Usage

  • Install the module.
  • Navigate to Settings > SQI > SQI Profile.
  • Create a new profile.
  • Assign the profile to suppliers.
  • Execute the Cron Job titled “Update Supplier Quality Index.”

Profile Pyhon Code Sample

For this sample, the following modules are necessary:

  • Purchase Work Acceptance (OCA)
  • Purchase Work Acceptance Evaluation (OCA)
domain = [
    ('partner_id', '=', record)
]

avg_score = 0
was = env['work.acceptance'].search(domain)
score = []

if was:
    for wa in was:
        for result in wa.evaluation_result_ids:
            score.append(result.score_id.score)
        total_score = sum(score)
    avg_score = total_score/len(was)

result = avg_score

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Escodoo

Contributors

Maintainers

This module is part of the Escodoo/purchase-addons project on GitHub.

You are welcome to contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.