Commit Graph
102783 Commits
Author SHA1 Message Date
Thibault Delavallée e87dbff063 [FIX] stock: wrong field name in move.split() 2016-05-24 17:11:55 +02:00
Thibault Delavallée 28e623be66 [FIX] stock: do not use self in a multi loop 2016-05-24 17:11:54 +02:00
Christophe Simonis f43b206970 [MERGE] forward port of branch saas-10 up to d35d8c3 2016-05-24 16:59:37 +02:00
Christophe Simonis 3ab38618a9 [FIX] account: use new convert_to_write api 2016-05-24 16:58:03 +02:00
Christophe Simonis d35d8c3fca [MERGE] forward port of branch saas-9 up to e5c2e6e 2016-05-24 16:40:53 +02:00
Christophe Simonis e5c2e6e001 [MERGE] forward port of branch 9.0 up to e69d9b8 2016-05-24 16:39:41 +02:00
tdu-odoo f3b2d36a70 [FIX] account: Code 421 should be type Payable and not Current Liabilities
To be able to counter part the expense of the employee with the account set on his personal contact form, we need to configure the 421 account as payable.
more infos on http://www.compta-facile.com/comptabilisation-des-notes-de-frais/
The fix allows us to get that correct entry:
https://drive.google.com/a/openerp.com/file/d/0B5t9_ESHwijQemhyUjFFRzdTeVE/view?usp=sharing
2016-05-24 16:22:56 +02:00
Nicolas Martinelli e69d9b8b7d [FIX] account_asset: fiscal year date
The fiscal year start date should be taken into account when calculating
the depreciation amount in case of prorata temporis.

opw-678072
2016-05-24 15:36:54 +02:00
Martin Trigaux bb51431653 [FIX] website_mail: publications of internal notes
On the font-end view of project.issue, only the messages of type `note` were
display. This excluded the messages recieved via email which makes hard to
understand a conversation (e.g. a customer does not sees his own answers).

Instead, only filter out the notifications (change of states, responsible...)

opw-677426
2016-05-24 15:26:22 +02:00
Simon Lejeune 2d66d9a63e [FIX] *: do not use groups when extending an asset bundle
Using groups when declaring an extension of an asset bundle leads to a
different generated asset bundle according to the user's group. This
is not something we want because a dynamic asset bundle's content
means that it could (and it does) trigger unwanted cache invalidation.

website_event, website_blog, website_forum and website_sale add
functions to `website.contentMenu`. These functions are bound to
server side qweb nodes protected by groups. We can always add the
functions; if a user tries to use the routes he should receive a
traceback because of lack of access rules

website_blog adds a `website_blog.editor` module, but is guarded by
the presence of a node in the DOM. We use the same logic to guard the
module added by website_sale with the `.js_sale` node.

website_gengo is working as expected.
2016-05-24 15:11:05 +02:00
Tanguy Charlier bb442fdb8d [FIX] website_crm: fix typo in template name 2016-05-24 14:45:15 +02:00
Martin Geubelle eab971ef3d [FIX] website_crm: leads on dashboard
The field sales team is not used on lead when created from website.
We use the UTM (i.e. medium) instead to distinguish where the lead is created from.
2016-05-24 14:43:19 +02:00
Nicolas Lempereur d4e7da6133 [IMP] im_livechat: don't auto-open on mobile
Currently on mobile, the livechat window would take all the viewport of
a small screen mobile browser. This combined with the "auto open"
feature can be desorienting: users could have only seen the "hello, how
may I help you ?" window and not know what to do or what is happening.

So this commit remove the "auto open" feature if user is on a too small
device (the user would thus have to click on "Have a Question").

closes #12148
opw-678012
2016-05-24 14:34:36 +02:00
Cedric Snauwaert 784cdf9724 [FIX] account: fix error in aged partner balance, variable at_least_one_amount referenced before assignment 2016-05-24 14:21:25 +02:00
Christophe Simonis 36ca8f51e3 [FIX] hr: trigger job count computation on employee archive
forward-port of b9bca7909a which have
been forgotten in previous commit.
2016-05-24 14:15:56 +02:00
Christophe Simonis e641d740d7 [MERGE] forward port of branch saas-10 up to fac4cc7 2016-05-24 14:08:42 +02:00
Christophe Simonis fac4cc7006 [MERGE] forward port of branch saas-9 up to f8e6bb7 2016-05-24 13:19:19 +02:00
Christophe Simonis facb664483 Revert "[FIX] account: fixed old references to account_extra_report module forgotten during the merge into account"
This reverts commit 4f00202fda.
2016-05-24 12:51:14 +02:00
Goffin Simon fea0fef7a2 [FIX] project_issue: number of issues for a customer
When counting the number of issues for a customer, all the the contacts
of this customer must be taken into account.

