Commit Graph
99530 Commits
Author SHA1 Message Date
Goffin Simon bde7f4dad1 [FIX] sale: _prepare_invoice_line
When creating an invoice from a SO, the field 'sale_layout_cat_id'
must be passed from each SO line to each invoice line.

opw:656981
Closes #9157
2015-11-24 14:01:48 +01:00
Nicolas Lempereur 4424f301a6 [FIX] im_livechat: missing dependencies in im_livechat page
The Website Live Chat is supposed to appear following 3 ways outside of
the backend:

- in a singleton page with path /im_livechat/support/{id}

- in a page in which a code code snippet (with two script and a css
  bundle) has been inserted in the head section

- by installing the module "Website Live Support"

In the first both instances, including some less files and bootstrap
default variables is required which this commit do.

In the last instance these file should already be included in the
website and the additional assets required are inserted in the
website.assets_frontend bundle.

opw-654898
2015-11-24 13:02:47 +01:00
Nicolas Martinelli a4b6e3a82a [FIX] hr_timesheet_sheet: select timesheet
Select analytic lines related to timesheet only.

opw-654362
2015-11-24 12:56:32 +01:00
Thibault Delavallée aaa8d07de0 [FIX] survey: sending emails
Emails are now send once by recipient. If there is a partner_id, use it as
recipient using the correct recipient_ids field, not partner_ids (not the
same meaning, recipients for emails use recipient_ids). Use the email_to
if there is no partner_id. Indeed this method is called with partner_id
and email being the same recipient.

Also added auto delete to generated emails. As partner_ids is not used anymore
the mails are not considered as notifications and stay in the mail_mail table.
There is no need to stock those emails.
2015-11-24 11:36:48 +01:00
Goffin Simon 32c8280a02 [FIX] payment_adyen, payment_authorize, payment_buckaroo, payment_paypal, payment_sips: Disable csrf on callbacks
Inspired from 2099f15d67

opw:653341
2015-11-24 11:35:57 +01:00
Nicolas Martinelli db7ed45a4e [FIX] sale_stock: handles UoM correctly in check availability
A simple browse with `uom=` as parameter does not convert
virtual_available in the requested UoM. Therefore, we need to convert
manually in the standard UoM of the product.

Bonus: is_available depends on self.route_id
2015-11-24 11:33:26 +01:00
Nicolas Martinelli ae3efc0df7 [FIX] sale_stock: properly check routes
For some unknown reason, the salepocalypse project completely screwed up
the availability check of the product. This commit adds back the check
as it used to be.

opw-653991
2015-11-24 11:33:26 +01:00
Denis Ledoux 547bab22c8 [FIX] website_mass_mailing: missing requires
`mass_mailing.unsubscribe` depends on

1. `web.ajax`, as it uses `ajax.jsonRpc`
2. `web_editor.base`, to explicitely wait
   for all dependencies to be loaded,
   so the DOM can contain `o_unsubscribe_form`

opw-654396
2015-11-24 11:13:44 +01:00
Martin Trigaux 2190d5a08a Remove crm as dependency of event_sale
There is no need for CRM to have event management. Introduced at 64d63ffaa6 for probably no reason...
2015-11-24 10:37:20 +01:00
Denis Ledoux fe5183b2a9 [FIX] sale: quotation date_order default value
`fields.Date.context_today` can be used as default value
for Date fields,
but, for Datetime fields, it shouldn't be used, as
this doesn't contain the time, only the date.

`fields.Datetime.now` should be used, as this includes
the date (in UTC, as expected).

opw-657294
2015-11-24 10:16:40 +01:00
Nicolas Martinelli 50db2470f0 [FIX] hr_timesheet: display only timesheet
Display only timesheet related analytic lines.

