Commit Graph
111199 Commits
Author SHA1 Message Date
Olivier Dony e4672db97d [IMP] module: make internal methods private
Only methods that are meant to be accessed by the client-side
directly (or via RPC) should be public. All others should be private by
default.
2017-09-28 14:15:30 +02:00
Olivier Dony dc49ba1dc1 [IMP] module: verify and log admin operations
Verifies that admin operations on modules/apps are indeed performed by
an administrator, regardless of ACLs on `ir.module`.
Also logs these important operations, whether completed or blocked.
2017-09-28 14:15:23 +02:00
Olivier Dony 8241c46f0f [FIX] hr_payroll: make internal method private
Only methods that are meant to be accessed by the client-side directly
(or via RPC) should be public. All others should be private by default.
2017-09-28 14:15:00 +02:00
Christophe Simonis 89df681b45 [MERGE] forward port branch saas-15 up to da15615c45 2017-09-28 11:56:23 +02:00
Christophe Simonis da15615c45 [MERGE] forward port branch saas-14 up to aca401c500 2017-09-28 10:53:37 +02:00
Christophe Simonis aca401c500 [MERGE] forward port branch 10.0 up to 808c0e5dde 2017-09-28 09:54:16 +02:00
Joren Van Onder 8cbd29f696 [FIX] mrp: display attachment image in mrp.document kanban view
Before this the mrp.document id was used to construct the /web/image/
link which lead to the wrong attachment being previewed and
downloaded. Introduced by the refactoring that happened in
d193350c6f.
2017-09-27 17:14:43 -07:00
Denis Ledoux 808c0e5dde [FIX] test_assetsbundle: handle readonly files
If the Odoo server runs with its sources read-only
for itself, this is not possible for the server
to touch the files contained in the assets.

In such a case, instead of touching the file,
we alter the attachment checksum, to simulate
a change within the modified date.

However, in such a case, we can only test that the
bundle is well generated again.
We can no longer check the change of version and modified date,
since the modified date of the files have not changed,
and therefore the checksum (which is based on the files
modified date, among others) neither.
2017-09-27 22:11:36 +02:00
Denis Ledoux b5c55a9331 [FIX] base: tests, reflect unaccent behavior of 5e3de76f36
Since the revision
5e3de76f36

The `::text` is included within the `unaccent` call
The expession tests have never been changed according
to this change of behavior in the building of the unaccented
queries. This has never been detected by runbot because
you need to start the Odoo server with the option
`--unaccent`
and to create the database with the unaccent extension
`CREATE EXTENSION unaccent`
to be able to fail the former tests,
and this is not the case on runbot.
2017-09-27 22:10:30 +02:00
Goffin Simon 5c308d2bee [FIX] stock: Error when creating a stock.location
When creating and setting a parent location a stock.location,
a traceback was raised because a name was required in function name_get

opw:77441
2017-09-27 17:46:18 +02:00
Christophe Simonis af117236de [MERGE] forward port branch 10.0 up to 8165018058 2017-09-27 17:07:23 +02:00
Christophe Simonis 8165018058 [MERGE] forward port branch 9.0 up to b7940c317b 2017-09-27 16:41:09 +02:00
Christophe Simonis b7940c317b [MERGE] forward port branch saas-6 up to 81605180bf 2017-09-27 16:30:36 +02:00
Christophe Simonis 81605180bf [MERGE] forward port branch 8.0 up to cf8577b9d0 2017-09-27 16:01:47 +02:00
Christophe Simonis cf8577b9d0 [FIX] crm_partner_assign: safer geolocalization test
Backport & adapt commits afd4b68acc & 27787265dd

As google starts to refuse to answer to our geocode requests, we need
to mock results in tests.
2017-09-27 15:53:30 +02:00
qsm-odoo 4c046a759c [FIX] web: fix translate icon position on chrome
On chrome only, the translate icon was over the <input/> element but
below the <input/> text... this commit fixes this by forcing
relative positioning on the icon so that it is always rendered after
the <input/> (which seems to solve the chrome bug).
2017-09-27 13:58:14 +02:00
Christophe Simonis 6836828a3e [MERGE] forward port branch 9.0 up to 1970761554 2017-09-27 13:20:29 +02:00
Christophe Simonis 1970761554 [MERGE] forward port branch saas-6 up to 57868ca195 2017-09-27 13:16:37 +02:00
Christophe Simonis 57868ca195 [MERGE] forward port branch 8.0 up to 8a187c5b1d 2017-09-27 13:15:55 +02:00
Aaron Bohy ca258b8691 [FIX] web: style of required fields in x2many lists
In community, the input/textarea of required fields should have a
blue background. Before this rev., this wasn't the case inside
lists.

