Commit Graph

76277 Commits

Author SHA1 Message Date
Christophe Simonis 88e8107e01 [MERGE] forward port of branch saas-3 up to 505e308 2015-07-14 15:13:03 +02:00
Christophe Simonis 505e308cd6 [MERGE] forward port of branch 7.0 up to e12cece 2015-07-14 15:00:33 +02:00
Denis Ledoux 462d212a92 [FIX] document: document directory security
Once the document module installed,
It was mandatory for a user to have the
Knowledge User group in order
to edit/unlink an attachment, even
if this attachment wasn't using
the document directory feature

opw-644712
Fixes #7599
2015-07-14 14:21:08 +02:00
Goffin Simon b5c1cb4298 [FIX] sale: Currency in Sales Analysis
The "Total Price" in Sales Analysis must take into account the currency.
Inspired from caf333eb59
2015-07-14 14:19:00 +02:00
Goffin Simon 0f5a72e0a4 [FIX] purchase: Currency in Purchase Analysis
"Total Price" and "average price" in purchase analysis must take into account the currency.
Inspired from caf333eb59

opw:644621
2015-07-14 14:18:59 +02:00
Denis Ledoux 809e1a6081 [FIX] sale, website_sale: quotation email.
4adb4b8d15
corrected the fact the quotation email
wasn't sent if you did not come back
from the payment provider
(when you closed your browser after
the payment but before coming back
to Odoo).

Before the above revision, the quotation
email was sent for payment methods
not redirecting to payment providers,
like transfers. It was no longer the case
with the above revision.

This revision re-introduces this behavior:
If there is a feedback from a transaction,
but the transaction isn't confirmed,
we send the quotation email without confirming
the sale order, like it was the case before

opw-644670
2015-07-14 11:11:55 +02:00
Nicolas Lempereur 312b85ee2a [FIX] mail: reload messages after closing composer
Always reload the message after the mail composer message is closed.

Since there is several unrelated model it would probably messy to go
from the mail thread to the mail composer popup to see if a new message
is posted (or get it and add it in the chatter like done in the simple
message editor).

With this change, anytime the mail composer modal is closed the mail
thread messages are reloaded.

closes #7596
opw-644406
2015-07-14 10:43:33 +02:00
Fekete Mihai 433351f566 [FIX] l10n_ro: update Romainian chart of accounts
To integrate latest chart of accounts changes from 01.01.2015
Closes #6720
2015-07-13 16:11:47 +02:00
Marcio Mazza ecc39a95c1 [FIX] auth_ldap: Bind DB encoding
In case of unicode
Closes #6926
2015-07-13 15:50:47 +02:00
Martin Trigaux dbb0b42695 [i18N] analytic_contract_hr_expense: remove untranslatable terms 2015-07-13 13:37:38 +02:00
Maxime Chambreuil - http://www.savoirfairelinux.com 3cc7a0915c [FIX] hr_expense: Allow using contract in expense with form view
In the tree view, the domain for the field `analytic_account`
was already
`[('type','in',['normal','contract'])]`
It's therefore normal to apply the same domain for
this field in the form view.

Closes #2733
2015-07-13 12:38:54 +02:00
Nicolas Lempereur a904645696 [FIX] web_kanban: race when loading view_form
When the view form is loaded passing by the kanban list, the kanban
dataset data could be loaded after the view form is displayed.

When going manually to the view form, the human is usually enough slow
so the dataset ids are already loaded, but when loading directly the
view form (for example an "Edit" link from a record on the website or a
refresh) it can not be. For example on runbot the issue happened more or
less 50% of the time, and on localhost 90% of the time.

closes #7525
opw-642636
2015-07-13 11:45:10 +02:00
Nicolas Lempereur 0511b9af83 [FIX] web: m2m tags overflow when too much tags
If too many tags (or too long tags) where present in a many2many tags
widgets, it could go over the field and cover other thing in the UI.

Now the field size expands with the content (and in a way it is more
visually similar before and after 'Edit' so it is nice).

closes #7579
opw-644236
2015-07-13 10:37:31 +02:00
Odoo Translation Bot 99a7d530e0 [I18N] Update translation terms from Transifex 2015-07-12 01:51:44 +02:00
Denis Ledoux 89e1aae508 [FIX] base_action_rule: using relativedelta instead of timedelta
For the simple reason that `months` isn't an accepted argument
of `timedelta`
2015-07-10 17:18:37 +02:00
Olivier Dony 1576bc9891 [FIX] analytic: name_search match multi-level account names even with domain
When name_search is called with an extra domain
filter (args) and a pattern (name) containing
multi-level accounts, such as `A / B / C`, only
the last account (`C`) has to match the domain.
The intermediary parent accounts do not have to
match.
The domain was previously applied for each parent
in the lookup. This prevented searching for
multi-level accounts or copy-pasting full account
names whenever a domain was present and did not
match every account in the hierarchy.
2015-07-10 17:06:11 +02:00
Christophe Simonis 9654b54d3c [MERGE] forward port of branch saas-3 up to b15461b 2015-07-10 16:46:40 +02:00
Christophe Simonis b15461baba [MERGE] forward port of branch 7.0 up to 1d01872 2015-07-10 16:30:48 +02:00
Denis Ledoux 90e4aed135 [FIX] event: email templates should not be reset on update
In case you customize these emails, you do not want
to have them reset when you update the module (-u)