opw-654362
2015-11-24 10:05:36 +01:00
Cedric Snauwaert cdb0dae247 [FIX] account: default value for journal_id not correctly working when clicking from dashboard
missing journal_id in search view and default value for journal_id when creating a new invoice should
first take value in context if any.
2015-11-24 09:43:42 +01:00
Géry Debongnie 3b5e7feb16 [FIX] mail: fix all bugs (in search)
This commit probably fixes all bugs related to the search view
2015-11-23 16:29:37 +01:00
Géry Debongnie 919179b417 [FIX] mail: opening a chatter mark all messages as read
also, send correct notifications in case several channels are concerned.
2015-11-23 16:29:08 +01:00
Aaron Bohy 5616027190 [FIX] im_livechat,mail: unread counter in chat windows
Synchronize the unread counter between chat windows, client action and the
actual value stored in DB. This adds robustness to the counter displayed in
chat window, and allows to synchronize the client action with the chat windows
when marking messages as read.
2015-11-23 16:29:08 +01:00
Aaron Bohy faf5cea948 [FIX] mail: various UI improvements
- emoji are no more clickable in threads (they are only in the popover)
- correctly update channel needaction counter
- don't display 'New message' notification when the channel in detached
- display in the ui channels that send emails and other channels
- prevent notifications in mass mailing channels
- increase bottom padding in client action thread
2015-11-23 16:29:08 +01:00
Thibault Delavallée 00630c5fd7 [FIX] website_event_sale: maximum tickets to buy
Buying a ticket is limited either the number of available seats on the ticket
and on the event. So compute the minimum between those two values to display
the selection.
2015-11-23 14:47:11 +01:00
Thibault Delavallée d035fef657 [FIX] event: do not show canceled events by default
Upcoming filter show events that begin in the future. However it is not
necessary to show canceled events. The filter has been udpated accordingly.
2015-11-23 14:47:11 +01:00
Nicolas Martinelli 1466a0063f [FIX] product: constrain on attribute values
Add a constrains to prevent the selection of more than one value of the
same attribute, as it was the case in v8.

opw-653125
2015-11-23 14:31:29 +01:00
Nicolas Martinelli e625d31ef9 [FIX] sale: use untaxed amount in report
Sales revenue report should not include sales taxes.
https://en.wikipedia.org/wiki/Revenue

opw-653674
2015-11-23 14:19:18 +01:00
Denis Ledoux cbfc9c9e20 [FIX] account: process_reconciliations @api.v7
The method `process_reconciliations` is written in api.v7.
Therefore, any calls done on ORM models must be done
in the 7.0 API in this method.

To reproduce the issue:
 - Open a pos session, and sell something, select a partner
   and choose to create an invoice.
 - Come back to the back-end, and in the accounting dashboard,
   in Customer Invoices > More > Matching payment,
   hit ctrl-enter to reconcile all the balanced items in the sheet.

opw-654410
2015-11-23 12:16:07 +01:00
Cedric Snauwaert 2015c6ceab [FIX] account: missing access-right for billing group (account.bank.statement.line) 2015-11-23 11:22:26 +01:00
Thibault Delavallée 007e217c54 [FIX] website_forum: new mail api
set_message_read has been removed from the mail api. It is replaced by
set_message_done. Thanks Lorenzo Battistini.
2015-11-23 11:01:57 +01:00
Raphael Collet e0081e4f4d [FIX] web: fix AbstractManyField.get_value with updated records
Linking to an updated record must use both `LINK_TO` and `UPDATE` commands,
because the `UPDATE` command does not implicitly `LINK_TO`...
2015-11-23 10:20:32 +01:00
Raphael Collet 2c571f1114 [FIX] web: method BufferedDataSet._update_cache must purge changes from useless changes 2015-11-23 10:20:32 +01:00
Raphael Collet 954f516fde [IMP] test_new_api: add list view for participants in discussion form view
This is for testing the result of an `onchange` that returns a many2many field.
2015-11-23 10:20:31 +01:00
Raphael Collet 86d24996d9 [IMP] test_new_api: improve code of test_onchange on one2many fields 2015-11-23 10:20:31 +01:00
Nicolas Martinelli e6a82e539b [FIX] purchase: suggest quantity only if product change
The suggestion of the new quantity is now working correctly every time
the product is changed. Some code cleaning as well.
2015-11-23 08:51:39 +01:00
Odoo Translation Bot 3180f80bf9 [I18N] Update translation terms from Transifex 2015-11-22 01:30:36 +01:00
Raphael Collet baa3ce58fd [FIX] models: update field transient only, and do not modify state
Fixes regression introduced at 4d9e36a459
that caused all custom (manual) models to be reset to "base" models.

