Commit Graph
103218 Commits
Author SHA1 Message Date
Olivier Dony b25800403e [FIX] crm: saleperson m2o should not be a selection widget
There could be thousands of users so a fixed selection widget
is unusable (no search, fixed length, etc.)
2015-12-07 13:19:10 +01:00
FalcoBolger 4ba2e91aa4 [FIX] base_action_rule: pass kwargs when calling create/write's origin method 2015-12-07 12:26:40 +01:00
Goffin Simon 85e33c8e1d [FIX] account_anglo_saxon: incorrect account tax
When changing the account_id of an invoice line, all the tax line,
created from this invoice line and with a tax which has no
"account_collected_id" set, must be set with the same account_id.
Inspired from the function "compute" in model "account.invoice.tax"

closed #9727
opw:657499
2015-12-07 11:29:25 +01:00
Olivier Dony a8c253e337 [FIX] hr_expense: display latest expenses on top (was the case pre-9.0) 2015-12-06 23:49:47 +01:00
Odoo Translation Bot 0de99dd2c8 [I18N] Update translation terms from Transifex 2015-12-06 02:56:34 +01:00
Odoo Translation Bot 8e7417ffa6 [I18N] Update translation terms from Transifex 2015-12-06 01:28:23 +01:00
Jeremy Kersten 3a1c693259 [FIX] osv: fix boolean in domain for custom field
When a new column has been added after that some data already exists,
the old lines will keep an empty/null value. So when we search is the new field
is equals to False or if it is different of True, we need to match the null
values.

Backport of de3b64018a
2015-12-04 18:22:32 +01:00
Thibault Delavallée c711f3d897 [FIX] hr_holidays: display latest leaves first 2015-12-04 17:56:08 +01:00
Jeremy Kersten de3b64018a [FIX] osv: fix boolean in domain for custom field
When a new column has been added after that some data already exists,
the old lines will keep an empty/null value. So when we search is the new field
is equals to False or if it is different of True, we need to match the null
values.

close #9925
2015-12-04 16:31:31 +01:00
Nicolas Lempereur 09411a4a50 [FIX] website_forum: add summernote for non designer
In saas-6 the editor assets were always included, in 9.0 only for
designer but if website_forum is installed it should also be included.

fixes #9402
closes #9852

note: should not be forward ported after saas-8
2015-12-04 11:47:26 +01:00
pvy 81467d5600 [FIX] reports: add utf-8 encoding to the minimal layout 2015-12-04 10:30:16 +01:00
Martin Trigaux 463044a8db [I18N] Update translation terms from Transifex
Manual sync to fix errors due to bad translation of <!DOCTYPE html>
making it impossible to use Odoo
2015-12-04 09:08:30 +01:00
Christophe Simonis 3d1f1d6c28 [FIX] hr: Only show Employee's tags to HR Users
Keep the same behavior as 8.0
2015-12-03 20:08:54 +01:00
Olivier Dony 049c1c4e7a [FIX] hr_recruitment: no crash when default stage not found 2015-12-03 19:14:05 +01:00
Christophe Simonis 5fb29dedd1 [FIX] hr_recruitement: correct search of default stage on applicants 2015-12-03 19:00:19 +01:00
Denis Ledoux a6ad7b9b25 [FIX] point_of_sale: units decimals
The decimal precision displayed for the quantities
should be the same in the point of sale interface
and in the back-end.

Besides, the decimal precision of the pos order lines
quantity should be the same than the decimal
precision of the sale order lines quantity.

opw-657591
2015-12-03 18:16:12 +01:00
qdp-odoo e69affec98 [FIX] account: removed readonly=1 on fields tax_ids and tax_line_id of account.move.line object (moved to the views, so that men can import the accounting items and provide those fields) 2015-12-03 17:46:19 +01:00
qdp-odoo debb541148 [FIX] account, customer statement report: filter out the lines with debit=credit=0 (were valid in previous versions) and the lines belonging to another company than the one of the current user 2015-12-03 17:46:18 +01:00
Aaron Bohy f09ca9c777 [FIX] mail: followers: display followers and fetch subtypes
This commit fixes two bugs on followers:
- when landing on a form view, the followers' dropdown is now correctly filled
- when editing the subtypes of a follower while not being ourself a follower,
  the subtypes are now correctly displayed in the modal.