Same thing for the two default value in this file
for event.type

opw-644082
2015-07-10 12:21:47 +02:00
Martin Trigaux d2b564309e [I18N] sale_stock: remove untranslatable string 2015-07-10 12:10:46 +02:00
stijnh92 436fc5b67c [FIX] l10n_ro: res.partner form inheritance
The field property_account_position is added by the view
account.view_partner_property_form which is restricted to users with accounting
rights. If tired to access the view, the inheritance made on l10n_ro would fail.

Fixes #6952
2015-07-10 12:05:41 +02:00
Denis Ledoux 1bc4ed7c95 [FIX] point_of_sale: receipt report, qty decimal precision
In the receipt report, the quantity decimal precision
was hardcoded to 0, while it should use the decimal
precision from the field definition.

opw-644507
2015-07-10 12:04:36 +02:00
Martin Trigaux 937f05a492 [FIX] website_forum: remove duplicated term
Courtesy of Vincent Briffaux
2015-07-10 11:07:17 +02:00
Sandy Carter 1d0187223b [FIX] auth_oauth_signup: Factor out user signup values
There is no easy way to edit the values sent
to newly generated users from oauth_signup.

In some cases,
the mapping from an oauth provider can be different.
* ex: login is something other than email

In other cases,
there are additional fields in res_users added by a module
* ex: firstname and last name in `partner_firstname`

This factorization allows modules inheriting from `auth_oauth_signup`
to alter values sent to the copy of Template User.
This means smaller changes to the default behaviour
and the ability to properly inherit
(multiple times if needed)
this module without losing needed behaviour.

Closes #2355
2015-07-09 16:39:53 +02:00
Lorenzo Battistini f27acff15a [FIX] calendar: missing ondelete cascade
calendar.attendee record should not exist without calendar.event
2015-07-09 16:06:28 +02:00
Jose J. Duran 23cb6ef7df [FIX] account_asset: missing named arguments in signature
Otherwise the context of original method is lost.
2015-07-09 16:01:35 +02:00
Denis Ledoux 4adb4b8d15 [FIX] sale, website_sale: Send email on sale order confirmation
Not just when coming back from the payment provider to the
payment validation route `/shop/payment/validate`.

Otherwise, if you do not come back from the payment provider
page, that you quit just after having paid but just before
being redirected to Odoo, you do not receive the email.

The change within the `sale` module, while this issue concerns
`website_sale` only, has been accepted because this is a mechanism
that could be used by other modules.

opw-644348
2015-07-09 15:51:50 +02:00
Goffin Simon 85a06f8a6e [FIX] sale: confirmed sale order line
The filter "Confirmed" is applied on sale order line.
Introduced by b927f8a864
2015-07-09 15:23:44 +02:00
Goffin Simon dacf29427f [FIX] purchase: Invoicing on incoming shipments
The filter "Incoming Shipments to Invoice" must not include shipments that are
already invoiced.

opw:644407
2015-07-09 14:10:13 +02:00
Goffin Simon 2835381c7e [FIX] acount: aged partner balance
In the aged balance report, the reconcile entries are excluded
except if the reconciliation date is greater than the date for which the aged balance report is requested.
But this exception should never include opening entries.

opw:643172
2015-07-09 12:54:16 +02:00
Denis Ledoux 7c2521a79b [FIX] payment_ogone: amount rounding issue
The amount to pay must be sent without comma to ogone.
e.g., for 66.99 EUR, the amount sent must be 6699.

To do that, we simply applied 66.99 * 100, which
seems rather good.

However, due to the fact how floats are handled in computers,
`66.99 * 100` returns 6698.999999999999
and
`int(6698.999999999999)` returns 6698
while we expected 6699

Using `float_repr` with `0` as decimal precision
instead of using `int` solves this issue.
`float_repr(6698.999999999999, 0)` returns 6699, as expected.
2015-07-09 11:51:40 +02:00
Lionel Sausin 4be4678d8b [FIX] stock_account: use all inbound/outbound moves when valuating
The valuation wizard is based on stock moves and currently only takes into
account the moves which have different companies in source vs destination
locations.
This is a problem because all user-created locations have a default company set
to the user's company, even the "virtual" ones. For example in the demo dataset
visible on runbot, some supplier locations have a company set and some don't.
So we have to make sure to include every move coming from/going to
outside locations based on the locations's type too.

