Commit Graph
2153 Commits
Author SHA1 Message Date
Aaron Bohy db8203c27a [FIX] base,hr,mail: prefetch mention suggestions
The purpose of this commit is to improve the overall performance of the mention
mechanism of the client action and chatter composer, by pre-fetching some data.

First, the employees are fetched at chat initialization (basically, at web
client initialization), if hr is installed.

Second, when focusing on the composer of a channel, the members of this channel
are fetched. In the case of a chatter, the members are already known as they
are the followers of the document.

When the user types a mention, we first display suggestions from the pre-fetched
partners, and we only perform an RPC when there are no more result matching the
search string. This RPC searches among user, and then partners if there aren't
enough matches.

A few side changes occurred:
  - auto_join set to True on user_ids field of res.partner to boost the query
    that searches partners that are users
  - the '/mail/read_followers' route now returns follower's email as well, as
    we need it for the mention;
  - a partner can now be mentionned several times in the same message;
  - mentionned partner previsualization has been removed, mainly because of
    the previous point, but also because it simplifies the code;
2015-11-27 11:47:34 +01:00
Martin Trigaux e8e5405d0c [I18N] Update French translation terms from Transifex
Fixes #9712
2015-11-25 17:22:26 +01:00
Christophe Simonis 56a442e205 [MERGE] forward port of branch saas-6 up to dade7e3 2015-11-25 13:26:02 +01:00
Odoo Translation Bot 3180f80bf9 [I18N] Update translation terms from Transifex 2015-11-22 01:30:36 +01:00
Denis Ledoux 238b2027b0 [FIX] hr: retrocompatibility for last_login in employee kanban
This revision is related to 67e07d55ee
We reset back a `li` element with `id="last_login"`,
for views inheriting from this kanban view on this field.
2015-11-10 13:32:01 +01:00
Denis Ledoux 67e07d55ee [FIX] hr: last login hour on employee kanban.
Setting a value for the `date` field on a partner of
an employee leaded to a crash in the employees
kanban view.

This last login field on the employee kanban
had as goal to display the last connection hour
of each employee, if the last
login happened within the current day.

Since 7.0, the last login date field  on `res.users`
has been renamed from `date` to `login_date`,
and became a date instead of a datetime.

Nevertheless, the `last_login` related field
on `hr.employee` remained on the field `date`,
which is set on the `res.partner` model,
but is not used as a connection date field. The
related should have been updated to use
`res.users`.`login_date`, probably, but it
wasn't the case.

From saas-6, the `date` field is no longer available
on the `res.partner` form.

We can therefore safely assume that this feature
is no longer used nor needed, as:
 - It should display the last hour of connection within a day
 - but it uses the wrong date field
 - and it uses a field type for which the hour is not stored (date).
 - even by updating the related to use `login_date`,
   it would still be a field where the hour is not stored.

opw-654313
2015-11-10 11:12:15 +01:00
Odoo Translation Bot 3d7ae73305 [I18N] Update translation terms from Transifex 2015-11-15 01:35:06 +01:00
Odoo Translation Bot 14799a9006 [I18N] Update translation terms from Transifex 2015-11-08 01:32:40 +01:00
Odoo Translation Bot e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Martin Trigaux b21d96ec2d [FIX] hr: incorrect sentense
Incomplete senstense "improving applications, such as the"
Will be fixed in master, creating en_US translation for stable
2015-10-12 16:43:31 +02:00
Odoo Translation Bot ff9b997736 [I18N] Update translation terms from Transifex 2015-10-11 01:33:54 +02:00
Christophe Simonis 20dba161d0 [MERGE] forward port of branch 8.0 up to c484467 2015-10-10 14:46:23 +02:00
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
Odoo Translation Bot 8c4f17fd8b [I18N] Update translation terms from Transifex 2015-10-08 10:24:11 +02:00
Richard Mathot 711878c18c [FIX] hr,l10n_in_hr_payroll: ACL errors for users who are not HR Officer/Manager
These menus were visible to all employees, but the reports use
hr.salary.rule.category that is only available to HR Officers/Managers.

As these reports are not meant to be available for employees anyway, we
hide them.

(this bug has been spotted by the nightly crawler that clicks on every
menu as demo user)
2015-10-08 08:46:03 +02:00
Odoo Translation Bot 04c6ee54d8 [I18N] Update translation terms from Transifex 2015-10-04 03:03:19 +02:00
Odoo Translation Bot 57b993ffad [I18N] Update translation terms from Transifex 2015-10-04 01:59:01 +02:00
Martin Trigaux 055918370d [I18N] Update translation terms from Transifex 2015-10-01 09:58:29 +02:00
Raphael Collet 5a6e136172 [IMP] addons: adapt binary fields to store images in attachments 2015-09-28 15:19:47 +02:00
Odoo Translation Bot 3dec9e5804 [I18N] Update translation terms from Transifex 2015-09-27 03:07:16 +02:00
Odoo Translation Bot c764b703ca [I18N] Update translation terms from Transifex 2015-09-27 01:58:59 +02:00
Odoo Translation Bot b85dd39814 [I18N] Update translation terms from Transifex 2015-09-20 03:04:41 +02:00
Martin Trigaux 387ff476dc [I18N] all: reexport translatable source terms 2015-09-18 10:40:52 +02:00
Martin Trigaux 1348fee217 [I18N] all: regenerate .pot and pull .po
How great is it to get Odoo (almost) 9.0 (almost) translated?