2015-12-03 16:13:40 +01:00
Géry Debongnie b6a4e43c02 [FIX] mail: fix full composer messages
Full composer messages were not loaded in the chatter when sent.  We
lost that functionality sometimes in the previous months.  This commit
makes it work properly again.

Some refactoring were required, we needed a way to load messages with a
given res_id and model.
2015-12-03 15:50:02 +01:00
Nicolas Martinelli 0644cfc543 [FIX] mail: message not found
message_ids contains the ids of all the messages. However, a maximum of
100 messages are fetched when a page is open, and therefore some
messages might not be found in the JS cache. This leads to
message.is_needaction throwing an exception.

This fix returns True if the message is not found. It means that the
message will be set as 'read' even if it is not displayed.

opw-657896
2015-12-03 15:31:18 +01:00
Olivier Dony 02766b3fba [FIX] ir.translation: no crash when reading translations of obsolete fields
As of 2ba2cbca5f, accessing
the translation of a field that does not exist anymore would
crash if the model still exists.
2015-12-03 15:26:28 +01:00
qsm-odoo 8c0b755841 [IMP] web: return file content for url attachments
URL attachments are now returned as data and not redirection.
If the url does not match with a module file, the 301 status
(redirection) is still returned.

This allows to use the /web/image/<xmlid>/<dimension> route
and get an image attachment with correct dimensions.
2015-12-03 13:26:36 +01:00
Christophe Matthieu d1af67bf28 [FIX] web_editor: img classname is removed when change the url 2015-12-03 13:26:36 +01:00
Christophe Matthieu 0b34903388 [IMP] website_sale: no change in behavior but allow other comportment for new ecommerce designs
Allow toupdate the order content in js on an other page that the cart. An allow to use table instead of only div.
2015-12-03 12:00:00 +01:00
eLBati 44ad6f37b1 [FIX] website_forum: Use sudo to send new question notification
Otherwise portal users can not access to some partners subscribed to the forum.
Closes #9855
2015-12-03 11:58:54 +01:00
Martin Trigaux 1441f0f25d [FIX] mrp: cost of produced quant as total cost of production
At the end of the production, the cost of produced product should be the total
cost of production (cost of components + worklogs) for real time product.
The previous behaviour was to take the standard price from the product which,
in real time product, is the last purchased price, which is 0 for manufactured
product.
opw 657419
2015-12-03 11:45:53 +01:00
Goffin Simon cccb2351c4 [FIX] account: Bank statement reconciliation
To avoid to reset the partial reconciliation when the number of selected
lines is different to 1.
2015-12-03 11:24:07 +01:00
Aaron Bohy 5fdfd38b7e [FIX] im_livechat: don't remove empty sessions created recently
The 'cron_remove_empty_session' is performed every day and removes livechat
channels that contain no message.

The problem was that the cron might have been executed between the moment a
public user clicked on the livechat button, creating a new empty channel, and
the moment this user sent the first message through that channel. If that
happenned, the message was sent in an unexisting channel, and obviously never
received by the operator.

This fix makes sure that removed empty channels haven't been created or
modified within the last hour.
2015-12-03 11:21:47 +01:00
Aaron Bohy 8017a9569c [FIX] mail: ondelete cascade on mail_channel_partner relation
The problem occurred when the im_livechat cron 'cron_remove_empty_session'
removed empty livechat channels (a public user clicked on the livechat button,
creating a new channel, but never sent any message in it). The empty channel
was deleted by the cron, but the two records in the mail_channel_partner
relation table (linking the channel with the public user and the livechat
operator) wasn't removed, and the value of their field 'channel_id' was None.

