Commit Graph
106440 Commits
Author SHA1 Message Date
Géry Debongnie 78d9f612fd [FIX] project: increase clickable zone in dashboard
In the kanban project dashboard, the records are displayed with a column
of small 'boxes' on the right.  Those boxes seems clickable and lead to
other actions, such as issues, forecast, timesheet, ...  However, the
actual clickable zone is the tag 'a' inside those boxes.  This leads to
confused users (myself included).

With this commit, the size of the link is increased to the full width of
the box. This is not the perfect fix, since the height is not
necessarily exactly the same as the surrounding box, but it is
significantly easier to click on it in some cases.
2016-11-04 11:45:43 +01:00
Jeremy Kersten 227aaa572c [FIX] website_crm_partner_assign: add mark as spam to allow auto reassign
Withtout it, we cannot reassign a lead since we don't know if the partner
refuses because he don't want the lead or because it is a wrong / spam lead.
2016-11-04 11:28:55 +01:00
Jeremy Kersten af85529ce0 [FIX] website_crm_partner_assign: add create date in opp list
Required to find/qualify the opp without open it.

Update display priority to stay coherent between edit/view mode.
2016-11-04 11:28:55 +01:00
Josse Colpaert 3cb3379456 [FIX] point_of_sale -> stock: handling of lots/serial numbers
Before, the quantities on the pack operations were set also for the
pack operations that should have lots and had not, which is an inconsistency.
As at the end of the PoS, errors are not shown and not rollbacked, this
created really nasty situations.  With this code, it was never meant to
use lots in the PoS, but as the picking was not validated (but existed, because
not rollbacked) some people thought it as a wanted feature.

In the mean time, we had commit fafc048d02, but it will give
problems as it will not automatically create a backorder.  It is
better not to do anything when lots are involved somewhere in the picking
as then the user will see the open pickings in the PoS Orders picking type.
It is also important to not do anything when it is a move without a picking.

Needs to be forward ported to saas-11, where the file structure changed.

opw: 692045
2016-11-04 10:22:46 +01:00
qdp-odoo a0e0e14b70 [FIX] account: fix manual reconciliation with a writeoff that includes a tax.
The tax has to be only on the second line because otherwise the accounting entry is not correct. Note that I'm not sure it is a usefull use case, but at least the accounting entry of the w/o is now logical and corresponds to what you expect (and what you see on screen). OPW 689806
2016-11-04 10:13:39 +01:00
Nicolas Martinelli 30a3c05975 [FIX] product, stock_account: fields in product view
Previous commit b6cbc36f9 hides volume, weight and standard price in the
product view if a product has variants. The use case was the following:
- Create a product (template)
- Give a value to these fields
- Add attributes to the product (this creates variants)

The values were reset to zero. This is a normal behavior since the
relevant values are now on the product (product).

This reverts commit b6cbc36f9a.

opw-692833
2016-11-04 08:10:33 +01:00
Joren Van Onder fafc048d02 [FIX] point_of_sale: only set qty_done on non-tracked products
The POS attempts to auto-validate pickings and so it sets qty_done of
the pack operations to equal product_qty. In the case of a pack
operation about a tracked product this doesn't make much sense, as in
that case auto-validation will fail and serial/lot numbers have to be
manually specified by the user. Without this patch you end up with pack
operations that look like they're done, but still need to have
serial/lot numbers set.

opw-690516
2016-11-03 14:14:40 -07:00
Nicolas Martinelli 83d1bb8df2 [FIX] payment_stripe, website_quote, website_sale: update SO
! This is a backport from 10.0 (9010ed0a) !

opw-693017

Original commit message:

A side effect of commit b9d1239eff if that the method `sale_get_order`,
which is used to retrieve the SO, will also update information on this
SO (change partner, change pricelist...). We therefore need another way
to retrieve the SO.

opw-692919
2016-11-03 12:58:02 -07:00
Nicolas Martinelli c54dbe2a92 [FIX] payment_stripe: select correct div when web quote
! This is a backport from 10.0 (815f085) !

opw-693017

Original commit message:

When a user tries to pay a website quote thanks to Stripe, the button
spins and nothing happens.

In the case of a quote, the jQuery selector is not correct.

