Commit Graph
104610 Commits
Author SHA1 Message Date
Nicolas Martinelli c819b88063 [FIX] web: FieldCharDomain value
An issue occurs in the following use case:
- Create an automated action
- Choose a Related Document Model
- Select records to filter (click on "Select Records")
- Do not save, but cancel instead
- Create an automated action once again

The filter domain keeps the same value than previously, forcing the user
to refresh the page to get rid of it.

opw-683214
2016-08-10 08:31:01 +02:00
Aaron Bohy 5d7be21e28 [FIX] project: task form view: many2one field's domain
Commit 9b69184ff. removed field 'state' of model 'project.project', and
converts domains using it to use field 'active' instead. However, the domain
of the many2one field in the task form view hasn't been correctly converted
(['state', 'not in' , ['closed', 'cancelled']] should be ['active', '=', True]).
2016-08-10 08:15:47 +02:00
Aristobulo Meneses bfdf5a6e12 [FIX] cli/server: handle comma-separated db_name config properly
The db_name parameter passed in command-line (-d) or in configuration file,
supports a list of database names separated by commas, in order to
preload them. The WorkerCron processes will also respect this list and only
connect to the specified database(s).

As of Odoo 9 the server also automatically initializes a new database
if the one passed via `db_name` does not exist or is not initialized.
This code did not properly handle multiple comma-separated value,
and created an unitialized database named `a,b` when db_name was set
to `a,b`.

Fixes #13079
Closes #13094
2016-08-09 20:12:33 +02:00
qsm-odoo e86fb5ee37 [FIX] website_blog: do not show current blog post as next post
At the bottom of each blog post there is a link to the next blog post
of the blog. If the current blog post is the last, the next blog post
which appears is the first one, which is ok. However, if there is only
one blog post in the blog, when viewing it, the next blog post which
was proposed was the current one (now nothing is proposed as next blog
post anymore).
2016-08-09 17:16:21 +02:00
Christophe Simonis e7c9f57623 [FIX] sale: avoid creating records belonging to other modules 2016-08-09 16:19:29 +02:00
Christophe Simonis 57a20c49cd [FIX] sale: remove duplicated access rule 2016-08-09 16:19:00 +02:00
Goffin Simon bb72dea98d [FIX] account: return of product with unit price = 0 and fixed tax
Use copysign to take into account the sign of the base amount which includes the sign
of the quantity and the sign of the price_unit
Amount is the fixed price for the tax, it can be negative
Base amount included the sign of the quantity and the sign of the unit price and when
a product is returned, it can be done either by changing the sign of quantity or by changing the
sign of the price unit.
When the price unit is equal to 0, the sign of the quantity is absorbed in base_amount then
a "else" case is needed.

opw:684459
2016-08-09 15:06:58 +02:00
Simon Lejeune c79ba8f785 [FIX] web_editor: test ui should be in post install
This test is ran in the backend and, if we do not mark it as post
install, the dependencies of the web module are not installed.
The webclient will then errors like "View type 'kanban' is not present
in the view registry".
2016-08-09 14:39:20 +02:00
Olivier Dony b755f856ba [IMP] website_project_issue: show issue description in portal when non-empty 2016-08-09 14:24:17 +02:00
Olivier Dony 34e7deb0d4 [FIX] payment_ogone: correctly handle tx error status
Transaction status "0" is explicitly defined for
invalid or incomplete transactions. It must not be
treated as a delayed status, but as a permanent
failure.

Ref: https://payment-services.ingenico.com/int/en/ogone/support/guides/user%20guides/statuses-and-errors/statuses

In addition, the delay for re-checking a delayed
transaction status was not meant to be set to
500 seconds but to 500 milli-seconds.
2016-08-09 14:24:17 +02:00
Olivier Dony 5443d47cbf [FIX] note: add missing import for _
Import was dropped at b3b0b23fe2 while
migrating to new API.
2016-08-09 14:24:17 +02:00
Nicolas Martinelli 6c9b6ebdf4 [FIX] sale_stock: units in warning message
opw-685095
2016-08-09 13:35:15 +02:00
Thibault Delavallée 16d462da8c [FIX] various: fix fields index parameter in new API still called select 2016-08-09 11:29:57 +02:00
Thibault Delavallée 7150121191 [FIX] various: fix fields index parameter in new API still called select 2016-08-09 11:26:46 +02:00
Thibault Delavallée c1b2d74bc3 [FIX] account, purchase: fix leftover select fields parameters 2016-08-09 11:14:57 +02:00
Thibault Delavallée 838a6f2000 [FIX] varioius: fix digits_compute attribute changed to digits in new API 2016-08-09 11:00:10 +02:00
Thibault Delavallée caf09e3709 [FIX] various: fix digits_compute attribute changed to digits in new API 2016-08-09 10:57:41 +02:00
Thibault Delavallée 90a5079d01 [FIX] various: fix fields index parameter in new API still called select 2016-08-09 10:26:53 +02:00
Christophe Simonis cd613fd768 [FIX] website_sale: compare selection field against values in selection 2016-08-08 16:05:26 +02:00
Christophe Simonis 456d3d1e1e [FIX] mrp: drop (sql) view before recreating it 2016-08-08 16:04:48 +02:00
Martin Trigaux b5d550d7b0 [FIX] hr: do not translate contrains at load time
The _constaints definition is done at server load, not when a user is triggering
the check. The constrains are already translated, no need to try translating it
again.
2016-08-08 12:01:56 +02:00
Martin Trigaux a1fbb3d389 [FIX] base: translate _constraint message
While the error content is automatically translatable, the header was not.

