Commit Graph
99776 Commits
Author SHA1 Message Date
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
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
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
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
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
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
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
Thibault Delavallée 21756eb55c [FIX] crm: sales team form view
Email alias is now visible in the form view. Indeed it is displayed in the
kanban view. However in order to edit it the user had to go into technical
group in the form view. This is confusing. Advanced alias configuration
is kept in technical group.
2015-12-02 11:36:01 +01:00
Thibault Delavallée 85ea9b48e8 [FIX] project: demo data
In project, stages are shared between projects. However demo projects do not
have any stage by default but stages are assigned to some random stages. This
leads to columns disappearing from the kanban view when there are no more
tasks or issues in it.

Also fixed the addition of followers in a demo project. Instead of hardcoding
the followers use a message_subscribe instead. It was impossible to reload
the project module before that fix.
2015-12-02 11:35:02 +01:00
Thibault Delavallée 2210a684e3 [FIX] project: project and stage views
project.project: alias should be visible without being in technical group.
Indeed the alias is displayed in the kanban view. However in order to edit
it the user has to go into technical mode, which is confusing. The alias
is now displayed in the form view, but advanced alias configuration is still
in technical group.

project.stage: show projects using the stage. Without that field it is quite
impossible to configure the use of stages in the project application.
2015-12-02 11:34:03 +01:00
Fabien Pinckaers 5b60e05ce4 [IMP] im_livechat: rating on a week
Percentage of happy customers should be computed over the last week.
2015-12-02 11:33:59 +01:00
Géry Debongnie f58450dbe9 [FIX] web_kanban: properly removes nvd3 tooltips
with the recent update of nvd3 to the last version, we fixed a lot of
tooltip issues, but we introduced at least a new problem:  when a view
is detached from the dom with a visible tooltip, it no longer is cleaned
up.

In this commit, we simply remove all nvtooltips when we detach a kanban
view (necessary because dashboards inherits from kanban).  This is not
really an elegant way to solve the issue, but at least it works.  any
improvement is welcome.
2015-12-02 11:13:22 +01:00
Raphael Collet 2d6fd5ea65 [IMP] ir_translation: make access rights depend on translated record
A translation of a field value for a given record can only be created/updated/
deleted if the current user has access rights for updating the record.

Access rights on translations are restricted to the group "Employee".  Those
still need create/write/delete access, in order to be able to edit records in
the user interface.  Other users (portal, etc.) simply have no explicit access
rights at all on translations.
2015-12-02 10:12:16 +01:00
Nicolas Martinelli 1e9ce28f7b [FIX] website, web_editor: open in new window
The field `isNewWindow` is used to open a link in a new tab. In this
case, the field newWindow was used, and therefore the property was not
applied.

opw-657510
2015-12-02 10:00:16 +01:00
Nicolas Martinelli 5c6c91bb81 [FIX] stock: display route number
When routes are defined for the variants of a product, the total number
of routes is not computed correctly. The total number of routes for a
product template should be the sum of the routes of its variants.

opw-657471
2015-12-02 09:57:52 +01:00
E.R. Spada II e0b55e9c5d [FIX] sale_margin: wrong onchange field
The cost does not take into account the quantity but the uom.
Closes #9802
2015-12-02 09:19:18 +01:00
Denis Ledoux eaed775ee2 [FIX] point_of_sale: session summary report
In 9.0, the currency field on the statement is
no longer `currency`, but `currency_id`.

This is an oversight during the forward port
6a306a03be

opw-658101
2015-12-01 18:06:44 +01:00
Denis Ledoux c99122cdb9 [FIX] anonymization: xmlid_to_res_id doesn't have a context argument
This is related to the revision 2e66c489e3

`xmlid_to_res_id` doesn't have a `context` argument,
trying to do a call with this `context` failed.

A simple attempt to anonymize the database raised the error.

opw-657858
2015-12-01 17:39:27 +01:00
Martin Geubelle 53dab127e1 [FIX] web_kanban: position of kanban_no_content
In sales dashboard, when there is no sales team, the no content message is displayed next to the dashboard.
The class o_kanban_ungrouped adds style to avoid this problem.

Credits to @qsm-odoo.
2015-12-01 16:37:25 +01:00
Ray Carnes f9453a1e1a [FIX] crm: grammar/spelling in demo
Closes #9803
2015-12-01 16:02:00 +01:00
Goffin Simon fc2295d8eb [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.
As "Add to Cart" is a link, the attribute "disabled" had no effect
on.

opw:657967
2015-12-01 15:46:28 +01:00
Yannick Tivisse dd92bd2a06 [IMP] project_issue: Display 'Issues' before 'Documents' on Dashboard
When the tasks are disabled on a project, we have this block order
Documents -> Issues

It's annoying because the documents view opens when we click on the
card if only the issues are enabled and documents have been posted
2015-12-01 15:37:59 +01:00
Denis Ledoux 0016bbd6d1 [FIX] portal_sale: invoice form for portal users.
Some fields were available in the invoice form view for portal
users, that they are either not supposed to see, or they do
not have the access rights to see them.

opw-657900
2015-12-01 15:17:06 +01:00
Nicolas Martinelli 3ebc2f4722 [FIX] product_visible_discount: forward port of bb90e55fb5 2015-12-01 14:50:25 +01:00
Nicolas Martinelli ed19f13843 [FIX] sale_stock: add category routes
The product category routes should also be added in the list of routes
checked since they are also used in _search_suitable_rule.

opw-653991
2015-12-01 14:50:24 +01:00
qdp-odoo 5eecd2a21a [FIX] l10n_fr: generate the chart of accounts after all templates have been created. Fiscal positions were missing 2015-12-01 14:17:51 +01:00
Goffin Simon e4ba2d43c9 [FIX] sale_crm: invoiced button in dashboard
The invoiced amount in the Sales dashbord must be compute with
the customer invoices.

opw:657538
2015-12-01 14:01:18 +01:00
Jeremy Kersten f814dd9908 [FIX] web, openerp: debug mode now works without referer
In some cases the Referer HTTP header may be missing or
stripped by a proxy, browser extension or anti-virus.
This breaks debug mode because it was solely relying
on the Referer header.

Introducing an explicit X-Debug-Mode header for RPC
calls allows for an alternative method that works
even when the Referer is missing.

This won't work in all cases, e.g. for direct $.ajax
calls, for example.

Closes #9824
2015-12-01 13:47:30 +01:00
Joren Van Onder d37c8ef632 [FIX] point_of_sale: use mapped taxes when creating account moves
We have a tax_ids_after_fiscal_position field on pos.order.line that
contains the mapped taxes. We should use that to create the account
moves. Otherwise the Point of Sale will create unbalanced journal
entries.

Fixes #9815
2015-12-01 12:20:36 +01:00
Olivier Dony 68196b1b6a [FIX] setup: missing cacert.pem data file for requests in win32 packaging
This data file is required when making HTTPS requests
with Python's `requests` package. Without it, modules
such as account_yodlee/account_plaid won't be able
to call their secure API.

+ minor refactoring (3 strikes and the code is out)
2015-12-01 12:03:25 +01:00
Jeremy Kersten c258702faf [FIX] website_sale_stock: fix xpath
Xpath expr has been changed between saas-6 and 9.0... Forward-port doesn't update it.
2015-12-01 11:50:50 +01:00
Cedric Snauwaert ee97028fa0 [FIX] account: account that has been deprecated should not be choosen on a new invoice 2015-12-01 11:47:02 +01:00