Commit Graph
104073 Commits
Author SHA1 Message Date
Fabien Pinckaers 9fbe082b2b [IMP] web_editor: css regular spacing between <p> to avoid bad layout
for email previews (e.g. sale order)
[IMP] improved email template for SO, with added signature
2016-07-17 01:02:06 +02:00
Fabien Pinckaers 5b4d247674 [IMP] mail: when replying to an internal message, don't send to followers
When an incoming email is a reply to an internal comment (private msg),
log a note, instead of sending an new message.
2016-07-17 00:32:30 +02:00
Fabien Pinckaers 069a192d69 [IMP] mail: Improved email notification template
Shorter template, cleaner look. Warn about internal note messages.
2016-07-16 23:57:55 +02:00
Christophe Simonis b98bb6d10f [MERGE] forward port branch saas-12 up to c16d5bc 2016-07-15 17:09:24 +02:00
Christophe Simonis c16d5bc750 [MERGE] forward port branch saas-11 up to 87e9639 2016-07-15 16:35:48 +02:00
Christophe Simonis 5858dda75f [MERGE] forward port branch saas-11 up to a62b8cf 2016-07-15 16:34:41 +02:00
Fabien Pinckaers 9bf9eb863b [FIX] rating: correct list view (list --> tree)
[FIX] livechat_rating: ratings from livechat should be consumed
(otherwise invisible)
[IMP] usability: better views and tooltips
2016-07-15 15:13:17 +02:00
Olivier Dony 87e9639a97 [FIX] website_event: correct typo in new API conversion
event.event's field is 'country_id', not 'country'

Cfr 616f294786
2016-07-15 14:02:01 +02:00
Jérome Maes eee72c8380 [MERGE] survey: migrate to new API
Purely merge, line per line code to new api.
No refactoring was done here.

Migrated modules are 'survey' and 'survey_crm'
2016-07-15 13:02:13 +02:00
Jérome Maes 35e7e93316 [MIG] survey_crm: migrate to new api 2016-07-15 12:57:51 +02:00
Jérome Maes ba3eaa61ba [MOV] survey_crm: module directory organization 2016-07-15 12:57:51 +02:00
Tanguy Charlier 09ea5c7d49 [IMP] survey: add gc of empty survey userinputs in the autovacuum cron 2016-07-15 12:57:51 +02:00
Ravi Gadhia 66cb880b74 [MIG] survey: migrate into new api 2016-07-15 12:57:51 +02:00
Tanguy Charlier 628c1d9564 [MOV] survey: module directory organization 2016-07-15 12:57:50 +02:00
Christophe Simonis a62b8cfaeb [FIX] hr_timesheet: add missing icon for Timesheets main menu
This icon was remove by 05a143a416 but is
still referenced by the menu entry.

This is also a backport of 3843b86fef.
2016-07-14 19:34:35 +02:00
Olivier Dony f5eba9e4d8 [FIX] web: repair grouping on date fields in list view
This is a temporary workaround, which probably deserves
further thinking by @ged-odo, as the root cause
stems from commit 96bf5b2656

The problem is that the list view looked for composite group_by
keys such as "create_date:month" within `fields_get`, which
only contains true fields.
2016-07-14 18:48:08 +02:00
Denis Ledoux 18dc5b3b87 [FIX] web: default many2many tags color
When there is no `color` field on the model
e.g. On invoice line taxes
The color class to apply on the badge was set to
`o_tag_color_undefined`
which doesn't exist. It must be set
from `o_tag_color_0` to `o_tag_color_10`
in order have a color.

Because of this, the taxes in the invoices lines
were not visible, because they were written in white
on a white background.

This has been broken by the below revision:
fe66472e2c
removing the or statement (`||`) to set a default
color for models not having a `color` field.

We choose to set `10` as default value, so the color
remains the same compared to the previous release
(light grey). However, if the new behavior chosen
by the usability is to have these in black, it should then
be changed to `0` again.
2016-07-14 18:38:29 +02:00
Christophe Simonis 1fca5e01cb [MERGE] forward port branch saas-10 up to 156dee2 2016-07-14 18:17:30 +02:00
Christophe Simonis 156dee2aec [MERGE] forward port branch 9.0 up to fd9eb2e 2016-07-14 17:17:54 +02:00
Olivier Dony 6d3cf9c649 [FIX] website_mail_channel: re-add import dropped by API migration
The migration to new API dropped `from openerp import tools`,
but it was still used.

