Commit Graph
102170 Commits
Author SHA1 Message Date
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
Nicolas Martinelli 35cd054cc8 [FIX] point_of_sale: total revenue in report
In some cases, the "Sales total(Revenue)" of the report is different
from the sum of the payments. To reproduce:
- create a product with a sale price of 1.00
- sell 3 times a quantity of 0.333 of this product
- the "Sales total(Revenue)" will be equal to 1.00, while the total of
  payments is 0.99.

This is because in the report, we first sum all order lines, then we
perform a global rounding.

The solution is to use the total amount calculated for each order, which
is rounded at the appropriate time.

opw-682782
2016-08-01 13:15:30 +02:00
Mohammed Shekha dcd03d778e [FIX] website: repair customize menu for groups restricted views
The id of the user to browse has been omitted
during the below forward port revision:
95a2f8b121

We can see in the original revision that it was
correctly there:
cbb51610ee

This had as wrong side-effect to not display
views with a group set in the customize menu,
as it checked the groups of a null user browse
recordset.

opw-684326
Closes #12895
2016-08-01 11:23:52 +02:00
Yajo 4b4bc68815 [FIX] web_editor: broken JS/jQuery helper
A jQuery element is not callable.
2016-08-01 10:02:45 +02:00
Jeremy Kersten 7f86272b94 [FIX] hr_timesheet_sheet: set timesheet widget dirty when editing
Without this commit, there was no warning displayed when clicking
on a button that would make the user lose all he entered in the
widget, which is insonsistent with other odoo widgets.

opw-684276
2016-08-01 09:04:58 +02:00
Odoo Translation Bot 337049baa8 [I18N] Update translation terms from Transifex 2016-07-31 03:07:08 +02:00
Odoo Translation Bot b7eb3c6bd0 [I18N] Update translation terms from Transifex 2016-07-31 00:38:56 +02:00
Jeremy Kersten 1b55b10eab [FIX] website_crm: update category
When you come from front end -> install apps,
the applications are filtered on category = website.
This module should be in this list.
2016-07-29 17:29:25 +02:00
Jeremy Kersten f19d620ebe [FIX] website_forum: don't allow to post an empty question
Instead to post the empty question, now we redirect the end user to the question page with a warning.

This commit closes #12962
2016-07-29 17:29:25 +02:00
Gourav Chawla f7b8028f67 [FIX] hr_payroll: display employee's identification number
The report "Payslip" was displaying both the employee's job, the second time
being in the "Identification No" box.
Remove the second job and replace by the field 'Identification No' which makes
more sense.

Closes #12937
2016-07-29 15:30:49 +02:00
Joren Van Onder 749ac257eb [FIX] point_of_sale: display the correct UOM in the ScaleScreenWidget
The scale screen widget was hardcoded to show kilograms as the
UOM. This makes it so that the UOM set on the product being weighed is
used instead.

Note that this bug was purely visual. It did not convert the weight to
the wrong UOM or anything like that.

See also d043fd03ce.

opw-684374
2016-07-29 14:33:30 +02:00
Christophe Simonis 6d43f280c9 [FIX] stock: do not quote static domain 2016-07-29 12:47:08 +02:00
Christophe Simonis e0c0a5fb1b [MERGE] forward port branch saas-6 up to 50e1486 2016-07-29 11:56:15 +02:00
Christophe Simonis 50e148648d [MERGE] forward port branch 8.0 up to 9fe930e 2016-07-29 11:45:47 +02:00
Erwin van der Ploeg 9b64a2f869 [IMP] l10n_nl: correct module description
Remove outdated information
Closes #12274
2016-07-29 11:22:39 +02:00
aetna-softwares 9fe930e6ba [FIX] survey: prevent saving issues of answers to multiple_choice questions, when id starts with id of other questions
Fixes #11873 #12215
2016-07-29 11:13:08 +02:00
mva ec5410581e [FIX] doc: change memory hard and soft
The hardware limit should be higher than the soft, otherwise it is killed before
reaching the limit.

Closes #12957
2016-07-29 10:43:20 +02:00
Martin Trigaux b146335484 [FIX] doc: correct typo in deployment page 2016-07-29 10:11:59 +02:00
Nicolas Martinelli 37ae7a7334 [FIX] account: account filter
Searching on the name of an account can lead to a traceback ("This
domain is syntactically not correct"). This is for example the case in
Accounting -> Configuration -> Taxes -> Custom filter on "Tax account
doesn't contain 'xxx'".

The reason is that the negation of the domain is not correct.

opw-684525
2016-07-28 17:58:00 +02:00
Olivier Dony c372708b01 [FIX] website_google_map: do not allow invalid partner prefix
The only supported prefixes are the following:
 - /partners/ when website_partner and/or website_crm_partner_assign are installed
 - /customers/ when website_customer is installed
2016-07-28 17:27:54 +02:00
Nicolas Martinelli de2d7d9acd [FIX] sale_stock: incorrect value in error message
The error message has an hardcoded precision of 2 digits, which is not
enough of the product precision is higher than 2. Since this error
message is often used, we should avoid its modification to prevent
breaking the translations.

opw-683639
Fixes #12629
2016-07-28 15:10:59 +02:00
Goffin Simon 8bc590a7b9 [FIX] stock: default domain on a many2many field
The default domain on a many2many field must be list and not a string.

opw:684474
2016-07-28 14:46:28 +02:00
Nicolas Martinelli f57f55966d [FIX] sale_stock: UoM in warning
The warning message of the product packaging change does not take into
account the appropriate UoM.

opw-12827
Fixes #12827
2016-07-28 13:36:30 +02:00
Christophe Simonis 4af005456f [FIX] payment_paypal: adapt test following commit dbf44a9680
Note: the same test exits in 8.0, but is not executed (package not imported)
2016-07-28 13:01:57 +02:00
Christophe Simonis d35f4250cc [MERGE] forward port branch saas-6 up to 7079a0b 2016-07-28 12:22:03 +02:00
Goffin Simon 6a711060ae [FIX] account: fiscal position in compute_refund
When choosing to refund an invoice with refund method="create refund, reconcile and create a new draft invoice"
, the fiscal position of the refund invoice must be kept in the new draft invoice.

opw:683311
2016-07-28 11:59:11 +02:00
David Monjoie 2cfa7b5626 [FIX] l10n_fr_fec: exclude initial balance at 0
This is the proper fix for 3180aec56a
and is the continuation of f7e4241a91.

A sum without groupby will return NULL so we forced it back to 0,00.
Then, it can happen that you have no move before the start date, so you
don't have any opening "OUV" row.

opw-682365
2016-07-27 19:41:50 +02:00
Christophe Simonis 7079a0be30 [MERGE] forward port branch 8.0 up to 8ceb943 2016-07-27 18:13:51 +02:00