Commit Graph
103218 Commits
Author SHA1 Message Date
Nicolas Martinelli 717ca3390f [FIX] base_import: error message
During the import of a file, if the connection is closed (timeout,
server shutdown...), a traceback appears.

This is because `error.data.arguments` is not defined in this case.

opw-682104
2016-08-17 11:43:17 +02:00
Martin Trigaux 907f9554d4 [FIX] account: update outdated account.pot file
Fixes #13149
2016-08-17 10:31:25 +02:00
Martin Trigaux 48366920d3 [FIX] hr_expense: update the outdated .pot file
Fixes #13149
2016-08-17 09:56:46 +02:00
Goffin Simon 3846d35d02 [FIX] account_voucher: unreconcile with deleted journal items
Inspired from e2d16ea

When cancelling a voucher from a customer payment receipt,
the voucher lines linked to the deleted account move lines
have to be updated by clicking on button "unreconcile".

opw:683258
2016-08-17 09:25:01 +02:00
Nicolas Martinelli 13f164049a [FIX] procurement_jit: reassign if waiting
Use case:
- Have a stockable product A, with enough quantity on hand
- Have a stockable product B, without enough quantity on hand but
  configured on "Make To Order"
- Create a SO, confirm.

The picking is in status "Waiting Availability", althought one product
is available. The picking should be in "Partially Available", which is
actually the case if we simply "Reserve" it manually.

opw-683974
2016-08-16 16:05:08 +02:00
Damien Bouvy 6cb84a1048 [FIX] analytic: add missing context propagation
Courtesy of @adrienpeiffer
2016-08-16 15:11:31 +02:00
Nicolas Martinelli c2fe9fe0e6 [FIX] web: prevent double-click on statusbar
When double-clicking on the statusbar widget, two calls to write are
performed. This can cause unwanted behavior, and when the `write` method
takes a lot of time to process, it's not possible to prevent it
server-side.

Courtesy of @gurneyalex and @aab-odoo

Closes #13134
opw-686025

FORWARD-PORT UP TO SAAS-6!
2016-08-16 13:09:49 +02:00
Nicolas Martinelli 0350ab81b8 [FIX] web: prevent double-click on statusbar
When double-clicking on the statusbar widget, two calls to write are
performed. This can cause unwanted behavior, and when the `write` method
takes a lot of time to process, it's not possible to prevent it
server-side.

Courtesy of @gurneyalex and @aab-odoo

Closes #13135
opw-686025
2016-08-16 13:06:03 +02:00
Odoo Translation Bot 71594f5958 [I18N] Update translation terms from Transifex 2016-08-14 03:04:34 +02:00
Odoo Translation Bot 842bf793f5 [I18N] Update translation terms from Transifex 2016-08-14 00:38:20 +02:00
Damien Bouvy 332adff573 [FIX] base: set current company as default for currency rates
When manually creating/importing a currency rate, there is no default
on the company_id field.

This is quite unfortunate, as rates are filtered by company then by
date, which means that a rate without company will never be taken
into account despite being newer. This filter makes sense for multi
company setups, but for mono-company setups this is quite annoying.

This commit adds a default on the company_id and adds a view for
the base_currency_rate model to only display the company field in
multi company settings.
2016-08-12 14:27:31 +02:00
Christophe Simonis d7b7b07f9e [FIX] mail: avoid errors in /longpolling/poll requests
When a request fail due to a database concurrency error, the request is
replayed. However, the `mail` overwrite of /longpolling/poll requests
modified its arguments inplace, which lead to a sanity check to failed
in case of retry.

Fixes #13121
2016-08-12 10:45:43 +02:00
Stefano Rigano d1663f06e7 [IMP] doc: define a layout for 'category index' pages
These pages were indexed by google but did not have any layout defined.
2016-08-11 16:26:49 +02:00
Martin Trigaux 8b9f1600d0 [IMP] doc: add a warning about POS & HTTPS
The POSBox do not work over HTTPS, the pos must be in HTTP.
See #3156 for details
2016-08-11 12:20:59 +02:00
Nicolas Martinelli 69e772570b [FIX] purchase: copy PO procurement group
When duplicating a PO, we should not copy the procurement group,
otherwise the stock moves will be linked to the first picking.

opw-685812
2016-08-10 16:20:30 +02:00
Nicolas Martinelli 19116cc878 [FIX] stock: unreserve move only if reserved quants
An issue occurs in the following use case:
- Enable "Bring goods to output location before shipping (Pick + Ship)"
- Create a SO with 2 lines. 2 Deliveries are created, Pack and Ship.
- Go to "Procurement Exceptions", and cancel one of the 2 lines
- Go to the OUTgoing shipping, "Force Availability", and "Validate"

An error occurs: "Cannot unreserve a done move". The system tries to
unreserve a move which is actually cancelled.

Actually, it should not be necessary to unreserve this move, since no
quants were actually reserved in a first place. The fix ensures that, in
this situation, we don't try to unreserve a move with no quant reserved.
This should be safe to do it in all cases, but better be safe by adding
the condition `if 'no_state_change' in context` to impact only this
specific use case.

opw-685650
2016-08-10 16:09:57 +02:00
Goffin Simon 43e25b336d [FIX] account_voucher: unreconcile with deleted journal items
Inspired from e2d16ea04a

When cancelling a voucher from a customer payment receipt,
the voucher lines linked to the deleted account move lines
have to be updated by clicking on button "unreconcile".