opw-692341
2016-11-03 12:57:58 -07:00
Nicolas Martinelli ab609ec4a5 [FIX] payment_stripe: preventDefault
! This is a back-port from 10.0 (fb010a1) !

opw-693017

Original commit message:

When a user uses Strip and clicks on "Pay & Confirm", a "Bad Request"
error can pop-up. This is because it tries to reload the page, while it
should only display the Strip pop-up.

This is simply due to a `preventDefault` done after the event is
performed, and not before.

opw-692341
2016-11-03 12:57:46 -07:00
qdp-odoo 5a77ff6f30 [FIX] stock_dropshipping: fix dropship accounting entries to avoid interim account never cleared.
This effectively reverts the patch 7bdd4de that was made on 8.0 then reverted by 001610e (in 8.0 too) but each of them manually forward ported to 9.0, except that the forward port of the last one forgot to remove the faulty commit.
2016-11-03 19:55:23 +01:00
qsm-odoo 229fab5fa0 [FIX] web_editor: do not delete empty .oe_structure element
If a snippet contains a .oe_structure element inside of it, it allows
the user to drop other snippets in that location. The web_editor
contains code which removes all empty parent of an element being
deleted. This is done so that, for example, when the last col of a
3-col snippet is removed, the whole snippet is removed.

However, there was an exception to this rule which was not considered,
if one of these empty parent is an .oe_structure, it should not be
removed.

Note: the only snippet which does this is the parallax snippet.
2016-11-03 16:45:27 +01:00
Goffin Simon e0ffc23a59 [FIX] report_intrastat: Not allowed to delete record
It's not allowed to delete record from the tree view of intrastat report.

opw:692016
2016-11-03 14:46:47 +01:00
Goffin Simon 36e7327f32 [FIX] point of sale: Closing a cash control session
Before the fix:
When creating a new session with Cash control POS then it was impossible to close the session.

After the fix:
The same flow as in 9.0 when closing a session

opw:691517
2016-11-03 14:16:23 +01:00
Thibault Delavallée dc6e7ca25b [FIX] l10n_be_invoice_bba: remove old on_change and add missing term in onchange 2016-11-03 13:24:37 +01:00
Thibault Delavallée f517ab381a [FIX][REF] account_voucher: remove old on_change and convert to new API
Since v9 commit of new accounting a mix of old and new
onchange exists in account voucher. This commit effectively
converts the onchange to the new API and fixes the behavior.
2016-11-03 13:24:37 +01:00
Thibault Delavallée 170a8611ff [FIX] payment, hr_timesheet_sheet: remove old onchanges in views
Those are already handled by new API onchange methods. They have
probably been forgotten when migrating the module to new API.
2016-11-03 13:24:01 +01:00
Nicolas Martinelli 9010ed0a35 [FIX] payment_stripe, website_quote, website_sale: update SO
A side effect of commit b9d1239eff if that the method `sale_get_order`,
which is used to retrieve the SO, will also update information on this
SO (change partner, change pricelist...). We therefore need another way
to retrieve the SO.

opw-692919
2016-11-03 12:03:22 +01:00
Goffin Simon 76314f0a3b [FIX] hr_expense: unlink posted expense
Steps to reproduce:

- Create one (or several) expense lines
- Submit them to the manager (create the expense sheet)
- Approve the sheet and post the entries
- Delete the created and posted sheet

Bug:
- The expense is deleted but the accounting entries are still in the database
- The expense lines are in "To submit" and you can submit to manager again and
generate a new report and therefore new accounting entries...

Fix:
It is not allowed to delete posted expense.

opw:692323
2016-11-03 11:34:33 +01:00
Goffin Simon b9759971b9 [FIX] board: action_id not available in modal
The  favorites menu is always added in search views. Then the
menu "add to dashboard" is always added even if it is triggered from
a form view in a modal. In this case, the action_id is not available
in the object FavoriteMenu.
If the action_id is not available, the menu "add to dashboard" is
hidden.

opw:692023
2016-11-03 10:54:06 +01:00
Goffin Simon 5f0bbe797f [FIX] sale: product_id_change with different unit of measure
When changing the product of SO line if the uom_id is different,
the uom of the product must be changed and quantity ordered is set
to 1.0.