Closes #19689
2017-09-27 12:13:58 +02:00
Aaron Bohy 2d3e5711f1 [FIX] web: escape pressed in editable list in dialog
should discard the edited row, but not close the dialog. Before
this rev., it was closing the dialog.
2017-09-27 12:13:58 +02:00
Martin Geubelle df04910d2a [FIX] *: correctly use session
Widget has no attribute `session` since the new views.

One should either use `getSession()` or require `web.session` (both
cases are correct).
2017-09-27 11:04:08 +02:00
Martin Trigaux 88edeeca6a [FIX] preventing context.get('lang')
The lang in the context can be None or False
To avoid similar error as revealed at ede29e6d, correctly retrieve the context
2017-09-26 16:58:59 +02:00
David Monjoie a3828dfed3 [FIX] web: fix o_row mechanism with phone field
The o_row class mechanism is supposed to be used to put another
element next to a field, like a button for example. However,
in the case of phone and email field, the o_text_overflow hack
gets in the way.

The problem that o_text_overflow is trying to solve is when you
have a long email, the table used to display the form view fields
tends to use very long cells (td) so it can display the whole email
address. This behavior completely breaks the form view, even though
the email address is clearly set to wrap in css. The o_text_overflow
class is a hack that forces the table to think that the email is
small, then defaulting to the width 50% css rules. If the email is
too long, it is correctly wrapped inside the cell, without breaking
the form view layout.

However, when we need to add a button next to those fields, this
hack gets in the way of the o_row class css rules, completely
wrecking it. We looked for a fix with qsm-odoo for hours but were
unable to find one that did not require a complete rewrite of the
form view css rules. In the end, we decided to remove the hack from
the phone field and keep it on the email field, as we think it is
less common to have a very long phone number than to have a very
long email.
2017-09-26 16:21:51 +02:00
Axay Javiya ede29e6d31 [FIX] l10n_be_hr_payroll_fleet: fallback for no language
If the context is lang=None, it crashed as called babel with a None locale.