opw:683258
2016-08-10 15:04:30 +02:00
qdp-odoo 123ee27e40 [FIX] account: allow to force the 'tax_line_id' and 'tax_ids' fields of account.move.line by a write.
This restriction in the code has no reason and is already enforced by a readonly=1 attribute on those fields in the account.move.line.form view
2016-08-10 14:44:56 +02:00
Nicolas Martinelli b2fb497a4c [FIX] account: overdue balance
The overdue balance on the partner form takes into account the invoices
which are due today. It shouldn't be the case.

opw-685777
2016-08-10 12:15:06 +02:00
Goffin Simon 414ad99a92 [FIX] web: unchecked radio button
Before rendering the radio button, the radio button must be unchecked
to ensure to take the last value checked.

Step to reproduce:

-From main menu, click on 'Contacts'
-Click on 'Create'
-Select 'Company' value on company_type field
-Save or not the contact
-Return in the main contact view (click on breadcrumbs)
-Click on 'Create'

Bug:

The default value on company_type field is 'Company'
but the fields that should be hidden are visible (example : parent_id field)

After the fix:

The value of company_type field is 'individual'

opw:684847
2016-08-10 11:37:52 +02:00
Kim Huysmans b868ae51b6 [CLA] corporate signature for BeOpen
Closes #13072
2016-08-10 11:25:24 +02:00
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
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
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
Thibault Delavallée c1b2d74bc3 [FIX] account, purchase: fix leftover select fields parameters 2016-08-09 11:14:57 +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
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
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
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
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
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
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
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
Jared Kipe 36026bc771 [FIX] hr_payroll_account: wrong date
The date account is always the date of the day. This is not correct
according to the field description.

Fixes #12832
Closes #12833
opw-683969
2016-08-04 12:56:26 +02:00
qsm-odoo 566e0a2706 [FIX] website_quote: set correct fixed sidebar width
The sidebar on the left of the quotation previews was placed with
position fixed in a col-md-3. Position fixed elements have their
width computed according to the window dimensions which is why it
cannot be 100% to fit the col-md-3. To achieve that, the old solution
was to set the width in pixel according to the viewport dimension (and
the size a col-md-3 has in each of this dimension). This was too easily
breakable. Indeed in the avantgarde theme, the .container is set to
smaller dimensions. So the col-md-3 is smaller too and then the fixed
width sidebar overflows.

To achieve the desired behaviour, javascript is needed. In CSS, the
position is set to "relative" and the width to "100%" so that the
sidebar fits the col-md-3 width no matter what. Then on page load and
on window resize, the sidebar is set to position "fixed" and to a
px-based width which equals its current and default 100%-width.
2016-08-04 11:04:12 +02:00
Nicolas Martinelli efdce58913 [FIX] purchase: confirm only draft/sent PO
Without this fix, it is possible to confirm a PO which is not in state
'draft' and 'sent'. The issue is that it will create a picking at every
call.

The issue was occurring in Purchase Requisition, which was fixed in
previous commit. However, it makes sense to add a check directly in the
`button_confirm` method.

opw-684347
2016-08-04 10:08:15 +02:00
Nicolas Martinelli 2bc65af189 [FIX] purchase_requisition: unnecessary PO confirmation
When a PO is created from a Purchase Requisition, two delivery orders are
created instead of one.

opw-684347
2016-08-04 09:55:19 +02:00
Bruno PLANCHER f5e803c025 [FIX] tools: strip i18n-overwrite from gevent parameters
When gevent is enabled, some arguments are stripped to avodi being retriggered
in the other workers (e.g. update of a module).
The `--i18n-overwrite` was not stripped and the other worker raised an error has
the `overwrite_existing_translations` argument requires the `update` argument
(which is stripped in the `stripped_sys_argv` method.

Fixes #12566
Closes #12986
2016-08-03 16:33:27 +02:00
Bruno PLANCHER 59eadac840 [CLA] Corporate signature for iRaiser
Closes #12986
2016-08-03 16:33:27 +02:00
Nicolas Martinelli ebb52cbbdf [FIX] stock: backorder sequence
When an internal move is partially delivered, name of the backorder is
'False'. This also occurs if an internal move is copied.

This is because there is not sequence for code 'stock.picking.internal',
but there is one for 'stock.picking'.

opw-683725
2016-08-03 14:43:40 +02:00
Simon Lejeune cadb481e20 [FIX] web: oe-view-manager-content display issue on ie11
This tries to be the smallest patch possible in order to avoid triggering
another display issues, so we only patch in the ms-hight-contrast section
which only applies on ie 10/11.

* The view-manager weren't displayed correctly; they didn't fit 100% of
  the screen width. This is fixed by explicitely seting the top, right,
  left, bottom attributes.

* The modals content were not displayed. This was due to 2 issues:
  * The rule that we patch in the first point set the position of
    `oe-view-manager` as absolute with an importang flag. Because of
    this important, the rule that reset the position of the
    `oe-view-manager` as static in modals.less was not honored. So
    we also patch this rule with an important flag inside the same
    file (so that all the fixes related to ie10/11 are in the same
    place).
  * Now that the modals are displayed, they do not fit 100% of the
    screen. It's because the `max-height: 100%` of `.modal-content`
    set in modals.less does not work in ie10/11, due to some bug
    with the flex displays. We set the height to 450px so that the
    modals are kind of correctly displayed on a 1366x768 screen
    (their content are still scrollable).

related to rev 1ccd87a037
closes #12929
2016-08-03 14:39:19 +02:00