opw:692556
2016-11-03 10:39:53 +01:00
qsm-odoo a545eb3919 [FIX] website: update gallery snippet thumbnails once an image is changed 2016-11-03 09:57:22 +01:00
qsm-odoo d632236c9c [FIX] mail: open follower menu to the right to prevent screen overflow 2016-11-03 09:54:29 +01:00
Nicolas Martinelli 2508786127 [FIX] account_asset: first depreciation amount
When an asset is set as Prorata Temporis, with a one month period, the
first depreciation amount is computed on the basis of the remaining days
in the purchase year. This doesn't make sense for a monthly
depreciation.

This commit makes the distinction between a monthly and a yearly
depreciation. In the case of a monthly depreciation, the remaining days
in the purchase month are taken into account.

opw-690034
2016-11-03 09:15:05 +01:00
Nicolas Martinelli 0a3899b72c [FIX] account_asset: first depreciation amount
When an asset is set as Prorata Temporis, with a one month period, the
first depreciation amount is computed on the basis of the remaining days
in the purchase year. This doesn't make sense for a monthly
depreciation.

This commit makes the distinction between a monthly and a yearly
depreciation. In the case of a monthly depreciation, the remaining days
in the purchase month are taken into account.

opw-690034
2016-11-03 09:08:09 +01:00
Christophe Simonis ab98523315 [MERGE] forward port branch saas-12 up to 0ca99ff 2016-11-02 17:56:37 +01:00
Christophe Simonis 0ca99ffc1f [MERGE] forward port branch saas-11 up to 0304bf8 2016-11-02 17:53:45 +01:00
Christophe Simonis 0304bf8c59 [MERGE] forward port branch 9.0 up to 92c81dc 2016-11-02 17:40:34 +01:00
Christophe Simonis 92c81dc440 [MERGE] forward port branch saas-6 up to ab8d07c 2016-11-02 17:26:05 +01:00
Christophe Simonis ab8d07cf1f [MERGE] forward port branch 8.0 up to 86a9b78 2016-11-02 16:50:10 +01:00
Christophe Simonis b59333c5c6 [FIX] point_of_sale: force no-tax on demo product
The javascript tour (test) will verify the total amount based on sale
price of the product without taking taxes into account.
However, if any l10n_* module is installed and defined a default value
for product taxes, the test will fail this check.
2016-11-02 16:31:22 +01:00
Olivier Dony f2158e32c8 [FIX] http: permit debug mode on CORS-enabled routes
As of f814dd9908, debug
mode causes an extra X-Debug-Mode header to be sent
by the rpc() JS method.

This custom header was not whitelisted in the accepted
CORS headers, therefore any cross-origin call to a route with
`cors=True` would fail in debug mode, with a console error
along those lines:
   "Request header field X-Debug-Mode is not allowed by
    Access-Control-Allow-Headers in preflight response"

This would prevent loading the POS GUI in debug mode,
for example.

This commit is necessary in the 8.0 branch because
the POSBox is currently based on a 8.0 server and may
be accessed by a 9.0 POS or later, thus with the extra header.
2016-11-02 14:03:19 +01:00
Christophe Simonis 86a9b7893e [IMP] tests: use long message in case of error 2016-11-02 11:45:29 +01:00
Jérome Maes 95ab053856 [FIX] rating_project,rating_project_issue: correct domain to see rating
domain from the action is required to avoid seeing empty rating
2016-11-02 10:43:49 +01:00
Jérome Maes 6200e1ac63 [FIX] rating_project_issue: all issue are not taken into account when recompute project satisfaction
'issue_ids' has a domain, so all the issue a folded
stage are not taken into account for statisfaction
percentage.
So replacing the field with a search call solve the
problem.
2016-11-02 10:43:41 +01:00
Nicolas Martinelli 2948aacd9e [FIX] rating_project: hide rating in thread
Hide rating in issue history, otherwise the user can use the link
himself to change the rating.

opw-692598
2016-11-02 10:06:22 +01:00
Nicolas Martinelli a4c67f2b9e [FIX] website_quote: tokenized link in portal
When a user has access to a quote (because he is follower) but he is not
in the same company than the customer, an access error can occur on the
the rendering of the partner field.

We use the tokenized link instead, which will read the SO as a superuser
to avoid this situation.

