Commit Graph
102272 Commits
Author SHA1 Message Date
Aaron Bohy e7bc4e9703 [FIX] mail: thread: keep image ratio
With rule 'max-width: 100%', the height must be reset to 'auto' to keep the
image ratio.
2016-05-18 10:09:06 +02:00
Christophe Simonis b26fd22584 [MERGE] forward port of branch saas-9 up to 6d6a90f 2016-05-17 14:12:07 +02:00
Christophe Simonis 6d6a90f385 [MERGE] forward port of branch 9.0 up to 128d58f 2016-05-17 14:04:26 +02:00
Christophe Simonis 128d58f1c7 [MERGE] forward port of branch saas-6 up to b54fdaa 2016-05-17 14:00:49 +02:00
Christophe Simonis b54fdaa101 [MERGE] forward port of branch 8.0 up to 393c14d 2016-05-17 13:40:44 +02:00
Jeremy Kersten d9d84bb6fd [FIX] website: backport of 613ee31f9c 2016-05-17 13:31:35 +02:00
Christophe Simonis 393c14d31a [MERGE] forward port of branch 7.0 up to f4cb884 2016-05-17 13:16:50 +02:00
Damien Bouvy 903733a320 [IMP] web/database manager: admin login & country
Add inputs e-mail address and country
when creating a newdatabase

This will provide the installation of the correct
chart of accounts at the installation of Accounting

Use the provided login as the admin login,
and set the email on the partner
if the login set is an email

Set the country on the company (and its partner)
The countries are parsed from XML country list

We take the opportunity to repair the `label for`
which bind the label with the input only if
the `id` attribute of the input is set with
what is set in the `for` attribute of the label
2016-05-17 12:40:47 +02:00
Martin Trigaux 036e3cc253 [IMP] doc: uniform design with user documentation
Apply the same changes from functionnal documentation to dev doc:
odoo/documentation-user@4316470
2016-05-17 12:02:12 +02:00
qdp-odoo 640e851f4e [FIX] l10n_fr_fec: intial balance of accounts from the P&L should be summarized into a single line 2016-05-17 11:44:39 +02:00
Nicolas Martinelli dd92f9603c [FIX] point_of_sale: select correct journal
An issue occurs in the following situation. Several cash journal are
configured for a given PoS, and a user performs a refund (the
transaction contains only a refund). In this case, the wrong journal
might be selected. This is because a payment line of zero is not sent to
the backend, and therefore an arbitrary journal is selected.

opw-676229
2016-05-17 11:38:02 +02:00
Stanislav Sokolko 0632a40b80 [FIX] web: update compatibility layer
this commit adds better support in the compatibility layer of the
js framework.  This is necessary if one wants to follow the
official tutorial.
2016-05-17 10:47:26 +02:00
Stanislav Sokolko c71cb6a5fc [CLA] signature for s.sokolko 2016-05-17 10:47:06 +02:00
Sylvain GARANCHER f4cb884cdc [FIX] base: Add missing return values
The _auto_init method was overriden without keeping the return value of
the super on some models.
This break the new stored computed fields computation at field creation.

Closes #11985
opw-677232
2016-05-17 10:39:54 +02:00
Géry Debongnie 65192ea943 [FIX] web: remove useless line
the enable_button call should have been removed...
2016-05-17 10:26:24 +02:00
Géry Debongnie 95cbee6243 [FIX] web: fix duplicate changes in form view
Before this commit, in some cases, clicking on 'save' button, then on
other buttons (like 'validate' in invoices) had the unfortunate effect
of applying twice the changes in some cases.

More specifically the problem appears when:
1. an onchange is triggered (for example, taxes in invoices)
2. the user clicks on 'save', buttons are disabled
3. the 'save' actions is completed, the buttons are enabled, but
   the on_button_save still does some work: triggering event, and
   reloading the view
4. the user clicks on 'validate'
5. the onchange completes, this triggers some more work

Our only protection against such interactions is right now the fact that
buttons are disabled/enabled.  In my opinion, there should be a way
to guarantee that actions are properly serialized (that is actually what
a mutex is for... just saying). But the code of the form view/list view is
too coupled, and such changes are quite dangerous.  A real refactoring
of those is needed at some point in the future.
2016-05-17 10:24:47 +02:00
Damien Bouvy a5277bc106 [IMP] doc: Enterprise-compatible installation instructions
Before this revision, the installation instructions where
Community-centric, which led some customers to believe
that they had to install first Community then Enterprise.

