Commit Graph
99094 Commits
Author SHA1 Message Date
Christophe Matthieu 80a396b9fd [FIX] web_editor: remove useless line 2015-10-26 11:43:36 +01:00
Christophe Matthieu 6fc64aa468 [UPDATE] web: update font-awsome version 4.4.0 2015-10-26 11:43:36 +01:00
Christophe Matthieu 63392cc239 [FIX] web: can use web/image controller for attachment type url
Attachment type url return a status 301 for response
2015-10-26 11:43:36 +01:00
Thibault Delavallée 890f1302c7 [FIX] mail: server action: do not send directly email notifications 2015-10-26 10:54:57 +01:00
Thibault Delavallée 2be1dfc1ed [FIX] hr_holidays: subscription and emails
[FIX] auto subscription

- removed auto subscription of managers for leave / allocation requests as this
  can be managed through subscripion to the department
- updated some subtype labels
- removed auto subscription of leave / allocation creator as the employee is already
  automatically subscribed; managers creating leave and allocation in batch should
  not automatically follow the created records except through the department
  subscription

[FIX] notification email batch

- add a context key to use the email queue for notifications linked
  to allocations created in batch
- also fixed a missing context in a browse
2015-10-26 10:54:20 +01:00
Thibault Delavallée 9b385078b2 [DOC] mail: add some docstrings for mail context keys
Too much keys kills keys. Difficult to say.
2015-10-26 10:54:19 +01:00
Thibault Delavallée a36de1efad [FIX] mail: notification email cleaning
- remove / udpate some paddings. Indeed some part of the notification emails
  are badly aligned.
- postprocess the notification email to remove the content coming from odoo.
  This ensure that action buttons present in some emails are not forwarded to
  other people, notably customers. This is done by adding a div holding the
  whole notification emails, with a summary = o_mail_notification. A summary
  is used instead of a class or id because some html clients (like gmail)
  strip classes, ids, ... summary seems to be kept in several clients.
2015-10-26 10:28:46 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Fabien Pinckaers 0dcde79bcd [IMP] spacing on sales team kanban 2015-10-24 18:20:11 +02:00
Denis Ledoux 56ef99d050 [MERGE] forward port of branch saas-6 up to 105b1c0014 2015-10-23 18:31:55 +02:00
Raphael Collet dc729c8611 [FIX] point_of_sale: typo in pos.config.settings (wrong model inheritance)
This fixes an error message preventing a non-system-manager user to edit the
Point of sale settings.
2015-10-23 17:02:25 +02:00
Raphael Collet a468aee518 [FIX] res_config_settings: all users can see "module" fields (possibly readonly)
This fixes an error message preventing a non-system-manager user to edit
settings.
2015-10-23 17:01:56 +02:00
Denis Ledoux 0ea31c272c [FIX] point_of_sale: exclude rescue sessions when getting current session
Rescue sessions have been added with revision
bed409322d

With this feature, this is possible to have multiple
pos sessions opened for a same user, if there are
rescue sessions.

`get_current_session` rely on the fact only one pos session
can be opened per user.

Rescue sessions are now excluded to get the current session, so:
 - at most one session can be found
 - rescue sessions cannot be resumed.

opw-652857
2015-10-23 12:07:17 +02:00
Goffin Simon a9ce4ffb22 [FIX] account, purchase, sale: included taxes
Forward port of 503820acb6 from 8.0

opw:652310
2015-10-23 10:39:12 +02:00
Olivier Dony 807e776ac8 [FIX] web: /web/image: conforming HTTP status line
HTTP status lines are required to have both
a status code *and* a "reason phrase".

Some stricter HTTP clients / proxies choke
on status lines without "reason".

Technically, setting `response.status` is supposed
to set both at the same time, so we need to provide
both, or to set `status_code` only and let werkzeug
add the reason.  This patch does the latter.

Fixes #8924
2015-10-22 17:40:33 +02:00
Raphael Collet 6c8e53a087 [FIX] translate: separate html_translate from xml_translate, fix serialization
The serialization gives different results for some elements.  For instance, an
empty element `i` must be serialized as `<i/>` in XML and `<i></i>` in HTML.
It must be done like that, otherwise the world (of web browsers) would break.

Add a test case for `html_translate`.
2015-10-22 16:33:56 +02:00
Martin Trigaux 060a898f9f [FIX] purchase: allow to configure the purchase method
group_no_one is almost no longer accessible (way too technical to ask to modify
the url to end users) while this field is simply more advanced configuration
(functionnal and not technical).