Closes #7530
2015-07-09 11:39:14 +02:00
Nicolas Martinelli a4ef73fb09 [FIX] mrp: merge lines where products to consume are identical
Method action_produce does not support the case where the same product appears
on multiple lines. We do this to avoid major changes in a stable version.

opw-644093
2015-07-09 11:11:01 +02:00
Denis Ledoux 812318dcba [FIX] survery: access rights for invitations
When building a new suvery, and sending invitation
trough private emails, it wasn't possible
to fill the survey from the link sent
if you were not logged as the user who sent
the invitation, or as a survey manager

opw-644210
Fixes #7486
2015-07-09 11:01:14 +02:00
Lionel Sausin 5fcad55000 [FIX] stock_account: missing default filter for valuation menu
The menu entry in Warehouse > Current Inventory Valuation is a shortcut to the
same results as the wizard in Reports > Warehouse > Valuation. However when
using the "current valuation" menu entry, the list is given without grouping by
product and location, so it's basically just a glorified list of stock moves
that no Warehouse manager is going to understand.

Let's just add the same default grouping to let the results make sense.

Closes #7531
2015-07-09 09:29:18 +02:00
Martin Trigaux 45748bab59 Revert "[I18N] purchase: remove untranslatable term from .pot"
This reverts commit 905dd88ce4.
This fields contains the attachment name which do make sense to be translated
("PO" stands for "Purchase Order").
2015-07-09 08:58:51 +02:00
Goffin Simon c33f79ae3e [FIX] stock: _get_domain_locations function
To adopt the same behavior than location with warehouse in function _get_domain_locations.

opw:644219
2015-07-09 08:00:05 +02:00
Goffin Simon a35af81e6a [FIX] account_voucher: onchange_journal
In the "Pay invoice" wizard, the period doesn't have to be change when
the payment method is modified.

opw:643791
2015-07-08 14:30:56 +02:00
Denis Ledoux d08facdcb5 [FIX] website: the sitemap must be build with the public user
Otherwise, when accessing `/sitemap.xml` as SUPERUSER for instance,
pages not published were displayed in the sitemap.

opw-640673
2015-07-08 14:16:30 +02:00
Martin Trigaux 905dd88ce4 [I18N] purchase: remove untranslatable term from .pot 2015-07-08 13:59:42 +02:00
Guewen Baconnier 4fe0c6bd60 [IMP] account: updated index to optimize _default_get of account.move.line
A log analysis showed that the normalized query below was executed very often
with a slow explain plan using a seq scan.

```sql

SELECT move_id, date
FROM account_move_line
WHERE journal_id = <journal_id>
AND period_id = <period_id>
AND create_uid = <user_id>
AND state = 'draft'
ORDER BY id DESC LIMIT 0;

```

This query is called in the _default_get of account.move.line to find the last
unbalanced move line.

The existing index can be improved to cover this query as well, showing an
impressive improvement of the explain plan as explained here:
https://github.com/odoo/odoo/pull/7430#issuecomment-119521031

Closes #7430
2015-07-08 13:56:20 +02:00
Martin Trigaux d2e660b31d [FIX] purchase: field label
No need for uppercase, courtesy of Lionel Sausin.

Well, Clarice - have the lambs stopped screaming?
  -- Hannibal Lecter
2015-07-08 13:47:38 +02:00
Holger Brunn f204c76f23 [FIX] web: keep the context we got in Many2ManyDataset
This bug causes binary fields in many2many lists being presented as a data url,
even though bin_size is passed.

Closes #6966
2015-07-08 13:42:59 +02:00
Guewen Baconnier 26c7ea4de6 [REF] account_analytic_analysis: extract a method for preparing invoice lines
In recurring invoices from contracts. It allows to inherit and modify the
prepared values for the lines.

Closes #6822
2015-07-08 13:42:59 +02:00
Holger Brunn 1e8f8eabec [IMP] procurement, stock: make procurement.rule.name and stock.location.route.name translatable
Closes #4222
2015-07-08 13:42:59 +02:00
Guewen Baconnier 166839fb46 [FIX] l10n_ch: Link the taxes to the correct accounts
Fixes #4288
Closes #4300
2015-07-08 13:40:50 +02:00
Erwin van der Ploeg 91985d7eae [FIX] stock: visibility of "Recheck Availability"
If a picking is partially available and some lines are waiting another operation
2015-07-08 11:39:13 +02:00
Goffin Simon e27d854801 [FIX] website_sale: delete console.log
Delete console.log introduced by 4d7671a4c3
2015-07-08 10:37:33 +02:00
Lionel Sausin 7fb37b3e89 [FIX] stock: missing default filter for quants menu
Most (if not every) other ways to open a list of quants has default filters to
include only internal locations.

Closes #7501
2015-07-08 09:30:33 +02:00
Goffin Simon 669948569b [FIX] website_sale: alternative products
Display correctly the alternative products

opw:643934
2015-07-08 09:11:01 +02:00