When this happenned, it broke the SQL query of 'channel_search_to_join()', the
RPC call performed when clicking on '+' new to public channels in the client
action, resulting in no result displayed in the dropdown.

With this fix, records in the relation table are automatically deleted when
their corresponding channel or partner is deleted.
2015-12-03 11:21:47 +01:00
Aaron Bohy 7bea8412c5 [FIX] mail: href of mention links in sent messages
Those messages can be read from the client action interface, where the onclick
redirection is properly handled, but they are also sent by email. The
generated links should thus have a correct href.
2015-12-03 11:21:47 +01:00
Aaron Bohy e7cb3dcaa8 [FIX] mail: don't redirect to user's own partner form view
Clicking on the author of a message opens a DM with the corresponding user if
there is one, and opens the corresponding partner's form view otherwise.

When the author is the current user, obviously we don't want to open a DM with
ourself, but we probably don't want to open our partner form view either, which
was exactly the behavior before this rev.
2015-12-03 11:21:47 +01:00
Aaron Bohy 33ac65c805 [FIX] mail: redirection handling in chat windows
- clicking on a channel mention (or a user) from a chat window opens a new chat
  window for that channel
- clicking on any other link in a chat window correctly opens the corresponding
  document

2 minor changes were required:
- use do_show() instead of on_reverse_breadcrumb() to update control panel and
  url in client action, as other actions can be stacked over the client action,
  e.g. by clicking on a document link in a chat window. In that case, the
  on_reverse_breadcrumb callback wouldn't be set, and thus the control panel and
  url wouldn't be updated by coming back to client action using the breadcrumbs.
- channel_join() now checks whether or not the channel has already been joined
  (i.e. if it is in the JS cache) before performing the RPC. This check was
  performed by each caller, so this simplifies the code.
2015-12-03 11:21:47 +01:00
Nicolas Martinelli 6e96da6255 [FIX] mrp_operations: product serial numbers
When raw materials of finished products are tracking with lot or serial
number, using the "Play" button on the work orders will never trigger
the pop-up asking for the numbers.

This fix prevents the MO to be set on "Done" if any product with
tracking activated is found. This will force the user to click on
"Produce" to finish the process, and therefore enter the serial numbers.

opw-657586
2015-12-03 10:57:33 +01:00
Denis Ledoux f07e0c1af2 [FIX] account: force amount_residual recomputation on post
The `amount_residual` computation depends on the fact
the `acccount_id` of the move line does allow reconciliation
or not. If it doesn't, the amount residual will always be 0.0.

So, if you check the "allow reconciliation" on the account
after creating the journal items or after changing the
debit/credit amount, the amount residual is not recomputed.

We do not set the `depends` directly on `account_id.reconcile`,
as, if we do, and a user checks/unchecks this box on an account
having a lot of records, this will recompute this residual
amount on all lines, and this is something we do not want
to happen.

The work-around when this case happens,
that the amount residual is not correct due to the fact
the `allow reconciliation` on the account
was checked after having posted the entry,
is to cancel the entry and repost it. This
will recompute the residual amount.

opw-656972
2015-12-03 10:54:24 +01:00
Christophe Matthieu d478b45e43 [FIX] website_sale: forEach doesn't exist for some browsers 2015-12-03 10:45:05 +01:00
Christophe Matthieu d0375a6f07 [IMP] website_sale: no change in behavior but allow new ecommerce designs 2015-12-03 10:45:05 +01:00
Goffin Simon 2749f73f9b [FIX] sale: update_tax in product_id_change
Thanks to the fix 503820a, when a fiscal position mapped an included
tax on a SO line, the price unit of the product is recomputed.
This fix has been applied in the function product_id_change in
the model "sale.order.line"

Before the fix, when changing the product uom on a SO line, the price
unit of the SO line was reset with the pricelist price without taking
into account the fact that a included tax could be removed on the SO line.