Replace technical feature group by purchase manager.
2015-10-22 15:37:35 +02:00
Géry Debongnie ccddf7072f [IMP] mail: make the interface usable in mobile mode
The sidebar can be make visible by clicking on a button 'Channels' in
the control panel.
2015-10-22 14:43:14 +02:00
Géry Debongnie e2dc7b27ee [IMP] mail: add link to origin channel from message 2015-10-22 14:43:14 +02:00
Aaron Bohy 1dbeac3e5a [IMP] mail: mention starts detecting from @ 2015-10-22 14:43:14 +02:00
Géry Debongnie 2a80f0a850 [FIX] mail,crm: fix automatic notification emails
They need to have the message_type 'email' instead of 'notification', so
they can be starred in the interface.
2015-10-22 14:43:14 +02:00
Aaron Bohy cfc18172a5 [IMP] mail: composer: use textarea in client action
... allowing multi-line edition, like in the chatter.

Shortcuts:
	- in the client action: ENTER sends, SHIFT+ENTER goes to newline
	- in the chatter: SHIFT+ENTER sends, ENTER goes to newline

Don't use autosize anymore to resize the textarea according to its content as
it didn't fit well within the flex layout of the client action ('height: auto'
didn't increase the height of the flex-item with 'flex-grow: 0'). We perform
the resizing ourselves instead.
2015-10-22 14:43:13 +02:00
Géry Debongnie 4d54a8c0ff [IMP] mail: various ui improvements
including:
- reset scroll position to bottom when leaving channel
- allow clicking on the avatar image
- hide stars when message is of type notification
- sort channel names
- add # before channel names
- rename Whole company channel in general
- replace \n and \r in messages by <br/>
- lighten the hover color of sidebar items in the client action
- Display @ before mentions
2015-10-22 14:43:13 +02:00
Géry Debongnie 586928356b [IMP] mail: notifies users when someone join/leave a channel 2015-10-22 14:43:13 +02:00
Géry Debongnie 81b7a32a4d [FIX] mail: avoid useless rpc on message rendering 2015-10-22 14:43:02 +02:00
Adrien Peiffer (ACSONE) 2d4f0620fc [IMP] hr: flexible verification of access rights
Allow to inherit state modification access right

Closes #9145
2015-10-22 11:55:55 +02:00
Martin Geubelle fcd4d35e33 [FIX] account_asset: adapt name in form of account.asset.category
Name should be Deferred Revenue Type if the type is sale
2015-10-22 11:49:07 +02:00
Goffin Simon f8b65541f9 [FIX] account: currency rate for payments_widget
The currency rate used to compute the amount to show must be the currency rate
matching with the date of the payment.

opw:652478
2015-10-22 11:37:59 +02:00
Oriol Carreras 2099f15d67 [FIX] payment_paypal: Disable csrf on paypal callbacks
When the http csrf is default enabled, callbacks raises a http error 400:
Invalid CSRF Token.

Fixes #9065
Closes #9073
2015-10-22 08:41:51 +02:00
Oriol Carreras c8a3fd9031 [CLA] Oriol Carreras 2015-10-22 08:40:06 +02:00
Martin Trigaux 83bd172608 [FIX] packaging: include svg and ico files
cherry-pick of 8feabe46 and 2fa8b99e
needed for nightly build, sorry for the forward port
2015-10-21 17:36:29 +02:00
qdp-odoo 57d0903154 [FIX] stock_account: counterpart account for standard price adjustment is now expense instead of stock_input or stock_output. 2015-10-21 16:23:28 +02:00
qdp-odoo 4cae9da141 [FIX] stock_account: do_change_standard_price() function (button to manually update the standard price of a product in average/standard price) fixed (was simply crashing). 2015-10-21 16:23:28 +02:00
Nicolas Martinelli 93c85c26a3 [FIX] sale, website_quote: Terms and Conditions
When website_quote is installed, the Terms and Conditions of the quote
template should replace the Terms and Conditions of the company.
However, if the T&C of the quote are not filled, they will be kept
empty. This fix uses the T&C of the company as a backup.

This fix also set the TéC in the lang of the partner.

opw-652390
2015-10-21 14:18:18 +02:00
Goffin Simon 01d121a90a [FIX] account: amount in payments_widget
The amount to show in payments_widget must be the opposite of amount_currency like
in the else condition:
    amount_to_show = payment.company_id.currency_id.compute(-amount, self.currency_id)