opw:676985
2016-05-24 12:51:10 +02:00
Christophe Simonis f8e6bb73b3 [MERGE] forward port of branch 9.0 up to 4c07faf 2016-05-24 12:33:23 +02:00
Christophe Simonis 4c07fafe70 [MERGE] forward port of branch saas-6 up to 0de30f4 2016-05-24 10:25:20 +02:00
Goffin Simon 509ce61836 [FIX] account: unlink account journal
The bank account linked to a journal cannot be systematicaly deleted
with its journal because this bank account can be linked to several
journals.

opw:676374
2016-05-24 09:37:24 +02:00
Denis Ledoux 0d929dc8fa [FIX] account: invoice import with only partner and lines
When creating a new invoice through the web interface,
a bunch of "default" values are loaded once the partner
chosen, thanks to an onchange on this field,
such as the `account_id`, the fiscal position, etc.

It was not when importing an invoice, making it
more difficult to import an invoice.

In addition, the taxes lines were not computed at all
when importing an invoice with taxes within its
invoice lines, while it should be the case
if the tax lines are not forced during the import.

opw-678155
2016-05-23 17:11:17 +02:00
qsm-odoo d4f8096790 [FIX] web,base: m2o empty name results
M2O use the autocomplete lib to display its content. The problem is
that if a result is empty (or only composed of whitespaces), a
divider is displayed in the dropdown.

Commit 1d9f7d279a was fixing this by only displaying non-empty
name results... but it did not work as many models implement the
name_search method the wrong way.

The new solution is to add a default display for record values which
are empty strings, at the right places in the webclient components.
2016-05-23 17:08:50 +02:00
Thibault Delavallée dd3ee48b64 [FIX] base: partner: compute image before calling create 2016-05-23 16:12:30 +02:00
Thibault Delavallée 865ccfe636 [FIX] stock: typo in onchange 2016-05-23 15:44:44 +02:00
Martin Trigaux 17e144f51b [FIX] mail,website_forum: set SELF_WRITABLE_FIELDS on model's class
Otherwise it is not visible when set on an instance of the new API.
self is a recordset instead of the model `res.users`

Without this patch a low priviledge user was not able to modify its own value
of `notify_email` through the preference window.
2016-05-23 15:36:12 +02:00
Christophe Simonis 0de30f4013 [MERGE] forward port of branch 8.0 up to 0af32f3 2016-05-23 15:08:35 +02:00
Cody Kitterman 68c6a51bfe [FIX] doc: corrects spelling errors for cmdline
From #12028
2016-05-23 12:44:33 +02:00
Nicolas Martinelli ed2badcd72 [FIX] account: sort taxes
In the case of grouped taxes, the taxes would not be applied anymore
after commit 0a5b943d19

opw-678158
opw-678219
2016-05-23 12:01:57 +02:00
Nicolas Martinelli 1139da2884 [FIX] account_asset: depreciation start date
If 'Prorata Temporis' is not set, depreciation_date should be the 1st of
January of purchase year.

opw-677534
2016-05-23 10:44:34 +02:00
Martin Trigaux 0af32f3f84 Revert "[FIX] res.currency: allow duplication"
This reverts commit d780f9476d.

Did not work due to the size=3 on name field that strips the code to the first
three letters only (removing the " (copy)" part).
Copying a currency has a few business cases as the rates are not copied.
As can not increase the size of a field in stable, remove the method that had no
effect.

Fixes #11036
2016-05-23 10:39:15 +02:00
Damien Bouvy d4b5a25451 [IMP] account_asset: use company dependent fields
Like for most of accounting, these fields should be company dependent
since they generates accounting entries in certain journal & accounts
that depend on the company, while your products usually don't.
2016-05-23 10:25:47 +02:00
Odoo Translation Bot 95c9036aef [I18N] Update translation terms from Transifex 2016-05-22 02:57:09 +02:00
Odoo Translation Bot ebc0206ab5 [I18N] Update translation terms from Transifex 2016-05-22 00:28:27 +02:00
Damien Bouvy b9bca7909a [FIX] hr: trigger job count computation on employee archive
opw-676542
2016-05-20 13:43:32 +02:00
Martin Trigaux d9073a7773 [IMP] calendar: avoid parsing for models that do not have virtual ids
And avoid bug with negative ids to happens in the first place
2016-05-20 11:16:30 +02:00
Martin Trigaux ae1c0e8b23 [FIX] calendar: fetching images of negative ids
The mimetime fetching in /web/image/... may fail if:
- calendar is installed
- `id` is a string (using ?id=42 in the URI)
- `id` is a negative number (company partners on odoo.com)