Fixes #5645
2016-08-08 11:54:32 +02:00
qsm-odoo fd7f019533 [FIX] web: properly position invisible elements in editable listview in modals
When positioning an element in an editable list view, that element is
temporarily forced to display: block thanks to the class o_temp_visible

The rule is written in LESS thanks to:
.o_list_editable .o_temp_visible { display: block!important; }

which is ok for normal invisible form fields because it is written as
.o_form_view .o_form_invisible { display: none!important; }
which has the same priority but is defined before the o_temp_visible
rule, so the display is properly forced to block.

However, for some reason, there also is the rule:
.modal .modal-dialog .o_form_invisible { display: none!important; }
which has a higher priority than the o_temp_visible rule.
This is why appearing invisible fields in editable list view in modals
are at a wrong position.

The solution introduced by this commit is the safest: adding a new
rule to force display block!important on the selector:
.o_list_editable .o_temp_visible.o_form_invisible
2016-08-08 11:03:29 +02:00
Nicolas Martinelli 4f037210c2 [FIX] account: dashboard traceback
In the dashboard view, it's possible to use the "Group By" feature.
However, when clicking on a link on any dashboard, a traceback might
show up.

This is because the context key `group_by` is kept when clicking on an
action. If the destination view is a list/kanban, and the destination
model doesn't have the field, the system will try to make a grouping by
a field which doesn't exist.

The solution is to remove the `group_by` key from the context, since it
doesn't make sense to send it the the destination model.

opw-684568
2016-08-08 08:24:57 +02:00
Odoo Translation Bot 0606247a8b [I18N] Update translation terms from Transifex 2016-08-07 03:07:40 +02:00
Odoo Translation Bot 8a3a620404 [I18N] Update translation terms from Transifex 2016-08-07 00:38:49 +02:00
Simon Lejeune d6683c4c80 [FIX] report: get_action: name the action
This is useful now that we show the report in the action manager thanks
to the report client action. Also remove the duplication of the context
key.
2016-08-05 17:04:32 +02:00
Thibault Delavallée 59753d51b3 [FIX] point_of_sale: fix digits_compute attribute changed to digits in new API 2016-08-05 17:00:50 +02:00
Martin Trigaux d56b03465f [I18N] Update translation terms from Transifex
Last one before dropping a few non-active languages
2016-08-05 16:12:06 +02:00
qsm-odoo def300996c [FIX] web_editor: adapt the forgotten rendering of updated contact fields
The frontend allow the rendering of fields thanks to converters and
their value_to_html and record_to_html methods. These methods were
changed with https://github.com/odoo/odoo/commit/3407fb70e4a5b16174234d10d97710572b6f808c#diff-d5a9a5d91bd3171e30e7facd628bdf5cL411.

The problem is that the web_editor also contains code which relies on
these methods and it was not adapted.
2016-08-05 15:13:54 +02:00
qsm-odoo 57c09e8a8e [FIX] web_editor: properly handle many2one fields
The many2one fields and their search bar were not working anymore since
the loss of some functionnalities with commit b309f3ab54.

* The dropdown which regroups a snippet options list is hidden if it
does not contain any option. This was not the case anymore because it
now always contains a dropdown title. This is fixed by simply removing
this title if it is alone in the dropdown.

* Snippet options attached to an element whose parent is not editable
cannot be moved/deleted/duplicated as it is supposed to remain where
it is. This is often the case for many2one fields and the feature was
simply lost in the refactoring.
2016-08-05 15:13:54 +02:00
Fabien Meghazi 0a3cd5b0a7 [IMP] force attachment storage for some binary fields 2016-08-05 13:45:51 +02:00
Jeremy Kersten 7f6c669530 [FIX] website: /website/info use website.info xmlid
When a user try to create a new page info, he is redirected
to the /page/info because the xmlid already exists...

The problem is that this view need to be rendered via the
controller /website/info which gives some extra values (version, ...)