Closes #18403
opw-756026
2017-09-26 16:16:50 +02:00
qsm-odoo e520aabc43 [FIX] website_slides: allow upload of >20MB files (as limit is 25MB)
There is a double-check (on client and on server) to prevent the user to
upload a >25 MB document. The client checks the actual file size while
the server guesses it from the total received payload. This server guess
is wrong as the extra payload is quite huge (5-10MB). Now the server
checks the real file size as it should have from the beginning.
2017-09-26 14:04:55 +02:00
Aaron Bohy 28a2ba00ac [FIX] web: Calendar: update breadcrumbs and buttons
In calendar views, the breadcrumbs should display the period
displayed in the view (e.g. in month mode, something like 'April
2017'). Moreover, the 'Day', 'Week' and 'Month' buttons should be
highlighted when the corresponding mode is used.

This rev. ensures that this is the case.
2017-09-26 14:01:49 +02:00
Odoo Translation Bot 8a187c5b1d [I18N] Update translation terms from Transifex 2017-09-26 11:47:00 +02:00
Axay Javiya 484d33d931 [FIX] point_of_sale: fix traceback on 'Analytic Rules' stat button 2017-09-26 11:17:23 +02:00
Adrian Torres 83024ca3d6 [FIX] calendar: Fix unicode reminders
Before this commit, if a reminder was created and the dates being
formatted contained unicode characters the whole thing would break
because python + unicode is hard.

Example: Japanese with Asia/Tokyo timezone and creating reminders
of 1 day, see support ticket 771674
2017-09-26 09:30:17 +02:00
Goffin Simon de95e6f4a8 [FIX] account_asset: float division by zero
The number of depreciations or the period length of your asset category cannot be null.

opw:773790
2017-09-25 15:35:59 +02:00
Goffin Simon 28755e1f41 [FIX] sale_mrp: Wrong call of _compute_quantity
The signature of the function _compute_quantity is
 _compute_quantity(self, qty, to_unit, round=True, rounding_method='UP')
With courtesy of @PierreFaniel

Closes #19682

opw:774104
2017-09-25 15:20:47 +02:00
Goffin Simon 571b1a1096 [CLA] Signature for Niboo
opw:774104
2017-09-25 15:14:24 +02:00
qsm-odoo 0b4f190b0f [FIX] website_event_track: allow to edit tracks' info in frontend
Before this commit, the track description and partner biography were
not able to be edited after proposal.
2017-09-25 11:55:17 +02:00
Yasser Kaddour 4365ebc19c [FIX] Correct Algerian currency symbol
While the currency code of the Algerian Dinar is DZD, (latin) currency symbol is DA.
2017-09-25 09:53:45 +02:00
Odoo Translation Bot c8796d45fe [I18N] Update translation terms from Transifex 2017-09-24 07:14:32 +02:00
Odoo Translation Bot 3550a68d96 [I18N] Update translation terms from Transifex 2017-09-24 04:41:28 +02:00
Odoo Translation Bot 740ddf81b0 [I18N] Update translation terms from Transifex 2017-09-24 01:44:27 +02:00
Denis Ledoux 633b5495b7 [ADD] event, event_sale: registration summary methods.
Method which return summary information about the registration,
which can be used by email or QWeb templates to fetch useful
information about the registration.
2017-09-22 22:25:56 +02:00
Goffin Simon 3a6fb27148 [FIX] account: Register a payment with no sequence for account.payment
Fine tuning of this commit: ce2d00f346

opw:767224
2017-09-21 22:17:51 +02:00
Yannick Tivisse 8e2d7c2e3c [FIX] hr_expense: Make expense sheet report multi currency coherent
Purpose
=======

Currently, if we want to print an expense report that has several currencies in its expense lines, the total amount is hidden on the report. Otherwise, it is simply summed.

That could lead to confusing uses cases. Example.
1 expense line of 92 dollars.
1 expense report expressed in euros.

In the report we will have
- 1 line of 92 dollars
- Total amount: 92 euros

Which is obviously wrong.

Specification
=============

Always display the amount + Compute the amount in the expense report currency, by converting the amount with the rate at the day the expense has been made.
2017-09-21 16:51:13 +02:00
Christophe Simonis 88395bdb8e [MERGE] forward port branch saas-15 up to 3ad3b34df6 2017-09-21 16:00:27 +02:00
Christophe Simonis 3ad3b34df6 [MERGE] forward port branch saas-14 up to 537d1ec0d2 2017-09-21 15:08:34 +02:00
qsm-odoo b51b0d66c2 [FIX] web: open domain selector's datepicker at the right position
Before this commit, and since the combination of new views + datepicker
library update, the datepicker opened at the top left of the window
when using it in a domain selector. It also could not be used at all.

This was because the current scenario occured:
1) Click on the datepicker
2) The datepicker triggers that it has changed on opening
3) The whole domain selector is rerendered
4) The datepicker computes where it should open... on basis of the
   old destroyed domain selector

As the main cause of the problem here was the (2), this commit changes
the datepicker odoo widget to only notifies that it has changed when it
has really changed.
2017-09-21 14:51:12 +02:00
Christophe Simonis 537d1ec0d2 [MERGE] forward port branch 10.0 up to e245135421 2017-09-21 14:01:41 +02:00
Christophe Simonis e245135421 [MERGE] forward port branch 9.0 up to d53a201987 2017-09-21 13:55:52 +02:00
Christophe Simonis d53a201987 [MERGE] forward port branch saas-6 up to 43a47dbc93 2017-09-21 13:51:19 +02:00
Christophe Simonis 43a47dbc93 [MERGE] forward port branch 8.0 up to 35441cfd62 2017-09-21 13:25:42 +02:00
Haresh Shyara 5b216c03c1 [FIX] account: wrong default journal on vendor credit note 2017-09-21 12:01:51 +02:00
Aaron Bohy c3a32fc98c [FIX] web: keep settings form view in edit mode
when coming back using the breadcrumbs.

The settings form view should always be displayed in 'edit' mode.
Before this rev., it was re-rendered in 'readonly' when the user
clicked on a link in a setting view (opening another view stacked
in the breadcrumbs), and then came back to the settings view using
the breadcrumbs. For instance, go to 'General Settings', click on
'Activity Types', come back.
2017-09-21 08:12:15 +02:00