Commit Graph

333 Commits

Author SHA1 Message Date
Alexandre Fayolle a0a4ec6374 [FIX] hr: fix hr.department name_get
hr.department name_get would crash when called with a single id.

Closes #8459
2015-10-09 09:29:38 +02:00
Adrien Peiffer (ACSONE) a519527c72 [FIX] hr: Set name field translatable
The job name can be displayed on the
website, which can be translated in several
language. It must therefore be translatable.

Closes #8373
2015-09-04 16:25:42 +02:00
Raphael Collet f2e4a10e1a [IMP] use model._fields instead of model._all_columns to cover all fields
The old-api model._all_columns contains information about model._columns and
inherited columns.  This dictionary is missing new-api computed non-stored
fields, and the new field objects provide a more readable api...

This commit contains the following changes:

 - adapt several methods of BaseModel to use fields instead of columns and
   _all_columns

 - copy all semantic-free attributes of related fields from their source

 - add attribute 'group_operator' on integer and float fields

 - base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad,
   payment_acquirer, share, website, website_crm, website_mail: simply use
   _fields instead of _all_columns

 - base, decimal_precision, website: adapt qweb rendering methods to use fields
   instead of columns
2014-11-04 13:47:57 +01:00
Olivier Dony 2bbff57691 [IMP] hr,mail,product,project,base: use @auto_join=True on _inherits FK field
This can give a performance boost on large databases
and should not be a concern in terms of access control
as the inheritance already grants access to the parent
records.
2014-08-07 18:03:08 +02:00
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +02:00
Christophe Simonis a5419ca800 [MERGE] forward port of branch saas-5 up to e0759c1 2014-07-15 11:21:59 +02:00
Olivier Dony e31fd6a1e1 [MERGE] Fwd-port saas-3 up to a9d2b65 2014-07-11 11:53:07 +02:00
Olivier Dony a9d2b65da5 [MERGE] Fwd-port 7.0 up to 783b9e1 2014-07-11 11:51:06 +02:00
Richard Mathot 117a26babe [FIX] hr: call hr_employee super's when unlinking
Also fixes some weird inheritance bugs in upper versions
2014-07-11 11:41:17 +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
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis 5087612d1d [MERGE] forward port of branch saas-3 up to bf53aed 2014-06-19 15:44:07 +02:00
Denis Ledoux 3c0292645f [MERGE] Forward-port of 7.0 bugfixes up to 63ea0df73f 2014-06-16 17:37:10 +02:00
Thibault Delavallée e95545dcf0 [FIX] hr: typo in a field definition 2014-06-12 17:32:32 +02:00
Thibault Delavallée e5379bc1a0 [IMP] project: task: added reviewer_id field, linking towards a res.users, that is the
reviewer of the task. This field is automatically tracked, using a small update of the get_auto_subscribe_fields method that is
weirdly implemented.
2014-06-11 10:40:39 +02:00
Christophe Simonis 1091b24a0c [MERGE] forward port of branch saas-3 up to revid 9450 chs@openerp.com-20140507153348-g2qw61dkxvps13br
bzr revid: chs@openerp.com-20140507160023-8wwqlbf3bv7yqe67
2014-05-07 18:00:23 +02:00
Christophe Simonis 1953aa442f [MERGE] forward port of branch 7.0 up to revid 10037 mat@openerp.com-20140507133552-v4qsdp7qdp9iwewi
bzr revid: chs@openerp.com-20140507153348-g2qw61dkxvps13br
2014-05-07 17:33:48 +02:00
Martin Trigaux fab9da65d9 [MERGE] [FIX] hr: when duplicating an employee or user, do not duplicate the reference to other employees (opw 607313)
bzr revid: mat@openerp.com-20140505101313-5y72gs2xpgokhxl1
2014-05-05 12:13:13 +02:00
Amit Vora (OpenERP) da4cf6d55c [FIX] override copy method to avoid duplicate child ids
lp bug: https://launchpad.net/bugs/1256437 fixed

bzr revid: voraamitr@gmail.com-20140226061623-255kguaytkex9a8m
2014-02-26 11:46:23 +05:30
Thibault Delavallée 79a0a10f93 [MERGE] [IMP] hr: broadcast the welcome message only for new employee coming
from the recruitment, not all created employees.
Before this merge, every created employee was broadcasted to all existing users
of the same company. However when creating a batch of employees, for example
when configuring an new openerp instance, this was creating a lot of noise
in the inboxes.
Now, only recruited employee have a welcome message.

bzr revid: tde@openerp.com-20140218162958-2rr967jh9zu2spwe
2014-02-18 17:29:58 +01:00
Turkesh Patel (Open ERP) 49351f6edb [IMP] create new method to broadcast message to employess in hr.
bzr revid: tpa@tinyerp.com-20140212111238-3b3ddlwl3062fjef
2014-02-12 16:42:38 +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
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 923028c4db [CLEAN] hr: review and cleaning before merging
- hr.py: small cleaning of job code + method renaming + context propagation + compat-mode for
method renaming
- hr_view: job_id on employee form is no longer 'no_open', because otoherwise it is impossible
to see jobs. Removed simplified form for job. Better form for job, recruitmnet-related stuff
is invisible when job is 'open'.

bzr revid: tde@openerp.com-20140210161326-c9qqff69squehg9v
2014-02-10 17:13:26 +01:00
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
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
Antony Lesuisse 033c38c304 [MERGE] trunk
bzr revid: al@openerp.com-20140129021916-ckb3rplmcpjbqel3
2014-01-29 03:19:16 +01:00
Antony Lesuisse da020d326d [IMP] hr.department cleanup
- Consolidate multiple hr.departement definition into hr.py file
- Remove ulgy department_users_get() domain hack on act_window
- Add the jobs_ids inverse relationship from departement to jobs