The fix for v8 is to redirect /page/info to /website/info.

In V9, the behavior is changed and one page info-1 will be created.
But this fix is also required for direct access to /page/info.

To do in master: maybe use another xml_id that this basic name 'info'?

This commit fix issue #8022
2016-08-05 12:05:24 +02:00
qsm-odoo a8ee18e172 [FIX] web_editor: make save/discard btns visible when too many options
The editor bar is sometimes filled with too many options, and these
hide the save and discard buttons on small screens. To solve the
problem, the description option (which take a lot of space) has now
a max-width and the save and discard buttons are always on top.
2016-08-05 11:55:00 +02:00
Nicolas Martinelli 72479ccaec [FIX] account: get_bar_graph_datas
A traceback can occur since we build labels for 6 periods but we get
data for 7 periods.

This reverts commit 48fa0a5f6c and fix the
unreachable condition.
2016-08-05 09:52:38 +02:00
Nicolas Martinelli 82794c8662 [FIX] purchase: vendor currency
When defined, the vendor currency should be the default on vendor bills.

Fixes #13017
Closes #13016
opw-685016
2016-08-05 09:26:19 +02:00
Christophe Simonis 038d18c2a1 [FIX] crm: drop (sql) view before recreating it 2016-08-04 19:47:05 +02:00
Christophe Simonis 43ba593477 [FIX] hr_maintenance: keep field owner_user_id stored 2016-08-04 17:39:18 +02:00
Christophe Simonis ea50285989 [FIX] maintenance: correct message subtype to bound a valid model 2016-08-04 17:38:11 +02:00
Josse Colpaert 93056a61b8 [IMP] mrp: Workcenter losses statbutton should use default filters instead of domain as this way it is possible also to change the productivity times if someone would like to correct them afterwards 2016-08-04 16:59:51 +02:00
Josse Colpaert 41e7a278e8 [FIX] mrp: buttons on production order
When you start a production order, it is a bit
weird to see buttons as check availability and
produce, when there are no stock moves yet.
2016-08-04 16:59:51 +02:00
Simon Lejeune 6f33892b06 [FIX] report: client action: only show edit in debug mode
This option was confusing for the users.
2016-08-04 16:35:18 +02:00
Josse Colpaert 84def09423 [FIX] stock: incorrect picking state after forced availability
Steps to reproduce:
- Enable advanced routes on the Warehouse config
- Set the route "Pick+Pack+Ship" on the YourCompany Warehouse
- Set the route "Pick+Pack+Ship" to be selectable on the SO-Line
- Create a SO with the SO-Lines containing this routes, confirm, 3
  pickings are created
- Force the availability of the Picking to the customer, transfer.

The Picking is set to draft, a backorder is created containing all
products which should have been transferred. It is not possible to
transfer this newly backorder neither, the same thing happens on the
backorder.

When rereserving while doing the transfer, it should not change the
state of the move as it would forget when availability was forced.

opw-683740
2016-08-04 16:10:22 +02:00
Jeremy Kersten f3e577da2f [FIX] website_sale: force recompute fiscal position
Fiscal position was setted by onchange before commit #55535a6
Now, we need to call the onchange_shipping_id to set the fiscal position.
In case where the owner of the sale order is the public user, instead to
use the fiscal position from public user, we try to guess it with the
geolocation.
2016-08-04 16:04:57 +02:00
Martin Trigaux b431e6c324 [I18N] Last 7.0 update translation terms from Transifex 2016-08-04 15:56:34 +02:00
qsm-odoo 156a089a11 [FIX] website: properly duplicate FAQ Roller questions
/!\ This is a backport from saas-10

When duplicating a question in the FAQ Roller snippet, the cloned
question was opening the original answer instead of its own answer.
2016-08-04 15:03:46 +02:00
Goffin Simon 48fa0a5f6c [FIX] account: get_bar_graph_datas
The function range(0, 6) only returns [0, 1, 2, 3, 4, 5], then
the condition if i == 6 was never reached.

opw:685021
2016-08-04 15:02:33 +02:00
Thibault Delavallée 0db52fa2f1 [FIX] account_asset: fix computation of default value
_get_asset_method returns None as it sets a value on a recordset. What we do
here is simply copying the computation directly in the default get to have a
correct value instead of None. This has probably been introduced when
migrating the module at the new API at commit 6120babb45.
2016-08-04 14:49:51 +02:00
Thibault Delavallée 027003df3d [FIX] account_asset: fix typo in decorator introduced at eb8d4aaa59
An @ was removed by mistake.
2016-08-04 14:15:51 +02:00
Simon Lejeune c524e6a254 [FIX] mail, report: class doesn't exist 2016-08-04 13:56:18 +02:00