opw:652478
2015-10-21 13:27:08 +02:00
Richard Mathot 2badc0f856 [REV] edd388ffe5.
Should go to master, not to 9.0
2015-10-21 11:39:31 +02:00
Richard Mathot edd388ffe5 [FIX] stock,website_sale: add missing shipping provider Temando to config 2015-10-21 10:59:29 +02:00
Martin Trigaux e3c59e4945 [FIX] mail: missing space in help message 2015-10-21 10:42:34 +02:00
Aaron Bohy fe2c1020d1 [FIX] mail: chatter: undefined context for internal notes
Commit 4f9c9ad adds the context to the RPC call of 'message_post', but the
context was only defined for messages sent, and not for internal notes logged.
This causes a crash when logging a note on a calendar event as its method
'message_post' makes the assumption that it always exists, and tries to access
one of its keys.

opw-652470
Closes #9164
2015-10-21 08:55:31 +02:00
Xavier Morel a43b220b33 [FIX] make AccountingTestCase extend HttpCase
Fixes/hides a deadlock when running test_sale_order with either a single
database or a db_filter making a single database visible: the test
causes a report to be printed, which invokes wkhtmltopdf, which tries to
fetch assets using the registry which is being loaded. The asset request
thus waits on a lock which is held by the test which waits on the asset,
deadlocking the whole thing.

Using HttpCase means we're using the test_cr or something and bypassing
the deadlock, instead the asset requests just 404 as they do when using
the nodb routing.
2015-10-20 17:38:53 +02:00
Simon Lejeune 108decbd99 [FIX] ir_qweb: call clean_attachment at the end of save_attachment
.. instead of at the start. The reason is: if any rollback have to occur
during the call to `save_attachments`, we want to avoid rollbacking an
unlink on the ir.attachment table (because we cannot rollback the
removal of a file in the filestore).

This issue is especially annoying when we generate a bundle whose
ir.attachment record has the same hash than the invalidated one (for
instance when one of the source files in the bundle has been touched
but not modified) and of of these rollback occurs: the bundle has been
deleted on the filestore and cannot be served.
2015-10-20 15:38:24 +02:00
Simon Lejeune c0b2ef2b74 [ADD] test_assetsbundle: module to test ir_qweb's bundles 2015-10-20 15:38:24 +02:00
Simon Lejeune 7f4306ec15 [FIX] ir_qweb: css pagination: stylesheets order
The order of the stylesheet's declarations in the html matters. Make sure
that the first part of the css is declared first (*.0.css).
2015-10-20 15:38:24 +02:00
Simon Lejeune 7b67b555f6 [FIX] ir_qweb: don't save buggy stylesheet assets
If the compilation of a stylesheet asset produces any error, don't save
it and instead output it debug-mode like.
2015-10-20 15:38:23 +02:00
Simon Lejeune 17ebc87f76 [FIX] ir_qweb: css pagination: max css rules
Else, a css file with three rules produces two files when the max css
rules is set to three.

see rev 37959d45f3
2015-10-20 15:38:23 +02:00
Simon Lejeune 795715d186 [REF] ir_qweb: add max_css_rules to AssetsBundle init signature
This way it is overridable by unit tests.
2015-10-20 15:38:23 +02:00
Simon Lejeune 1e27b89be6 [REF] ir_qweb: remove debug in AssetsBundle init signature
It's not used
2015-10-20 15:38:23 +02:00
Simon Lejeune 6a452b5f14 [FIX] ir_qweb: useless get_attachment call in save_attachment
as save_attachment is only callded by js and css methods after an
empty return result of get_attachment, directly calling again
get_attachment is superfluous
2015-10-20 15:38:23 +02:00
Simon Lejeune 152f9ca0fc [REF] ir_qweb: clean_attachments
* use format to avoid escaping the %
* add a docstring to explain what's going on
2015-10-20 15:38:15 +02:00
Simon Lejeune fa5f86f336 [FIX] ir_qweb: useless test in js bundle generation
If one of the javascript files of the bundle has been modified since the
bundle generation, we are sure that get_attachments will return an empty
list because it searches with the version of the bundle which takes into
account the last modification of any of the bundle's content.

Also, this check is not present in the css bundle generation.
2015-10-20 15:37:28 +02:00