Commit Graph
99161 Commits
Author SHA1 Message Date
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
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
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
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
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
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
Denis Ledoux 4315779e55 [FIX] account: invoice in foreign currency
When creating an invoice in a foreign currency,
and adding a line with a product,
the `onchange` failed,
due to the fact the field `date_invoice`
is not on the invoice line, but on the invoice.
2015-10-19 15:45:40 +02:00
Joren Van Onder 0cbf0af783 [FIX] point_of_sale: display POS related info in contact form again
In 6b55539dc7 the "container_row_stock"
group in stock.view_partner_stock_form was hidden using
groups="base.group_no_one". The issue is that the POS used a group
inside of this group that it modified to display the associated
barcode of the partner and the loyalty points of the partner. So
although the code still worked, the actual information was invisible.

To fix it we inherit the view directly from where it is created, namely
base.view_partner_form which is a bit nicer than inheriting from an
already inherited view.
2015-10-19 13:46:21 +02:00
Martin Trigaux bc0986f53b [FIX] hr_timesheet_sheet: week number according to ISO 8601
The ISO weekday should be computed with isocalendar dateformat
The exact directive is '%V' according to GNU/Linux system strftime
http://man7.org/linux/man-pages/man3/strftime.3.html

However '%V' is not documented in official cross-platform syntax supported on
all python built, according to standardized by ANSI C formats
https://docs.python.org/2.7/library/datetime.html#strftime-and-strptime-behavior

as '%V' may not be supported on other platforms such as MS Windows, use the
cross-platform 'isoformat()' method.

Note that according to ISO 8601, the start and end of date may belong to the
previous or next year.
e.g.
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').isocalendar()
(2004, 53, 6)
>>> datetime.datetime.strptime('2005-01-01', '%Y-%m-%d').strftime('%W')
'00'

Fixes #8927
2015-10-19 12:25:39 +02:00
Nicolas Lempereur 102b337c6a [IMP] point_of_sale: stop warning unknown field 'accuracy'
In e9c6fd0 'accuracy' was added to the field list read for res.currency,
but since the accounting refactoring in 9.0 (c04065a), this field was no
more present (replaced by decimal_places).

Since this field in the current point_of_sale javascript code was never
used, this commit removes it from the field list.

sentry-32303830312e3239303433353734
2015-10-19 12:21:52 +02:00
Denis Ledoux 17a630cd24 [FIX] account: use range_year for sequences using ranges
This is an oversight during the foward-port
57168a9e90
of the revision
57168a9e90

opw-652410
2015-10-19 12:12:52 +02:00
Arthur Maniet c0a2bc8e54 [FIX] account: adapt method account_bank_statement.py@link_bank_to_partner
This method hadn't been updated during the big refactoring of bank accounts / journals and was broken.
2015-10-19 10:37:57 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Damien Bouvy 31ff6c68f4 [FIX] project, sale_timesheet: common field between non-dependent modules workaround
The project and sale_timesheet modules both define a project_time_mode_id field on res.company but they are not dependent on each other. This causes problem because the first module that creates the field "wins" the xmlid and will delete the field on uninstall, regardless of the other module (which will then stop working until you do an update that will recreate the field).

To work around this in a stable version, we manually create xmlids for the field in each module; on uninstall the field will not be deleted if an xmlid still refers it (which will be the case if the other module is installed).

Inheriting fields from modules that are not dependent in a direct way (ancestor-child) is not supported, so normally you should use modularity to define the field in a parent module. Since 9.0 is a stable version, we need a small workaround.
2015-10-16 16:38:25 +02:00
Aaron Bohy be5fc7b1a4 [IMP] mail: redirect to DM on user clicked
When clicking on a partner in the thread of messages, it opens the DM with the
associated user if there is one (and if this user isn't the current user).
Otherwise, or when clicking on a record of any other model, the user is
redirected to that record's form view.

This change required a minor change in chat_manager: create_channel now
returns the created channel, as the client action needs it to switch to it.

Moreover, in the thread, when there is no partner associated with a message
(only an email address), we simply use html's mailto mechanism. This fixes a
bug as we formerly tried to open an unexisting record of res.partner.
2015-10-16 15:52:02 +02:00
Géry Debongnie 6ae0309b99 [FIX] bus,mail,livechat: fix problem with multiple long polls
The bus was allowed to restart polling, client side, to allow the user
to directly receive messages in new channels.  This was only acceptable
as a temporary fix, the correct way to do this is to actually notify the
bus server side. This is even more urgent since the client was allowed
to keep multiple longpolls simultaneously, which degraded the experience
in some cases.
2015-10-16 15:52:01 +02:00
Aaron Bohy 765cfa040d [IMP] mail: client action: sidebar: hide livechat when empty
Channel types that disable the 'add a channel' feature like the livechat are
now only rendered in the sidebar of the client action if there exists at least
one channel of that type.
2015-10-16 15:52:01 +02:00
Géry Debongnie 4884b41f55 [IMP] mail: chat_windows improvements
including:
- larger chat windows
- add a counter for unread messages when the chat window is folded
2015-10-16 15:52:01 +02:00
Géry Debongnie 9f86de81bc [FIX] mail: fix permission issue when starring/marking messages
If a user does not have write permissions on a model, he should still be
able to remove himself from the many2many relation.

This caused a problem: some messages could not be modified by a user
(star/unstar or mark as read)
2015-10-16 15:52:01 +02:00
Aaron Bohy 4c7ab52a67 [IMP] mail: thread: hide avatar, author and date of consecutive messages
... from the same author, written within 1 minute (restricted to comments).

Also:
 - Display stars and needactions on hover only
 - Display the date of messages without avatar and info in the margin on hover
 - Add 'selected' state of messages (mainly for touch screens to replace hover)
 - Fix typo (msg_type -> message_type) on the computation of the avatar url
2015-10-16 15:52:01 +02:00
Aaron Bohy 2dfbaceaec [IMP] mail,im_livechat: client action sidebar: 'unsubcribe' cross
displayed for all channels
2015-10-16 15:52:01 +02:00
Aaron Bohy 6b2250b2d2 [FIX] mail: font-family of notification counter in systray
On firefox, the font-family of the counter was font-awesome instead of Roboto
because the counter was inside the <i> tag on which font-awesome rules applied.
This rev. simply moves the counter out of that <i> tag.
2015-10-16 15:52:01 +02:00