This commit makes the instruction compatible for both editions.
2016-05-17 10:21:11 +02:00
Odoo Translation Bot 8f46a6fe73 [I18N] Update translation terms from Transifex 2016-05-15 02:56:59 +02:00
Odoo Translation Bot 610d462740 [I18N] Update translation terms from Transifex 2016-05-15 00:29:02 +02:00
Nicolas Lempereur 4cf9e4ca83 [FIX] l10n_be_intrastat: typo 2016-05-13 17:57:12 +02:00
Nicolas Lempereur 780e3fec10 [FIX] l10n_be_intrastat: get location_id from stock move
purchase.order have been rewritten with cb01be2

It was not taken into account for intrastat  who still used the now not
existing "location_id" on purchase order.

This commit use instead the method _get_destination_location which
should be equivalent.

opw-677497
2016-05-13 17:54:21 +02:00
Christophe Simonis bfb272c61e [MERGE] forward port of branch saas-9 up to da8a312 2016-05-13 17:42:34 +02:00
Christophe Simonis da8a312d4e [MERGE] forward port of branch 9.0 up to 820f7e1 2016-05-13 17:42:10 +02:00
Christophe Simonis 820f7e11c1 [FIX] core: correct fields.modified_draft for triggers on other models 2016-05-13 17:32:00 +02:00
Damien Bouvy 9b2d153302 [FIX] setup: atom doesn't want to use hard tabs even when told to
This is now the 2d stupidest commit I ever did
2016-05-13 17:08:28 +02:00
Nicolas Lempereur 9530a9f498 [IMP] website: share widget and multi language
The lang of the content of the "Share" widget was the one used when
inserting  it in the view. Thus if someone see a page with it in another
language the title and url for sharing is not translated.

This commit use the current page language to set the widget data.

opw-676062
2016-05-13 16:57:43 +02:00
Jeremy Kersten 5aa0baea84 [FIX] website_link: fix zeroClipboard config
ZeroClipboard lib has been moved from web to website_link but
config file has been not updated.
2016-05-13 16:25:44 +02:00
Damien Bouvy 98bd6d4f4a [FIX] setup: use hard tabs
GTFO
2016-05-13 16:22:05 +02:00
qsm-odoo 068acf76da [FIX] web_kanban: quick redrag of kanban records
When dropping a record, it is updated and rerendered. The problem with
this behaviour is that if the record is redrag immediately after drop,
jquery-ui throws an error as the widget the user is trying to re-move
is being rerendered.

The solution provided by this commit is to block the draggable feature
while the record is being rerendered.
2016-05-13 16:03:04 +02:00
Christophe Simonis c4bba868f0 [MERGE] forward port of branch saas-9 up to 087729f 2016-05-13 15:58:06 +02:00
Damien Bouvy aee53a3695 [FIX] setup: missing dep for RHEL-based distros 2016-05-13 15:48:08 +02:00
Christophe Simonis 087729f31b [FIX] base: remove FDCC modifiers from date/time formats of res.lang 2016-05-13 15:33:03 +02:00
Christophe Simonis 7f2a9e77b6 [MERGE] forward port of branch 9.0 up to dcab356 2016-05-13 14:08:51 +02:00
Nicolas Martinelli ccb6f1c501 [IMP] document: indexation of MS documents
Commit 3ced0ff61 removed the support of Microsoft documents for
indexation. It makes sense for the old formats such as '.doc' since it
requires an external tool ('antiword'), which could lead to a security
issue. However, the new formats such '.docx' are simple xml files,
therefore they could be indexed with the usual XML parsing tools.

opw-677235
2016-05-13 13:32:06 +02:00
Christophe Simonis dcab356b38 Revert "[FIX] product: respect sequence when loading pricelist rules"
This reverts commit b0f02e31b2.

As pointed out by @nim-odoo [1], a similar patch has already been
uncommited few month ago [2].

Ref #11988
opw-676422

[1] https://git.io/vrYxY
[2] see a6badd2559
2016-05-13 13:28:41 +02:00
Christophe Simonis f1659a0dc9 [MERGE] forward port of branch saas-6 up to f6eda2c 2016-05-13 12:59:04 +02:00
Christophe Simonis f6eda2c350 [MERGE] forward port of branch 8.0 up to 5e18f5a 2016-05-13 12:54:34 +02:00
Christophe Simonis 5e18f5a080 [FIX] tools: correct Burmese locale 2016-05-13 12:53:17 +02:00
Jeremy Kersten 613ee31f9c [FIX] web_editor: video - allow to add video from unknown source
There are not cat... but you cannot know all the existing website in the world...
So, have faith in the user !