The `search` override of `ir.attachment` in calendar detects if a number is a
virtual ID when it contains a '-' and is a string.

While it is not optimal to allow both int and str format for paramter `id`, make
the verification of virtual ID in calendar more strict to only match the format
`<real>-<virtual>` and not `-<real>`
2016-05-20 11:16:29 +02:00
Nicolas Lempereur 7f9942c1a4 [FIX] l10n_be_intrastat: traceback change new api
642fea4 updated some models to new API but this was not taken into
account into the part of the code this commit fix.

opw-677497
2016-05-20 10:41:27 +02:00
Leandro Ezequiel Baldi 566e6db547 [CLA] signature for Baldi Leandro (lbaldi)
Closes #12110
2016-05-20 10:36:21 +02:00
Martin Trigaux 06c49d19c3 [MERGE] Forwardport of 9.0 up to 3b234a23c 2016-05-20 09:04:38 +02:00
Martin Geubelle 91acf0ab51 [FIX] mail: typo
This `,` at the end creates a tuple and `if (False,)` will be evaluated to True.
This leads to invalid `Notification Email`.

Hum..
2016-05-19 15:35:34 +02:00
Nicolas Lempereur 3b234a23cb [FIX] web: download file and editor firefox bug
When we download a file (as can be done with attachments in Odoo),
firefox is opening the link in current window but cancel the action once
it is aware the resource is to be downloaded.

But this get firefox into a corrupt state for some contenteditable
features, for example document.queryCommandState which is needed for the
editor will after downloading a file throw an error consistently instead
of working as expected.

It can be reproduced on firefox (at least from version 32 to 46) with
the following snippet:
 https://jsfiddle.net/s246u3ay/3/

The issue is probably linked to the following reported issue since 2005:
 https://bugzilla.mozilla.org/show_bug.cgi?id=297494

This commit avoid the bug by opening attachments download links in a new
window instead of the current one.

closes #12109
opw-676918
2016-05-19 14:49:52 +02:00
Jérome Maes dfcbcb02ce [IMP] doc : add python idioms and odoo specific coding guidelines
- add python idioms
- odoo specific guidelines (for ORM, translations, ...) inspired from old guidelines v6.0
- some other best pratices
2016-05-19 14:39:52 +02:00
Jérome Maes b04d6e0ac3 [IMP] doc : expand the coding guidelines
- correct typos
- clarify some points, according to the community comments
- precise the xml notation : record tag vs act_window/menuitem/... tags
- add organization of report, wizard, data/demo, ... (directories and naming conventions)
- new conventions for 'symbols'
- ...

Thanks to @rim-odoo for its grammar extremist review, and @tde-banana-odoo for our long debates about wizard conventions.
2016-05-19 14:39:52 +02:00
qsm-odoo e503fc80df [FIX] web, pos: Lato font assets
A fonts.less file which contains the definition of Lato was created
in saas-11 and placed in the backend assets. It should have replaced
the lato/stylesheet.css in the common assets.

Also adapt point_of_sale assets to use the same file.
2016-05-19 14:36:28 +02:00
Nicolas Martinelli 03c032ecb9 [FIX] web: company logo file extension
The company logo file extension is always '.png', even if the logo is of
another type such as 'jpg' or 'gif'. This is not an issue for decent
browsers, but IE might not display the image under specific
circumstancies, e.g. in combination with nginx.

opw-676836
2016-05-19 13:52:08 +02:00
Martin Trigaux e3523113e0 [FIX] hr_holidays: missing context
Closes #9386, opw-677958
2016-05-19 13:19:35 +02:00
Christophe Simonis f2230136bd [FIX] stock: correct (de)activation of internal picking types in config wizard 2016-05-19 13:00:58 +02:00
Martin Trigaux 1def9911df [FIX] account: duplicate journal should not use the same bank account
There is several override of create and write that assumes that a bank account
is present on only one account (see 4530e5d).
It is very hard to change or remove the account bank once linked to a journal
(see 4a65bc38) so it should not be set in the first place when duplicating a
journal.

opw-676374
2016-05-19 12:14:58 +02:00