opw-691740
2016-11-02 08:43:02 +01:00
qdp-odoo 9542924b94 [FIX] account: fix the bank statement reconciliation that wasn't proposing antthing for credits on liquidity accounts because of a wrong sql query (looking on negative values in credit columns 2016-10-31 17:37:18 +01:00
qdp-odoo a699504536 [FIX] hr_expense: give more useful label to journal items created from expenses paid by the company 2016-10-31 16:36:56 +01:00
Goffin Simon ef78955c32 [FIX] stock: name_search on stock.picking.type
Before the fix,  the search was made on the picking_type.name
instead of the picking_type.warehouse_id.name

opw:692256
2016-10-31 14:17:23 +01:00
Jared Kipe bbe0731143 FIX] hr_payroll: fix payroll rules using a BrowableObject.sum().
Since commit edcb318; using a python rule that uses the 'sum' function on a BrowsableObject was resulting in a UserError. Courtesy of jaredkipe
2016-10-31 14:11:13 +01:00
Nicolas Lempereur d05136a0b2 [IMP] website: use default language for some bots
Currently when using a language on the website, the following is done in
this order to choose which one will be used:

1) use a language code if present in the url (eg. /fr_BE/),
2) use a language similar to the one in the url,
3) use a previously choosed language (saved in cookie),
4) use the browser language if available on website,
5) use a language similar to the browser language,
6) use the default website language

When a bot is requesting a page, he could either not specify a browser
language (en_US is set as default) or sometimes specify english
erroneously.

In these instance, we will then never use the default website language
if an english language is installed.

This fix changes this behaviour so if a bot is visiting a page, the 4th
and 5th steps are skipped and the default website language is used
instead of using the browser language.

closes #14033
opw-690910
2016-10-31 13:43:01 +01:00
Nicolas Lempereur 76be5eed44 [FIX] web_editor: don't paste two times
When pasting, the paste event is cancelled and done back with the
corrected data.

This works fine on firefox, but this can have unwanted results on other
browser like pasting two times or copying the end of the line at the
beginning.

This commit replace completely the summernote functionality with our
small implementation of pasting corrected text.

closes #14043
opw-690814
2016-10-31 13:27:00 +01:00
Goffin Simon d406314638 [FIX] account_voucher: Wrong reconciliation of customer payments
Steps to reproduce :

1. Create a new customer
2. Create an invoice with an amount of 50.- for this new customer and validate it
3. Create a refund with an amount of 70.- for the same customer and validate it
4. Create a Customer Payment for this customer and validate it. The Invoice will be paid with 50.- of the refund. 20.- are still on residual in the refund.
5. Create a new invoice with an amount of 50.- for the same customer.
6. Create a new Customer Payment for the same Customer and validate it.

The Full Reconcile Boolean stays checked inspite of "Open Balance" of Refund amount is less than the Invoice amount.

After the fix:
Full Reconciliation Boolean doesn't get checked and Allocation amount on invoice journal item line should be same
as Open balance of the Refund Journal Item. So Invoice stays open with Balance amount.

opw:691577
2016-10-31 11:55:49 +01:00
Damien Bouvy 002d7a342a [FIX] website_event: display location name in frontend
opw-692655
2016-10-31 11:20:04 +01:00
Odoo Translation Bot 9d243ae9ea [I18N] Update translation terms from Transifex 2016-10-30 03:37:27 +01:00
Odoo Translation Bot c340284a60 [I18N] Update translation terms from Transifex 2016-10-30 02:56:40 +02:00
Odoo Translation Bot 27413feac8 [I18N] Update translation terms from Transifex 2016-10-30 00:34:38 +02:00
Jeremy Kersten 58ff6bf52c [FIX] website_blog: fix navlist date/filter/order
Before this fix, the tz was ignored in the search. So the group by counter
was not especially the number of blog post displayed.

The month display was wrong, date_begin was localized.
Start was eg (in Europe/brussels) : 10/31/2016 22:00:00.
So if we don't localize this time with babel, we got October as displayed
month instead of November

The Archive was not sorted by year desc, now it is.
Old behaviour was strange:
    2015: December, Octobre
    2016: December, Octobre
    => Year asc, Month desc
2016-10-28 17:10:51 +02:00
Christophe Simonis 97debd09c0 [MERGE] forward port branch saas-12 up to 57774ef 2016-10-28 17:05:21 +02:00