bzr revid: al@openerp.com-20140129002913-5qgq10jy9u3xn74e
2014-01-29 01:29:13 +01:00
Turkesh Patel (Open ERP) 584a7b27f2 [IMP] improved code, remove unneccesary changes and convert application_count function field to one2many field.
bzr revid: tpa@tinyerp.com-20131224072224-b7gq9z4mqhyh7540
2013-12-24 12:52:24 +05:30
Turkesh Patel (Open ERP) 50d67b6461 [IMP] post welcome employee message only if employee created from applicant.
bzr revid: tpa@tinyerp.com-20131223102329-147mo4x9o1mc59lq
2013-12-23 15:53:29 +05:30
Christophe Matthieu fd2821086f [MERGE] sync with trunk
bzr revid: chm@openerp.com-20131202150925-eqsi0uu0fqtwimhj
2013-12-02 16:09:25 +01:00
Turkesh Patel (Open ERP) 982549b31a [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20131126124206-gw02bnwnerl5dzrv
2013-11-26 18:12:06 +05:30
Christophe Simonis bb1e256f5b [MERGE] forward port of branch saas-2 up to revid 9010 dle@openerp.com-20131125143003-vjtzj1c5051pdnk3
bzr revid: chs@openerp.com-20131125150054-b135qshkx6icakgk
2013-11-25 16:00:54 +01:00
Fabien Pinckaers 1129cc5d39 [FIX] HR Recruitment, numbers
bzr revid: fp@openerp.com-20131116095814-xk9wu0mqhxrh847c
2013-11-16 10:58:14 +01:00
Fabien Pinckaers 46072d92ef [REVERT] partially reverted wrong change
bzr revid: fp@openerp.com-20131111224509-xxpw3qltvib53rhj
2013-11-11 23:45:09 +01:00
Fabien Pinckaers 43af25742e [IMP] some fixes in HR: #employees -> integer not float, forecasted employees is fixed and 'in recruitment' is computed so that it is still correct after doing a new recruitment
bzr revid: fp@openerp.com-20131111203209-cpoqpwsvepkl1elx
2013-11-11 21:32:09 +01:00
Turkesh Patel (Open ERP) f901a761e0 [IMP] set hired employees also 0 on copy
bzr revid: tpa@tinyerp.com-20131030072414-3r9alrqe6om3z7um
2013-10-30 12:54:14 +05:30
Olivier Dony b1c221e9c4 [FIX] hr: notification about new employee joining should only be sent to employees (base.group_user)
In the future we should directly use the
`Whole Company` mail.group, but this does
not work well enough now, as recipients
will not be able to directly go to the
employee record (e.g. to follow her)

bzr revid: odo@openerp.com-20131023155340-z2e78xo3vb7yq008
2013-10-23 17:53:40 +02:00
Turkesh Patel (Open ERP) c463ba221e [IMP] improved copy method to do not copy employees related to job.
bzr revid: tpa@tinyerp.com-20131022064625-x6p0hro241dlz118
2013-10-22 12:16:25 +05:30
Turkesh Patel (Open ERP) 54c3bfe0d2 [IMP]hr: improved copy method.
bzr revid: tpa@tinyerp.com-20131017124419-bt5s0d9ynlsihxxa
2013-10-17 18:14:19 +05:30
Turkesh Patel (Open ERP) 40f189adfb [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20131009093540-y9ueph05ah04gixg
2013-10-09 15:05:40 +05:30
Thibault Delavallée dd2dd19b23 [MERGE] Sync with trunk until revision 8934
bzr revid: tde@openerp.com-20131007081153-qx4ybltaxbuy3thp
2013-10-07 10:11:53 +02:00
Antony Lesuisse 4c84a49afe [REM] shortcuts, deprecated by browser bookmarks
bzr revid: al@openerp.com-20131006131225-jguvkys2ngwsd6er
2013-10-06 15:12:25 +02:00
Thibault Delavallée 6e042ea147 [CLEAN] website_hr_recruitment: some cleaning in python
Moved write_date column from website_hr_recruitment to hr, because it could be usefull
to have this column directly existing in the model. Other website-related columns remains
in the website module.

Also moved python file into a new models directory; also renamed the file. Please use
correct file name instead of finding a loosely-related file name.

bzr revid: tde@openerp.com-20131003121414-2xd4nab2znfabdjj
2013-10-03 14:14:14 +02:00
Turkesh Patel (Open ERP) 155d152b90 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20130826053724-dzymzruugarkfv34
2013-08-26 11:07:24 +05:30
Amit Bhavsar (Open ERP) 028d62c391 [MERGE] merge with latest trunk
bzr revid: amb@tinyerp.com-20130812121219-4opfk262kgmakvsb
2013-08-12 17:42:19 +05:30
Turkesh Patel (Open ERP) a76750eb7b [IMP] improved typo for in recruitment phase
bzr revid: tpa@tinyerp.com-20130801053119-qgb99xs5814c09kg
2013-08-01 11:01:19 +05:30
Turkesh Patel (Open ERP) b210c4de66 [MRG] merge with lp:openobject-addons, changes of stage state task merged in this changes
bzr revid: tpa@tinyerp.com-20130726124542-dl3f1g0jgmb8gjan
2013-07-26 18:15:42 +05:30