See also 8250762fe8
2016-07-14 17:07:44 +02:00
Olivier Dony a78c2e3d39 [FIX] website_mail_channel: fix datetime typo in new API migration
The migration to new API changed `import datetime` to
`from datetime import datetime`, subtly breaking existing
calls.

See also 8250762fe8
2016-07-14 16:52:40 +02:00
Denis Ledoux 78fee4b6b0 [FIX] website_sale: "From website" filter
This filter must be added in the regular searchview,
and not have his own search view.

Without this:
 - view_sales_order_filter_ecommerce is a not search view
 for the sale orders, having the same priority than the regular one,
 and therefore this view can be loaded by default for other menus
 (In this case, this was for the menu Website Admin > Orders).
 e.g. Clicking on the `Sales` stat button on a contact no longer
 filtered the orders of this contact, but displayed all the orders,
 because it was this view which was loaded instead of the regular one.
 - In Website Admin > Orders, it was simply not possible to type a string
   and search for it in the search bar.
2016-07-14 16:37:28 +02:00
Christophe Simonis fd9eb2e481 [MERGE] forward port of branch saas-6 up to e928c60 2016-07-14 16:23:22 +02:00
Christophe Simonis e928c6003a [MERGE] forward port of branch 8.0 up to 17a1304 2016-07-14 15:46:28 +02:00
Jérome Maes c12a5fb204 [MERGE] calendar: migration to new api
* Move files and reorganize directories according to guidelines
* Lint and clean code, remove dead code
* Migrate code to the new API

In REF commit, some fields of calendar.event models changed. Due to
bad design, the code was not clean with the new API. Changing computed
fields make it more performant, and reduce code complexity.
See commit "[REF] calendar: change computed fields for start and
stop dates" for details.
2016-07-14 14:06:16 +02:00
Jérome Maes 51903f8a50 [IMP] calendar: rename cn field into common_name
We are not so lazy anymore. Oh wait ... !
2016-07-14 14:04:35 +02:00
tde-banana-odoo b7b935dbf8 [IMP] calendar: clean sending email to attendees
Change `send_email_to_attendees` signature to force setting email
template and remove `email_from`, since it is not usefull.

Now, when sending email to attendee, meeting author will also received
an invitation.

`get_ics_file` has been modified to be executed in batch.
2016-07-14 14:04:35 +02:00
Jérome Maes b1316f44eb [IMP] calendar, hr_holidays: uniformize context key to prevent sending mail to attendees
Code courtesy of tde-banana-odoo
2016-07-14 14:04:35 +02:00
Jérome Maes 95938118c7 [REF] calendar: change computed fields for start and stop dates
- `start` and `stop` fields are not computed anymore. Indeed, it was not normal
to have required stored computed field. Normally we shouldn't write on these
fields, but since client calendar api need them, we keep them as normal
datetime fields
- `start_date` and `stop_date` become stored computed date fields depending of
`start`,`stop` and `allday`. An inverse method allow to write on these fields,
since it can be the case from the form view
- `start_datetime` and `stop_datetime` follow the same logic
- `onchange_allday` code is mostly moved in `_inverse_dates` of new computed fields
- `_set_date` method (called in create/write) is now removed, since it does the same
thing as old onchanges
- `_onchange_duration` is kept to adapt `stop_datetime` when changing `start_datetime`
or `duration` on form view
- Duration is now 'zero' in database for allday meeting. Before, it was not changed.
Setting it to zero is less falsy. `duration` can not (yet) be a computed field since
it depends on others computed fields.

After migration, we manage to keep old behavior but the code was crap. Switching stored computed
fields make it cleaner, and respecting new API standarts.
This changes avoid multiple methods doing almost the same thing, and is less 'buggy'.
2016-07-14 14:04:34 +02:00
Jérome Maes 5040719b8d [REF] calendar: remove useless code 2016-07-14 14:04:34 +02:00
Jérome Maes 21e4579551 [REF] calendar: reorder methods, make some private, and rename some others 2016-07-14 14:04:34 +02:00
Mitali Patel e3560bd310 [REF] calendar: Migrated yml test cases to python unittest 2016-07-14 14:04:34 +02:00
Jérome Maes 6af6148a24 [REF] calendar: code cleaning to be more 'api v8'
- move `get_ics_file` from calendar.attendee to calendar.event
- remove calendar.event arguments to convert method into
`api.multi`, which make more sense
- `create_attendees` now returns recordset instead of list of ids
- change signature of `get_interval` method
2016-07-14 14:04:34 +02:00
Jérome Maes bcfe16a69e [IMP] calendar: add helpers to mange virtual ids 2016-07-14 14:04:34 +02:00
Jérome Maes 6bc14c9142 [MIG] calendar: migration to new API
Migration of all python code, mostly withtout chagnes. And adapting
xml files to guidelines.