To do: allow to customize size or get it from iframe provided
2016-05-13 12:37:51 +02:00
Aaron Bohy 43f40ec403 [FIX] mail: max width 100% of images in threads 2016-05-13 08:24:47 +02:00
Christophe Simonis 7e999ece01 [MERGE] forward port of branch saas-6 up to 19a77d9 2016-05-12 18:20:08 +02:00
Alexis de Lattre fb84f95f91 [FIX] l10n_fr: FIX default Sale/Purchase tax. Courtesy of alexis-via. PR #11139 2016-05-12 17:37:17 +02:00
Christophe Simonis 19a77d948d [MERGE] forward port of branch 8.0 up to 746cda7 2016-05-12 16:42:08 +02:00
Christophe Simonis 9e31843ded [FIX] account_asset: correct dependencies of amount_residual field
Also use a `set()` to avoid processing assets multiple times when
creating moves from lines
2016-05-12 16:10:35 +02:00
Nicolas Lempereur 38e35cc442 [FIX] web_editor: scroll and editing menu modal
The class modal-open on body tag allow to scroll on the modal content
which is useful if the content is taller than the window viewport.

When closing the modal, this class is removed but there may be another
modal open on which we will not be able to scroll to view
buttons/content if too big.

This commit check if a modal is still opened after closing an editor
modal and in the affirmative add back the modal-open class.

opw-674475

note : was already present in 8.0 with ec47493, it is also present for
web.Dialog (but the modal of the editor do not inherit from web.Dialog)
2016-05-12 15:56:14 +02:00
Goffin Simon 746cda7f89 [FIX] website: URL of website_published is wrong when using next/previous
Steps to reproduce:

-go to runbot 8.0 and connect
-go into human ressources/job positions
-pass into list view and click on the first item
-click on the url to open this record into the website (website_published)
-go back (back into the browser)
-you're now into the form view again and then next step is to click on the button
"next" to access the following record
-click on the url of website_published

Before the fix:

wrong record, this is the previous one that is into the href

After the fix:

correct record with the correct id into the href

Closes #11800
opw:675832
2016-05-12 13:31:19 +02:00
Nicolas Lempereur f41bcda03b [IMP] account: invoice analysis pivot quantities
In the report "Invoice Analysis", the view under the report is grouping
lines by invoice and also by product on this invoice.

Thus, quantities in the pivot view are not the real quantity of invoice
lines, but of invoice lines with different products.

eg:

invoice a:
- line 1: product X
- line 2: product Y
- line 3: product X

in the report there would appear to only be 2 invoice line, whilst there
is in realy three (this information is accessible via "# of Lines").

closes #11954
opw-676651
2016-05-12 13:11:47 +02:00
Goffin Simon 7061acd2c1 [FIX] purchase: fiscal position from onchange_partner_id
Used case:

-Configure admin as multi-company user
-Create 2 fiscal positions (one for company "Odoo BE" and one for company "Odoo US")
-Set admin on company "Odoo BE"
-On supplier (Asustek) configure fiscal position Odoo BE
-Set admin on company "Odoo US"
-On supplier (Asustek) configure fiscal position Odoo US
-Configure a product (Laptop E5023) with:
   *route "Buy"
   *supplier (Asustek) without company
   *reordering rules (min qty: 20, max qty: 40)
-Set admin on company "Odoo BE"
-Run scheduler via the cron

Behavior before the fix:

-Fiscal position on the created PO is the fiscal position for "Odoo BE" (and PO is for the company "Odoo US")

Behavior after the fix:

-Fiscal position on the create PO is the fiscal position for "Odoo US".

Closes #11537

opw:673288
2016-05-12 13:05:52 +02:00
Christophe Simonis 2f374c4cba [MERGE] forward port of branch 8.0 up to 3a32021 2016-05-12 12:38:02 +02:00
Nicolas Lempereur 53f86de70d [FIX] payment_authorize: use state code instead of state name
The state given to authorize requests should be the state code and not
the state name.

source:
https://support.authorize.net/authkb/index?page=content&id=A1454&actp=RSS

opw-675634
2016-05-12 11:52:10 +02:00