mgmtsystem_kpi rename to kpi - #543
Conversation
|
|
||
| When all actions of the plan are done, their effectiveness must be evaluated | ||
| before closing the NC. | ||
|
|
There was a problem hiding this comment.
@naousse Replace this usage section (from the nonconformity module) with the link to the video I sent you.
|
base.group_hr_user is the employee user group i have and it is defined here: |
|
@naousse This is the wrong group. The |
|
Everything is ok now |
|
👍 |
|
|
@naousse Can you rebase please? |
|
@naousse Can you rebase again please? Runbot should be usable now. |
|
@naousse Few UI changes: KPI
Thresholds
Ranges
|
|
@naousse There is one error on Runbot: KPI History
Ranges
|
| Bugs are tracked on `GitHub Issues <https://github.com/OCA/Management-system/issues>`_. | ||
| In case of trouble, please check there if your issue has already been reported. | ||
| If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/ | ||
| server-tools/issues/new?body=module:%20 |
There was a problem hiding this comment.
Remove this line following newest templates
| * color (RGB code like #00FF00 for green, #FFA500 for orange, #FF0000 for red) | ||
|
|
||
|
|
||
| Installation |
| mission is to support the collaborative development of Odoo features and | ||
| promote its widespread use. | ||
|
|
||
| To contribute to this module, please visit http://odoo-community.org. |
| @@ -65,6 +48,5 @@ | |||
| ], | |||
| "demo": [], | |||
| } | ||
| history_obj = self.env['kpi.history'] | ||
| history_obj.create(values) | ||
| # obj.history_ids = history_obj.search([("kpi_id", "=", obj.id)]) |
| res = None | ||
|
|
||
| try: | ||
| # res = self.compute_kpi_value() |
| @@ -0,0 +1,32 @@ | |||
| # -*- coding: utf-8 -*- | |||
There was a problem hiding this comment.
Sorry: there must have been a misunderstanding: can you use short headers similar to https://github.com/OCA/maintainer-tools/blob/master/template/module/__openerp__.py#L1 including your actual information?
| if obj.valid: | ||
| result[obj.id] = "" | ||
| else: | ||
| result[obj.id] = ("2 of your ranges are overlapping! Please " |
There was a problem hiding this comment.
@elicoidal I made changes base on your review. You can check if everything is correct. Please I don't understand what you mean here
There was a problem hiding this comment.
@naousse In English (and in French too actually), you normally do not start a sentence with a number but number writen in plain English hence my suggestion to change "2" by "Two".
|
@elicoidal Can you update your review please? |
|
Ping @dreispt |
elicoidal
left a comment
There was a problem hiding this comment.
I think there has been a misunderstanding about the headers. Please check the example.
Note that you should have copyright notices in xml files as well (check: https://github.com/OCA/maintainer-tools/blob/master/template/module/data/model_name_data.xml#L2)
| @@ -0,0 +1,7 @@ | |||
| # -*- coding: utf-8 -*- | |||
| @@ -0,0 +1,187 @@ | |||
| # -*- coding: utf-8 -*- | |||
| @@ -0,0 +1,32 @@ | |||
| # -*- coding: utf-8 -*- | |||
There was a problem hiding this comment.
Sorry: there must have been a misunderstanding: can you use short headers similar to https://github.com/OCA/maintainer-tools/blob/master/template/module/__openerp__.py#L1 including your actual information?
| <field name="arch" type="xml"> | ||
| <search string="KPI"> | ||
| <group> | ||
| <filter name="active" icon="terp-document-new" domain="[('active','=',True)]" string="Active" help="Only active KPIs are computed by the scheduler based on the periodicity configuration."/> |
There was a problem hiding this comment.
Can you try to improve the format of the line for readability (like above one)
|
@naousse Can you fix based on @elicoidal latest comments? Thanks! |
| # Copyright <YEAR(S)> Loic Lacroix <loic.lacroix@savoirfairelinux.com> | ||
| # Copyright <YEAR(S)> Sandy Carter <sandy.carter@savoirfairelinux.com> | ||
| # Copyright <YEAR(S)>Gervais Naoussi <gervaisnaoussi@gmail.com> | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
There was a problem hiding this comment.
IMO copyright is attributed to original authors only, and contributors should not be included on authorship and copyright attribution.
|
@elicoidal Can you update your review? Copyrights headers are correct now. |
| @@ -0,0 +1,5 @@ | |||
| # -*- coding: utf-8 -*- | |||
| # Copyright <YEAR(S)> Savoir-faire Linux <https://www.savoirfairelinux.com/> | |||
| range_obj1.min_value < range_obj2.min_value): | ||
| if range_obj1.max_value > range_obj2.min_value: | ||
| raise exceptions.Warning( | ||
| _("Two of your ranges are overlapping!"), |
There was a problem hiding this comment.
Avoid "!" in error message, it makes users uncomfortable
|
Please fix the copyright then 👍 on my side |
|
@max3903 Please can you provide the right year for the copyright? |
|
@naousse |
|
@elicoidal fix request was done - merging! |
* kpi migration to odoo 9 * UI error connected * Correction base on last maxime review * correction on @elicoidal review * Warning exception improve in kpi_threshold * Latest Ellicoidal comment implemented * last Ellicoial recommendation done. * Copyright corrected
* kpi migration to odoo 9 * UI error connected * Correction base on last maxime review * correction on @elicoidal review * Warning exception improve in kpi_threshold * Latest Ellicoidal comment implemented * last Ellicoial recommendation done. * Copyright corrected
* kpi migration to odoo 9 * UI error connected * Correction base on last maxime review * correction on @elicoidal review * Warning exception improve in kpi_threshold * Latest Ellicoidal comment implemented * last Ellicoial recommendation done. * Copyright corrected
* kpi migration to odoo 9 * UI error connected * Correction base on last maxime review * correction on @elicoidal review * Warning exception improve in kpi_threshold * Latest Ellicoidal comment implemented * last Ellicoial recommendation done. * Copyright corrected
* kpi migration to odoo 9 * UI error connected * Correction base on last maxime review * correction on @elicoidal review * Warning exception improve in kpi_threshold * Latest Ellicoidal comment implemented * last Ellicoial recommendation done. * Copyright corrected
Syncing from upstream OCA/server-tools (12.0)
No description provided.