Clean .tx/config file
Regenerate .pot files
Fetch current translations from Transifex (10% completion)
2015-09-14 17:53:37 +02:00
Odoo Translation Bot 7ed58916df [I18N] Update translation terms from Transifex 2015-09-13 01:55:09 +02:00
Christophe Simonis 6d0c7c731b [FIX] hr: add missing dependency on web_tip
The dependency has wrongly been removed by d27910a8f2
2015-09-09 14:38:35 +02:00
Odoo Translation Bot 101540b491 [I18N] Update translation terms from Transifex
Fetch the translations with the option --all to fetch missing languages
and use --minimum-perc 10 to avoid empty files

Fixes #8423
2015-09-08 17:07:59 +02:00
Martin Geubelle 325f9623b4 [ADD] *: add color field on tags 2015-09-08 16:24:32 +02:00
Yannick Tivisse 1e8a890be6 [IMP] Rename Live Chat into Website Live Chat 2015-09-07 18:25:51 +02:00
Martin Trigaux 613286b0e8 [I18N] export application terms of all modules
Now that most refactoring has been merged

It is better to have red a great work of another culture in translation than never to have read it at all.
― Henry Gratton Doyle
2015-09-07 17:21:58 +02:00
Martin Trigaux f8daf6fb31 [I18N] synchronise Basque and Ecuador translations
They were new languages, needed a manual fetching.
Fixes #8363
2015-09-07 12:26:51 +02:00
Fabien Pinckaers 73f74a863a [IMP] Workding of tips 2015-09-05 16:50:59 +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
Fabien Pinckaers 3658a894bc [IMP] modules description, no external link 2015-09-04 11:59:55 +02:00
Yannick Tivisse 152325e7b1 [IMP] Still placeholders, labels are back
fp request
2015-09-04 10:28:44 +02:00
Yannick Tivisse c9f497e046 [IMP] Replace labels by placeholders in some form titles
Impacted modules : event, gamification, hr, hr_equipment, hr_timesheet_sheet
                   mass_mailing, product, survey
2015-09-03 15:45:48 +02:00
Raphael Collet ed95043d7e [IMP] *: add archive/unarchive feature on some models
Add the statbutton, search filter, and enable the kanban column archiving on
models `res.partner`, `crm.lead`, `event.event`, `hr.employee`, `hr.applicant`,
`mail.mass_mailing`, `mail.mass_mailing.list`, `product.product`,
`project.project`, `project.task`, `project.issue`.
2015-09-02 14:29:42 +02:00
qsm-odoo bc11426ab0 [IMP/FIX] *: Kanban dashboard LESS layout
* Fix alignement/layout problems since the reintroduction of
bootstrap grid gutter.
* Fix mobile layout problems.
* Fix various Firefox problems.
* Use odoo variables and simplify LESS.
* Use input type="text" instead of input without type.
2015-09-02 13:22:13 +02:00
Aaron Bohy a0cbf891af [REM] *: remove chat menu and timeline view 2015-09-01 20:57:13 +02:00
Yannick Tivisse 0bbef194f0 [REM] hr_recruitment: remove tip on breadcrumb + add on hr.job recruitment target 2015-09-01 13:19:00 +02:00
Yannick Tivisse da7de41d9f [IMP] hr: Add a no_content message on the act_employee_from_department action 2015-08-31 12:58:43 +02:00
Yannick Tivisse 31b0e5d890 [IMP] hr: Move fields email,phone and tags fields on employee form view 2015-08-31 12:58:43 +02:00
Yannick Tivisse 4be59f81a5 [IMP] Do not display switch view buttons on dashboards. 2015-08-31 09:08:12 +02:00
Odoo Translation Bot b79d492ec4 [I18N] Update translation terms from Transifex 2015-08-30 01:51:03 +02:00
Thibault Delavallée 65dbf8f117 [IMP] crm, hr, project, sales_team: mail-related fixes
- hr, project, sales_team: no subscribe on create

For header records like sales steam, project, jobs and department, do not
subscribe the creator. Indeed those objects allow to automatically follow
child records (opportunities, tasks, issues, applicants). However those
records are often created by IT / technical / administrators that should
not be followers of all child records. Therefore the no subscribe key
is added in context.

- crm: new lead subtype

The 'new' stage is based on the sequence only, not the probability. Indeed
a new lead does not have a probability of 0; otherwise it is already lost.
2015-08-27 17:07:02 +02:00
Antony Lesuisse 37053a407c [REM] hr: unused and deprecated res.config 2015-08-26 17:49:07 +02:00
Thibault Delavallée 681adaba4f [FIX] hr, hr_*: form view clean / fix
HR settings tab of the employee form view was quite ugly. The inherits were causing
a strange layout. It is now fixed. Some items have been relocalized to ease
the readability of the form view.
2015-08-25 17:42:24 +02:00
Martin Trigaux 6c51a80aa4 [I18N] export application terms of all modules 2015-08-25 12:01:38 +02:00