To avoid this kind of problem, the price unit must be recomputed in any
case according to the taxes.
2015-12-03 09:21:03 +01:00
Cedric Snauwaert 120f6a7ea5 [FIX] account: fix incorrect value for company_residual_signed on invoice + set invoice in the journal currency and not in euro 2015-12-02 17:24:50 +01:00
Goffin Simon 8af539b202 [FIX] website_sale: "Add to Cart" button with inactive variants
When clicking on "Add to Cart" button(a link in fact) with an
inactive variant in the Shop, the button must be disabled.

opw:657967
2015-12-02 17:13:05 +01:00
Goffin Simon d9f92ba160 [FIX] account: included tax with fiscal position
When creating an invoice with a fiscal position(fp) which maps an included tax(itax)
to an excluded tax(etax). Each invoice line mapped by fp must recompute its unit price
to substract the included tax.
Inspired from 503820a

Closes #9811

opw:658109
2015-12-02 16:47:51 +01:00
qdp-odoo 077a168d4c [FIX] stock_account: counterpart account of a cost price adjustment is more likely the expense account instead of the stock input/output. Backport of commit 57d0903154 2015-12-02 16:20:32 +01:00
Martin Trigaux 16e4cd15f0 [FIX] stock_dropshipping: multicompany filter
The multicompany rule on procurement.rule may not be working as the field
company_id is not displayed with no default value (so probably often empty).
This means that the user may have access to rules from another company from the
product but failing to read the stock.picking.type

To avoid regressions introduced by 35f3dea, make a search on stock.picking.type
to filter on the one the user really have access to.

opw 658141
2015-12-02 16:07:11 +01:00
qdp-odoo 7909a4409a [FIX] analytic: fixed name_search() on analytic account. The partner_id field is not mandatory, but the previous domain was making an inner join with the partner table, which resulted in not finding the accounts matching the search criteria on name/code if they hadn't a partner set. 2015-12-02 14:35:27 +01:00
Raphael Collet 5db0db924a [FIX] tools: make frozendict hashable on all kinds of write values
Specifically, fix the case of values like `[(0, 0, {...}), ...]`.
2015-12-02 14:10:33 +01:00
Nicolas Martinelli 26d3275b2d [FIX] crm: customer information visible
When an email is sent through the "Contact us" page, it triggers the
creation of a lead or an opportunity depending on group_use_lead. The
issue is that if group_use_lead is set to 0 ("Each mail sent to the
alias creates a new opportunity"), the user will never see the customer
information entered in the contact form such as the name.

It was therefore decided to make this tab visible even if the leads are
not used.

opw-657154
2015-12-02 13:40:17 +01:00
Christophe Matthieu 4d8ec5f931 [FIX] web: readonly fields not transferred from dialog to 2many field
'write_function' transfer the options to 'write' method from the popup form

Steps to reproduce:
1. Create custom model to add a product quantity on hand(readonly) field on stock.move
2. Show this field on Warehouse>All operations>Create a Transfer> Create: Internal Moves
3. Add a Internal Move, then open it again, the quantity on hand field's value show 0. But change the product, the value is correct.
2015-12-02 13:29:51 +01:00
Yannick Tivisse f6713b420b [FIX] mail: Remove field 'chatter_needaction_auto' from the view as it's not used
anymwhere since the chatter refactor refactoring

It has been removed entirely in master at
https://github.com/odoo/odoo/commit/b278b2c431a1bb06627bbdc285263644049bb3b0
2015-12-02 13:17:04 +01:00
Joren Van Onder 911e49c1d5 [FIX] point_of_sale: don't ignore iface_tax_included
In 22c8db7fcb the concept of
iface_tax_included was introduced. It was not actually used for the
display price though. It looks like a mistake during merging or
something because it adds the code responsible for dealing with the
option after a return statement in get_display_price().

opw-657983
2015-12-02 12:39:50 +01:00
Géry Debongnie 2d2daccfba [FIX] mail: hide chatter when printing in browser
The chatter is not supposed to be visible when printing a form view.
2015-12-02 12:24:55 +01:00