Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
Lines of code | 186 |
Technical Name |
supplier_quality_index |
License | AGPL-3 |
Website | https://github.com/Escodoo/purchase-addons |
Supplier Quality Index
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
- Escodoo:
- Marcel Savegnago <marcel.savegnago@escodoo.com.br>
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