Commit Graph
103218 Commits
Author SHA1 Message Date
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
Denis Ledoux 8f6caf9785 [FIX] google_spreadsheet: Spreadsheets list
The URL for the Google Spreadsheets slightly changed
It's now `docs.google.com/spreadsheets/`, and no longer
`docs.odoo.com/spreadsheet/`

The domain is therefore changed to support both cases

opw-651847
2015-10-22 10:08:26 +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
Martin Trigaux 8feabe46cd [FIX] packaging: include favicon
missing .ico files

Fixes #7745
2015-10-21 13:45:37 +02:00
Martin Trigaux 6a306a03be [MERGE] Forward port 8.0 into saas-6 up to rev 2fa8b99e 2015-10-21 13:35:43 +02:00
Martin Trigaux 2fa8b99e15 [FIX] packaging: include svg files
Fonts or some svg images where not present in packaging.

Fixes #9118
2015-10-21 13:27:30 +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
Jesús Alan Ramos Rodríguez 248d4a32d9 [FIX] base: position of MXN currency 2015-10-20 16:31:37 +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
Arthur Maniet 2ebfffd28f [REM] IBAN: constraint that requires a BIC for an IBAN account
It is not always possible to possess both the account number and the BIC at the
time of creation. Eg. bank statement import where few file formats provide BIC
2015-10-20 15:29:53 +02:00
Goffin Simon c0c64a7fe5 [FIX] purchase: Scheduled Date in PO
When setting the quantity in a PO line, the field "date_planned" is changed
by onchange_product_id and this field is equal to:
-the date of today + seller.delay if there is at least one provider for the product
-the date of today if there is no provider set for the product
-the date manually set if there is no provider and already a scheduled_date set

To keep the similar behaviour to 8.0 for product without provider.

opw:652394
2015-10-20 14:36:57 +02:00
Denis Ledoux c456d5f1a7 [FIX] portal: access management, do not re-send emails
When confirming the portal access management wizard,
the invitation email was sent to
users already having access to the portal,
while it should be sent only to
the users for who the access has just
been granted.

opw-650357
2015-10-20 14:31:42 +02:00
Christophe Simonis 8b02879ff5 [FIX] purchase: enforce company dependent fields
During new-api rewrite, some property fields wrongly lost their
company_dependent flag.
Despite it need a migration script to create the missing properties,
not updating the module does not lead to crashes.
2015-10-20 11:43:57 +02:00
qdp-odoo 3e0d72fa56 [FIX] l10n_generic_coa: added back the demo data for accounting 2015-10-20 11:15:06 +02:00
Jos De Graeve 92bfe3208a [FIX] stock: speed up backorder creation in barcode ui
Set no_recompute to True
in order to speed up barcode picking UI

This is done for the same reason than
7b306fc17a
merged through #6754.

The remaining quantities will be computed in the
`do_transfer` method, thanks to the call
`picking_recompute_remaining_quantities`.

There is therefore no need to recompute
the remaining quantities for each pack operation.

Closes #9142
opw-645883
2015-10-20 10:34:15 +02:00
Nicolas Lempereur 91f3e5af63 [FIX] point_of_sale: bank statement currency field renamed
In the refactoring of v9.0 accounting module (c04065a) the currency
field on account.bank.statement has been renamed currency_id.

sentry-32303830312e3239303433353734
2015-10-20 10:05:16 +02:00
Nicolas Lempereur e06b7887be [FIX] point_of_sale: currency widget type typo
The field currency of an account bank statement is a many2one toward
the res.currency model.
2015-10-20 09:51:55 +02:00
Martin Trigaux eca1983aef [FIX] account: analytic entries onchange
Broken on_change, comparing id and recordset

Fixes #9144
2015-10-20 08:53:40 +02:00
Nicolas Lempereur c2267e78ec [IMP] hr_recruitment: stage requirements typo causing warning
hr.recruitment.stage has no field description but a field requirements.

sentry-32303830312e3239303433353734
2015-10-20 08:43:32 +02:00
Denis Ledoux 7116d62c1c [MERGE] forward port of branch 8.0 up to 5a4884f 2015-10-19 17:07:46 +02:00
Denis Ledoux 5a4884f017 [FIX] stock: update inventory wizard, default location_id
In a multi-company environment, you might not
have the access to the stock location
`stock.stock_location_stock`,
in such a case, you should not set it as default value.

This is a regression of revision 9bf6f0310e

opw-652387
2015-10-19 17:04:26 +02:00
Martin Trigaux f75dcfe4b0 [FIX] crm: do not mark as won a lead
A lead can be marked as won, it must be converted to an opportunity first.
Previous flow was problematic as we could still convert to opportunity a won
lead (which does not work and does not make much sense).
A lead can only be lost or converted.

Fixes #9076
2015-10-19 16:04:06 +02:00