Commit Graph

529 Commits

Author SHA1 Message Date
Martin Trigaux 64b0e67a38
[FIX] hr_recruitment: wrong id on composer
When an applicant is moved from a stage to another, an email is sent to the
applicant(s) if an email template is specified on the stage.
The active_ids is correctly set in the compose context to be used by the
send_mail method to send a message to all the applicants in the new stage.

However, a potential active_id may be propagated from a previous action.
This is the case when a user goes from a Job Position record to the list of
applications and change the stage using the kanban view (active_id & active_ids
is the id of the hr.job).
The default_get method of mail.compose.message will use the active_id as the
default value for the field res_id which is wrong as it is the id of another
record).

Forcing the value at False instead of ids[0] as it would not work in batch mode.
The list of records is correctly used in send_mail anyway.

Closes #12494
2016-07-05 10:28:34 +02:00
Denis Ledoux ccfdca99fb [FIX] hr_recruitment: missing attachments in email template
When switching an applicant to another stage,
there is the possibility to send an email template,
according to the given stage.

The attachments defined in the email templates should
be sent as well.

opw-630768
2015-03-24 15:10:55 +01:00
Denis Ledoux c5ec6f397d [IMP] hr_recruitment: set company_id on change department 2014-12-09 17:52:21 +01:00
Raphael Collet b8071bbaca [FIX] addons: incorrect new-api invocation of method write() with context
This fixes #3411.
2014-11-13 13:34:55 +01:00
Thibault Delavallée 7cad4baa84 [FIX] [CLEAN] Various: fixed / cleaned use of dict.fromkeys.
Indeed using fromkeys with a list / dict as argument leads to the creation
of shared list / dict. This could create some ugly side effects when
used in loops. This commit fixes or cleans this kind of statement to avoid
unwanted side effects.
2014-09-18 11:18:30 +02:00
Pankaj Joshi e722bdb3c2 [FIX] hr_recruitment: fixed computation and storage of day_open and day_close + assignment of date_open and date_closed. 2014-09-10 15:45:44 +02:00
Thibault Delavallée 78a9a6fcaa [FIX] crm, hr_recruitment, task, issue: fixed default priorities + order based on priority (desc for everyone now) 2014-08-22 14:39:36 +02:00
Thibault Delavallée 7f0353974d [REF] mail: same_thread field changed into no_auto_thread, its contrary, to avoid migration issues (adding a 'always False' column is easier than an 'always True'). 2014-08-04 14:46:47 +02:00
Cedric Snauwaert 9ea75c7dd8 [FIX]hr_recruitment: fix onchange_job user_id referenced before assignment 2014-07-09 13:40:21 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Thibault Delavallée 719a4f02c9 [REF] mail, crm, hr_recruitment, project, project_issue: simplified reply-to of notification emails (now displaying 'YourCompany -docname- <email>' instead of 'Followers of ...'; added same_thread directly on the mail.message model to ease the reply_to and message-id computation; factorized a bit the reply-to generation for a batch of records; udpated tests accordingly. 2014-06-23 10:47:47 +02:00
Olivier Dony 04211015fc [MERGE] Forward-port of latest saas-4 fixes, up to 0452851 2014-05-27 20:49:49 +02:00
Olivier Dony fd21abd847 [MERGE] Forward-port latest saas-3 bugfixes, up to 30f43da 2014-05-27 17:18:43 +02:00
Olivier Dony 30f43daa3b [MERGE] Forward-port of latest 7.0 bugfixes, up to aeaa826 2014-05-27 16:50:02 +02:00
Denis Ledoux fa5cfcd67e [FIX] hr_recruitment: default company set according to department company 2014-05-26 11:20:40 +02:00
Thibault Delavallée 400b194d60 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140508123529-w91cb0e6ugzutqd1
2014-05-08 14:35:29 +02:00
Gery Debongnie 626915508d [FIX] code cleanup (addon hr_recruitment)
remove try/except/pass in method _count_all, improves the logic

bzr revid: ged@openerp.com-20140507131629-knp2kvw2zs1k200x
2014-05-07 15:16:29 +02:00
Barad Mahendra 07ccf397a3 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140507104533-jeorqz7rtx8m8i1c
2014-05-07 16:15:33 +05:30
Gery Debongnie 0c24df7074 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140417065356-x7o3jg5bo5430zth
2014-04-17 08:53:56 +02:00
Thibault Delavallée 4336c64a7c [IMP] mail, mass_mailing: using a _mail_mass_mailing class attribute
it is now possible to compute models allowing mass mailing using mass_mailing_campaign
module. This allows to completely remove the bridges modules, using a more generic
controller for unsubscription.

bzr revid: tde@openerp.com-20140416082851-8duo6yrwr5hwd8c2
2014-04-16 10:28:51 +02:00
Gery Debongnie f57b767361 [MERGE] merge from trunk
bzr revid: ged@openerp.com-20140415150146-5ovdjzta58t5dhd2
2014-04-15 17:01:46 +02:00
Gery Debongnie 8135812d34 [FIX] moves the field definitions of models hr.job and hr.employee that should have been in submodules to their correct place (in hr_something) to avoid dependencies problems (addons hr, hr_*)
bzr revid: ged@openerp.com-20140415105419-wy026n5k10wo80wb
2014-04-15 12:54:19 +02:00
Barad Mahendra 12b0dfa9b5 [Merge]with trunk
bzr revid: mba@tinyerp.com-20140415093047-1ctqspzbofv1pt3d
2014-04-15 15:00:47 +05:30
Richard Mathot (OpenERP) c2420b6e69 [FIX] Propagate field name change (remove warning on write on hr_applicant)
bzr revid: rim@openerp.com-20140317095433-lkkiwhknumhnmw6p
2014-03-17 10:54:33 +01:00
Richard Mathot (OpenERP) 77e89f6a81 [MERGE] Sync with trunk
bzr revid: rim@openerp.com-20140220120929-lbhrdz5sv190ylhu
2014-02-20 13:09:29 +01:00
Mahendra Barad (OpenERP) 29bc7f8797 [Merge]trunk
bzr revid: mba@tinyerp.com-20140219095715-kncqc8ypr1ajdxdc
2014-02-19 15:27:15 +05:30
Mahendra Barad (OpenERP) 3ed1c1b3a6 [IMP]improved priority and remove unused methods
bzr revid: mba@tinyerp.com-20140214114937-uzli19c8anu40lgn
2014-02-14 17:19:37 +05:30
Mahendra Barad (OpenERP) 0707b77f63 [Merge]Trunk
bzr revid: mba@tinyerp.com-20140214071943-t2wnxm8vmtxcejsc
2014-02-14 12:49:43 +05:30
Turkesh Patel (Open ERP) 6d17db2101 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140212104340-0vv22hxz3fdhy1dy
2014-02-12 16:13:40 +05:30
Richard Mathot (OpenERP) 78f683d3d4 [MERGE] Merge trunk
bzr revid: rim@openerp.com-20140212095606-n8e1q086m2996wxn
2014-02-12 10:56:06 +01:00
Thibault Delavallée b8c82c0f45 [IMP] hr_recruitment: cleaned code about default user_id and things like that when creating a new applicant.
All code now belongs to onchange_job, and is called in create, whether with
vals.get('job_id') or context.get('default_job_id')

bzr revid: tde@openerp.com-20140211122341-xz5hxe0qrt1reevg
2014-02-11 13:23:41 +01:00
Thibault Delavallée 610ebaef85 [CLEAN] hr: moved color field + an action in hr_recruitment, because they are used in this module + removed unnecessary code
bzr revid: tde@openerp.com-20140211120433-f34jsy7xjga1ultt
2014-02-11 13:04:33 +01:00
Thibault Delavallée 7fd1a825a8 [CLEAN] hr_recruitment: cleaning before merging
- some code reindentation
- updated subtypes, to use parent_id feature between applicants and jobs. Another task will
improve the layout bu hiding some subtypes in applicant; currently we keep a child / parent
behavior.
- renamed open_attachments method
- some changes in create reverted
- chatter posted in job now hav ea subtype, not sure to keep those

bzr revid: tde@openerp.com-20140211105807-ay93xbwilsz3mso6
2014-02-11 11:58:07 +01:00
Turkesh Patel (Open ERP) ee471832f9 [IMP] improved code to show default alias id
bzr revid: tpa@tinyerp.com-20140210131609-v5cxl5pexk37pt6d
2014-02-10 18:46:09 +05:30
Turkesh Patel (Open ERP) f94df0e389 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140210072100-p3ry9oq4eklwt9k0
2014-02-10 12:51:00 +05:30
Richard Mathot (OpenERP) b650340a29 [FIX] adaptation of hr_recruitment module to the new version of survey
bzr revid: rim@openerp.com-20140207162615-n8txh4ymlipatbwl
2014-02-07 17:26:15 +01:00
Turkesh Patel (Open ERP) 181aee3c50 [IMP] as per TDE's suggetion dont move code of posting message in hr_recruitment just do it based on context key
bzr revid: tpa@tinyerp.com-20140205060500-v70n8oy9rm1dflwf
2014-02-05 11:35:00 +05:30
Turkesh Patel (Open ERP) 130dac62e8 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140205052603-296obc5otpu72fsu
2014-02-05 10:56:03 +05:30
Mahendra Barad (OpenERP) 80c5401fc9 [Merge]merge with trunk
bzr revid: mba@tinyerp.com-20140122100252-z0bue1wi6d9aako0
2014-01-22 15:32:52 +05:30
Thibault Delavallée 9cf78e93cc [MERGE] Sync with trunk, tries to solve conflicts. There are still some new images to convert into images in xml files.
bzr revid: tde@openerp.com-20140116103910-qmm2y6kucmngplnk
2014-01-16 11:39:10 +01:00
jke-openerp 46b0c7aa00 [REF] Rename model crm.meeting into calendar.event
Remove 2 unsused field from calendar.event model (dir,sequence)

bzr revid: jke@openerp.com-20140115093805-1g1j1oymyxsb6kgh
2014-01-15 10:38:05 +01:00
Mahendra Barad (OpenERP) 102086302f [IMP]improved value of demo data and selection field
bzr revid: mba@tinyerp.com-20140108104029-rrdw8t2skrxs7yzj
2014-01-08 16:10:29 +05:30
Mahendra Barad (OpenERP) 8eb7fb82de [IMP]added the legend widget for priority and kanban state
bzr revid: mba@tinyerp.com-20140107131134-fho22izhbw86w1w5
2014-01-07 18:41:34 +05:30
Thibault Delavallée 49c0b7a820 [MERGE] Sync with trunk
bzr revid: tde@openerp.com-20140106135700-rt0g44w5xmpbtxiu
2014-01-06 14:57:00 +01:00
Cecile Tonglet dabb11ab88 [FIX] migrate_to_alias() of mail.alias didn't care about result value of _auto_init
bzr revid: cto@openerp.com-20140106133600-o7a2p3pr1zlvjezb
2014-01-06 14:36:00 +01:00
jke-openerp ecca2f99c3 [Merge] Merge With Trunk
bzr revid: jke@openerp.com-20140106082030-e0auqh3l9b2cpuyi
2014-01-06 09:20:30 +01:00
Turkesh Patel (Open ERP) 07746868f6 [FIX] improved code to serch users of company based on eployees company intead of using company of related user of employee
bzr revid: tpa@tinyerp.com-20140103124234-a3euvu0e6bs1n14q
2014-01-03 18:12:34 +05:30
Turkesh Patel (Open ERP) d133efb007 [IMP] improved log at creation time
bzr revid: tpa@tinyerp.com-20131227130234-bmem1riolid98kk6
2013-12-27 18:32:34 +05:30
Chirag Dodiya (OpenERP) b69b62a236 [IMP]Improved code,passed context in open attachment in job position and removed unnecessary line from applicants
bzr revid: cod@tinyerp.com-20131226132242-2ygb3m210h6q32i2
2013-12-26 18:52:42 +05:30