Commit Graph
102197 Commits
Author SHA1 Message Date
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
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 8a3a620404 [I18N] Update translation terms from Transifex 2016-08-07 00:38:49 +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
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
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
Martin Trigaux 1dbd085743 [FIX] base: add missing part to 04b081ab
The 'amount 42 False' bug could also be reproduced with monetary widget.
2016-08-03 14:26:06 +02:00
Martin Trigaux 04b081ab37 [FIX] tools: do not display False as the currency
The field symbol is not required on a res.currency (it should and will be
changed in master). In case it is not set, do not display the currency in the
rapport.

Fixes #11346
2016-08-03 14:23:11 +02:00
Christophe Simonis 1cca5dea13 [MERGE] forward port branch saas-6 up to 20db912 2016-08-03 14:14:00 +02:00
Christophe Simonis 20db912f77 [MERGE] forward port branch 8.0 up to 1213de3 2016-08-03 14:09:30 +02:00
Christophe Simonis e9dc273060 [FIX] account: use correct attribute name
Wrongly forward-ported from saas~6.
opw-683311
2016-08-03 14:02:35 +02:00
Goffin Simon 1213de3ff5 [FIX] account: get_reconciliation_proposition
The bank statement reconciliation widget should look for the name
of the account.move if the ref is not found.

Backport of 11f8e8d

opw:683741
2016-08-03 13:38:44 +02:00
Richard Mathot d6d4ee0183 [REV] mrp: ce419242d0.
Too unstable fix (requires module upgrade).

Odoo 9 will keep its limit of 16 chars for mrp.bom's
`code` field
2016-08-03 11:08:50 +02:00
Richard deMeester e401a0bbbb [FIX] l10n_au, l10n_nz: account definitions
Change default definitions of funds clearing accounts to be assets
instead of liquidity.  Without this fix, reconciling to these
accounts during bank reconciliation is not generating the correct
journal, but is treating the process as a matching step (which it
is not).

For existing data, the accounts will need to be manually changed
from liquidity to current assets.

Closes #12996
2016-08-03 10:57:54 +02:00
Olivier Dony 28bf5b1507 [I18N] payment_transfer: remove duplicate msgid
Introduced by forward-port 56ef99d050
of 8.0 rev 9a3b711989, while the term
had been previously added in 9.0.
2016-08-03 10:37:11 +02:00
Nicolas Martinelli f0d6138712 [FIX] im_odoo_support: link "Odoo Support"
The free livechat support doesn't exist anymore, therefore the link
"Odoo Support" does nothing.

opw-683486
2016-08-02 17:45:20 +02:00
Nicolas Martinelli 65142a6a45 [FIX] website_sale_delivery: incorrect delivery price
The price of the delivery is incorrectly converted to the currency of
the user in the payment template (next to "Total").

Instead, it should be in the currency of the sales order.

opw-682306
2016-08-02 13:07:32 +02:00
Goffin Simon 353dfa22cb [FIX] sale: currency of amount in _get_invoice_price
The currency of amount is the currency of the company as defined in
account.analytic.line in module analytic and in module account.

opw:682378
2016-08-02 09:50:02 +02:00
Goffin Simon 9bb16c5ce1 [FIX] sale: refunds with _get_invoiced
Steps to reproduce:

-Create a first journal with a sequence
-Create a second journal with the same sequence
-Create a first SO, create the invoice for the fist journal and validate it
-Create a second SO, create the invoice for the second journal and validate it (the second invoice has the exact same name as the first one)
-Refund the second invoice (linked to the second SO)
-Go to the first SO => In the invoice button, you see 2 linked invoices (there is normally only one)

When searching the refunds corresponding to the invoices in function
_get_invoiced, the refund must take the journal of the invoice into account.

opw:684144
2016-08-02 09:36:35 +02:00
Goffin Simon ce419242d0 [FIX] mrp: useless size for field code on mrp.bom
The size of 16 characters for the field size on mrp.bom
is useless.

opw:684441
2016-08-02 09:16:25 +02:00
Christophe e106691ecb [CLA] Corporate signature for adiczion
Done at #11662
2016-08-01 17:49:41 +02:00
Christophe 980ff5ef10 [FIX] account: correct typo in css
Closes #11662
2016-08-01 17:49:41 +02:00
Ondřej Kuzník fafeb9fb83 [FIX] stock: avoid traceback when owner on picking and transfer more.
If you create a picking, with an owner, for qty x, and confirm it.
Next transfer x+1, it will raise a traceback 'cannot adapt res.partner'

Now, we pass the id, and not the browse record.

This commit closes #12978
2016-08-02 00:47:05 +11:00
JoshuaJan ecf9613ee5 [FIX] calendar: fix get_range_domain to match all events.
In case of event not all day, the timezone has an impact.
So if we search for date >= 2016-01-31 (00:00:00) and that the current timezone
 is +5, we should search for date >= 2016-01-30 19:00:00.

date_to_str will drop the time.

This commit closes #12878
This commit closes #12971
2016-08-01 23:49:09 +11:00