This prevented the creation and proper use of custom models.

opw-657017
Closes #9670

Partial version of #9663
2015-11-20 17:36:23 +01:00
Yannick Tivisse 9f2b6e00ef [IMP] website: Add a class btn-multi-line to allow multi line labels on buttons
On website_quote, according to the translation, the label may become much larger than
the button width. By default the bootstrap btn class has the property 'white-space: nowrap'
Here the goal is to add a class which will be used for these kind of cases.
2015-11-20 16:41:37 +01:00
Aaron Bohy a8239cd2ae [FIX] im_livechat,mail: detach chat on the receiver side
This commit concerns DM and livechat channels. Those channels are now
automatically detached on the receiver side. This allows users to directly
reply to DM's or livechats without coming back to the client action.

Note that they aren't detached if the user previously manually closed the
channel's chat window.
2015-11-20 15:48:03 +01:00
Aaron Bohy c2dfea5cc9 [FIX] mail: correctly load livechat channels
The livechat channels returned by the chat_manager's initial RPC were ignored.
Livechat channels thus weren't persistent in the client action.

This rev. cleans the returned object 'channel_slots' so that it only contains
arrays of channels. The additional mapping and partners array were useless as
the information they contained was directly stored in the DM channels.

We now simply iterate on each array returned and add each channel it contains,
including livechat channels.
2015-11-20 15:48:03 +01:00
Aaron Bohy 1dfd1bd7a3 [FIX] mail: correctly pin DM's on message post
DM channels are supposed to be pinned on each partner's side when a message
is post in the DM. This didn't work because we checked if the channel is a DM
by comparing its type to 'direct_message', which is not a valid channel type.

Also stop marking the DM as pinned in channel_join_and_get_info() as it is now
useless.
2015-11-20 15:48:02 +01:00
Aaron Bohy c470e0bf85 [FIX] mail: only open DM on first message received
instead of directly, when the other user opens the DM on its side.
2015-11-20 15:48:02 +01:00
Nicolas Martinelli 902c1bf085 [IMP] purchase: split onchange_product_id
This commit splits the changes which affect the product_id and the
changes which affect the product quantity. The main reason is that a
product change should trigger the recalculation of the price unit,
while a change in the quantity should not trigger product-specific data
recalculation (such as the name or the taxes).

The original issue was the following:
- set a supplier for a product with a minimum quantity larger than 1.0
- create a PO for this supplier and this product: since the minimum
  quantity is not met, no tax is set on the line.
- change the quantity to the minimum quantity of the supplier
- the tax is set on the line, but a warning pop up confuses the user by
  asking if it is necessary to discard the line since Odoo and the user
  changed the same line.

This commit prevents this warning, and moreover it will set the taxes on
the product right away.

Bonus: if you change the product of an existing line, it will not keep
the privious quantity/price values, which was the case before.

opw-656729
2015-11-20 13:55:04 +01:00
Nicolas Martinelli d38f916cd8 [IMP] purchase, product: suggest minimum quantity for vendor
This commit introduces the suggestion of a minimum quantity for the
chosen vendor. The minimum quantity is suggested only if the quantity on
the line is zero. It still allows the user to set a quantity smaller
than the minimum quantity for the given vendor.