On calendar.py, some changes have been perform to make the migration works :
- `_compute` method has been split into `_compute_dates`, `_compute_attendee` and `_compute_display_time`.
- remove unused method `onchange_partner_ids`, `check_partners_email`
- make `compute_rule_string` use a cache record instead of a value
dict to avoid crashes
- remove `new_invitation_token` method, and make it a default value on attendee creation
- add a default value on `day` field, otherwise the "Please select a
proper day of the month" exception is raised during the onchange
2016-07-14 14:04:33 +02:00
Jérome Maes fe42986ee2 [MOV] calendar: split models in multiple files 2016-07-14 14:04:33 +02:00
Jérome Maes b535461e47 [MOV] calendar: reoganize module directory 2016-07-14 14:04:33 +02:00
Denis Ledoux 8d2d741db3 [FIX] mass_mailing: do not inherit a view on a string attribute
A string attribute value can be translated,
and therefore the inherit broken if the term is indeed
translated.

This was the case for this term "Tracked link" in the Dutch
language, the "Tracked link" term of the inherited view has
been translated, and the inherit was therefore broken as
it couldn't find the given node in the base view due to the
fact this term was translated.

opw-683128
2016-07-14 12:25:02 +02:00
Ronald Portier 17a1304285 [FIX] hr_timehseet_sheet: drop view before creation
When the schema of a view change (e.g. drop of column), the "CREATE OR REPLACE"
will not be enough and dropping the view is required.

Fixes #12754
Closes #12756
2016-07-14 11:42:52 +02:00
Yannick Tivisse 2a36b54f14 [MERGE] website_gengo: Migration to new API 2016-07-14 11:37:41 +02:00
Yannick Tivisse c5b1a6ba61 [FIX] base_gengo: pass a translation if '_check_value' raise a ValidationError 2016-07-14 11:01:10 +02:00
Jigar Patel 5f146ac42d [MIG] website_gengo: Migrate into new api 2016-07-14 11:01:09 +02:00
Jigar Patel c9dcc6fa76 [MOV] website_gengo: File name as per new api guideline 2016-07-14 11:01:09 +02:00
Yannick Tivisse fac108b606 [FIX] base_gengo: issue introduced during the migration 2016-07-14 11:01:09 +02:00
Xavier Morel 5bb0933a52 [REVERT] 7930c3f86
Faster is nice, working is better, sale_timesheet, this commit breaks
the tests and the installation of multiple modules.
2016-07-14 09:57:17 +02:00
Goffin Simon 46c3c721fc [FIX] sales_team: _get_default_team_id
The domain term '('member_ids', 'in', False)' should use the '=' or '!=' operator.

sentry:90136545
2016-07-14 09:12:13 +02:00
Goffin Simon e71d136d6f [FIX] sale: making an advance payment in percent
When making an advance payment in percent, the function onchange_advance_payment_method
set the Down Payment Product to False. Then each time an advanced payment in percent
was made, a new down payment product was created and set in sale.config.setting in the field
deposit_product_id_setting.

Now the function onchange_advance_payment_method let the Down Payment Product
even if the payment method is in percent.

opw:683167
2016-07-14 09:01:58 +02:00
Christophe Simonis 9b7bc217a2 [FIX] base: avoid applying inherited view twice
Use the `|=` operator to deduplicate view ids.
2016-07-13 20:42:43 +02:00
Christophe Simonis 7930c3f86e [IMP] base: ir.ui.view inherit search during module update
During module update, we should only consider views of already
loaded modules. This filter is done by searching on xmlids of views.
We should also search for explicit view ids (current module is not yet
marked as loaded)

However, by doing this `OR` condition, the generated query is not
optimal and forbid postgresql to use the composite index
`ir_model_data_model_res_id_index` on `ir_model_data` table.
This is a performance issue for databases with a lot of ir_model_data rows.

Use 2 quicker search() to avoid this problem.

This only affect the module update. Normal view loading is unchanged.
2016-07-13 19:19:11 +02:00
Damien Bouvy 7c2c169906 [FIX] base: mixing ids and records
Browse needed.
2016-07-13 17:27:24 +02:00