- May 24, 2016
-
-
Simon Lejeune authored
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.
-
Christophe Simonis authored
-
Christophe Simonis authored
Revert "[FIX] account: fixed old references to account_extra_report module forgotten during the merge into account" This reverts commit 4f00202f.
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Goffin Simon authored
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
-
- May 23, 2016
-
-
Denis Ledoux authored
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
-
Thibault Delavallée authored
-
Martin Trigaux authored
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.
-
Christophe Simonis authored
-
Cody Kitterman authored
From #12028
-
Nicolas Martinelli authored
In the case of grouped taxes, the taxes would not be applied anymore after commit 0a5b943d opw-678158 opw-678219
-
Nicolas Martinelli authored
If 'Prorata Temporis' is not set, depreciation_date should be the 1st of January of purchase year. opw-677534
-
Martin Trigaux authored
This reverts commit d780f947. 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
-
- May 22, 2016
-
-
Odoo Translation Bot authored
-
Odoo Translation Bot authored
-
- May 20, 2016
-
-
Damien Bouvy authored
opw-676542
-
Martin Trigaux authored
And avoid bug with negative ids to happens in the first place
-
Martin Trigaux authored
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>`
-
Nicolas Lempereur authored
642fea43 updated some models to new API but this was not taken into account into the part of the code this commit fix. opw-677497
-
Leandro Ezequiel Baldi authored
Closes #12110
-
Martin Trigaux authored
-
- May 19, 2016
-
-
Martin Geubelle authored
This `,` at the end creates a tuple and `if (False,)` will be evaluated to True. This leads to invalid `Notification Email`. Hum..
-
Nicolas Lempereur authored
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
-
Jérome Maes authored
- add python idioms - odoo specific guidelines (for ORM, translations, ...) inspired from old guidelines v6.0 - some other best pratices
-
Jérome Maes authored
- 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.
-
Nicolas Martinelli authored
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
-
Martin Trigaux authored
Closes #9386, opw-677958
-
Martin Trigaux authored
There is several override of create and write that assumes that a bank account is present on only one account (see 4530e5d6). 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
-
Goffin Simon authored
Introduced by fac04424
-
Nicolas Martinelli authored
See comment in code. opw-676924
-
Nicolas Martinelli authored
The sequence used in the bank statement lines is not reliable. Indeed, several lines might have the same sequence. opw-676924
-
Martin Geubelle authored
When searching for the action of the form related to the button, the form is not necessarly the direct parent of the button but could be upper in the architecture.
-
Martin Trigaux authored
The widget selection only shows the first 120 results. The selection was most likely set to avoid creating new entries but it can be done with an option tag. This allows to use the search on many2one fields. opw-677908
-
Goffin Simon authored
When no stage has been defined for a project, the new issues are set in an undefined stage(stage_id = False). Then these issues must be counted. opw:676985
-
- May 18, 2016
-
-
Quentin De Paoli authored
[FIX] account: fixed error 'Nonetype has no attribute rounding' on some reconciliation involving secondary currencies but without being all the same
-
vbh-odoo authored
- Fixed linking issue after click on 'Translate' button. - Controller added to post terms in gengo opw-648546
-
Martin Trigaux authored
The html_translate fields (e.g. website_descripton on product.product) were not serialised and the raw value from the web_editor was saved as a translation. This was an issue in case of special characters that may be present in the translation. A translation containing non-breaking space was sent in html (`foo bar`) while lxml converts such characters to unicode (`foo\xa0bar`). When writing a translation, the value is checked against incorrect format using ``` value0 = field.translate(lambda term: None, record[fname]) value1 = field.translate({trans.src: trans.value}.get, value0) value2 = field.translate({trans.value: trans.src}.get, value1) if value2 != value0: raise ValidationError(_("Translation is not valid:\n%s") % trans.value) ``` As value1 is the unicode version of the translation and `trans.value` is the html version of the translation, the last substitution in the callback method was never made and the ValidationError was raised. This commit forces the serialisation through lxml to be sure the compared strings are using the same parser instead of comparing value from summernote and lxml that may be both valid but still different. opw-675767
-
Goffin Simon authored
Used case: If you add a user which has no acces on a model(ex:purchase.order) as follower on a record of this model. When someone responded by email on this record, and when a message is sent on this record, an exception is raised at the connection of the user added as a follower. Fix: To have the rights to read the message, a read notification for this follower must be added to all parents of this message. Closes #11902 opw:676699
-
Richard Mathot authored
It makes no sense to recompute delivery costs at each update of the cart; furthermore, it prevents users that already selected a carrier to remove the last products of their carts This fix is additional to e4e1e571
-