Remaining days calculation:
- get_days now also calculate virtual remaining days that take into account the confirmed leave requests.
- virtual remaining days are taken into account when confirming / validating a leave request. This allows to avoid having several pending leave requests that cannot be validated because of a lack of remaining days once all requests are validated.
Workflow update:
- begins in confirm state
- added transition confirm->draft; transition draft->confirm is not automatic anymore (Confirm button)
- added transition refuse->draft, to reset the leave request and allow edition
Misc
- leave summary does not show refused leave requests anymore
- added tests + some fixes for bugs trigerred by the tests (mainly access rights issues)
- added changelog
bzr revid: tde@openerp.com-20130812131723-ioe7sfgvl20z0npc
[REM] base_stage removal
Using stages and states is not easy to manage. Indeed those two fields mess with the same basic concept. This task remove the state on crm.lead and crm.claim models, leaving only stages.
Main features:
- removed base_stage inheritance on crm.lead and crm.claim models
- removed state field on crm.lead and crm.claim models
- removed state field on crm.case.stage model
- added date_last_stage_update on crm.lead and crm.claim models, holding the date of the last stage change, allowing reporting and analysis on time spend in stages
- date_open is set when assigning an user to the lead / claim; date_open now means assignation date
This allows nearly to remove all buttons on the form view, leaving only a dynamic stage management using the statusbar. On opportunities, Mark Won / Lost are kept.
Subtypes have been updated :
- new: stage_id.sequence=1
- stage changed: stage_id changed, not new
- user assigned: when user_id is set
This branch is the last one removing state where stage already exits. There is no need anymore of base_stage that is removed.
Misc:
- [IMP] views accordingly;
- [IMP] reports accordingly, added date_last_stage_update in reports;
- [IMP] subtypes;
- [DOC] doc directory + changelog + stage explanation in crm_lead
bzr revid: tde@openerp.com-20130812120725-u10zptg2m4z8ah4k
- added a workflow transition from refuse to draft, to allow resetting
a refused request
- resetting is now based on a can_reset field, taht is based on whether
it is my own request or I am an hr manager
- added an access right on crm_meeting that was preventing hr officers
to validate some requests
- improved form view to show reset to draft button accordingly
- added tests that helped trigerred the various bugs and improvements
bzr revid: tde@openerp.com-20130809144752-o21pjbc56o0t8fym
- improved heuristics to find a quote, added MsOffice / Hotmail specific heuristics
- added an option to shorten the html, adding the 'read more' link
- it now flags nodes to remove; an option to remove them has been added.
This improvement allows to display a shortened and cleaned version of emails in the chatter, with a 'read more' link that displays the full email. See the addons branch for more details.
[TESTS] Added tests, based on cases that fails with the previous implementation
bzr revid: tde@openerp.com-20130808140824-h37vgi5clfeoexne
interfering with automatic message_id creation of mail_message
[FIX] mail_thread: fixed issues with private messages through mailgateway
(wrong route checking, variable erasing)
[TEST] mail: added test for the second bug
bzr revid: tde@openerp.com-20130807142418-3h5qxdt3ekosj9x6