opw-654300
2015-11-20 13:55:04 +01:00
Martin Geubelle 37492e5c9a [IMP] board: I want to be an app ...
just like the others.
2015-11-20 13:30:31 +01:00
Joren Van Onder 84f9bfecad [FIX] point_of_sale: do not attempt to parse "-" as a float
When inputting a payment, you can toggle between positive and negative
amounts by pressing the minus key. We use a string representation of
what the user inputs and then parse it to a float to do calculations. So
what can happen is that you can type in an amount of "-" or you can have
a payment of "-2" and do one backspace. Both of these would trigger the
problem because "-" is not a number.
2015-11-20 12:15:04 +01:00
Thibault Delavallée f6fdb0b6b3 [FIX] website_forum: new post notifications
Better message management, linked to the validation feature added in v9

 - post a "new post to see" message only when the post is validated
 - post a "new post to validate" message when the post has to be validated.
   This message is sent only to followers having sufficient karma.
2015-11-20 11:51:53 +01:00
Thibault Delavallée a6b6d02007 [FIX] website_forum: do the todo
We have a tunable parameter for flagged / offensive questions. So let us use
it instead of some other parameter * 5.
2015-11-20 11:51:49 +01:00
Thibault Delavallée feb86ae38c [FIX] website_forum: no auto subscription
Remove forum creator as follower of the forum. Indeed this means that generally
the website admin will be follower of all posts of this forum. Which is
probably not really necessary.
2015-11-20 11:25:17 +01:00
Thibault Delavallée 104826c311 [FIX] mail: subtypes read as sudo
Indeed portal and public users may have to read internal subtypes to perform some
check in the code.  However the rules do not allow them to read those internal
subtypes. We have to read some subtypes as sudo then.
2015-11-20 11:25:17 +01:00
Aaron Bohy 3c0c354e19 [FIX] web: list_view: display nocontent helper after delete
if there are no more records to display
2015-11-20 09:43:58 +01:00
Fabien Pinckaers 623bfe644c [FIX] twice url in tweet 2015-11-19 23:08:20 +01:00
Fabien Pinckaers e043a0780b [IMP] Analytic Accounting Visible if active only 2015-11-19 23:04:04 +01:00
Josse Colpaert 1fa45fcfff [FIX] stock: don't prepare pack operations when not everything is reserved and delivery method is all at once
When all the products need to be reserved before doing the picking,
the pack operations were not shown, but still created.

This is not necessary (and did not work as it tried to reserve according to
existing pack operations), as you will need to reserve again when there is
sufficient stock to put the picking in available state and then
the pack operations will be generated and made visible.
2015-11-19 17:18:31 +01:00
qsm-odoo cb16d20909 [FIX] website: theme customization modal crash
When clicking on customize theme button or going on an url which
contains the theme=true option, the theme customization modal failed to
be launched as we did not wait for website to be ready.
2015-11-19 17:14:56 +01:00
Nicolas Lempereur 068b81cfef [IMP] web: graph legend tweaks when many item
The legend of the graph when there was too much items in it could
prevent user to see a part or even the whole graph.

On non-mobile device, move the Pie Chart legend to the right, thus if it
overflows the char is still visible and we can toggle the seen top
legend item.

Otherway, the legend on top is hidden when :

- there is more than 25 legend items and the device has width < 768
- there is more than 50 legend items and the device has 768 <= width < 992
- there is more than 75 legend items and the device has 992 <= width < 1200
- there is more than 100 legend items and the device has 1200 <= width

Since this is based only on the number of legend items but legend items
could have variable name lengths, there will still be edge case where
the legend obstruct the graphical data display.

In this situation the current way to cope with this further filter the
displayed data.

opw-653445
2015-11-19 16:24:09 +01:00
Goffin Simon 38c80ad7f9 [FIX] warning: Blocking messages with PO
Before the fix, it was possible to create a PO with a vendor who had
a Blocking Message set on.

opw:656875
2015-11-19 16:19:01 +01:00