- May 20, 2016
-
-
Martin Trigaux authored
-
- May 19, 2016
-
-
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
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
-
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
-
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
-
-
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
-
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
-
Martin Trigaux authored
Cherry-pick from odoo/documentation-user@d193f7c0
-
Aaron Bohy authored
-
Aaron Bohy authored
Safe imp for a stable version. Better fix could be to send notifications through the bus, but this would be in master.
-
Goffin Simon authored
Used case: -Configure company in EUR, and user in multi-currency -Create a purchase order in USD and confirm it -Click on the smart button "0 invoices" then click on "create" Result before the fix: The system created an invoice in EUR, currency of the company, instead of in USD, currency of the purchase order. Result after the fix: The system created an invoice in USD, the currency of the related purchase order. opw:677568
-
- May 17, 2016
-
-
Denis Ledoux authored
`debit_move_id` and `credit_move_id` of `account.partial.reconcile` must be required. Not having one of them set on this model does not make sense, you cannot have a reconciliation with a debit move but without a credit move, for instance. Databases already having the trouble, having partial reconciliations without either a debit or a credit move, had issues for the computation of the `payment_move_line_ids` compute field, which relied on the fact these fields were supposed to be required. This revision makes a retro-compatibility patch for these databases already having the issue. opw-677709
-
Nicolas Martinelli authored
The left margin of the graph doesn't take into account the width of the maximum Y-axis value. In case the values are high (> 10^7), they are cropped. The fix is to adapt the left margin as a function of the size of the maximum value. opw-676538
-
Nicolas Martinelli authored
In case of a line graph, the values of the Y axis are not formatted as numbers, although they are on the bar graph.
-
Denis Ledoux authored
opw-677589
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Jeremy Kersten authored
-
Christophe Simonis authored
-
Damien Bouvy authored
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
-
Martin Trigaux authored
Apply the same changes from functionnal documentation to dev doc: odoo/documentation-user@4316470
-
Quentin De Paoli authored
-
Nicolas Martinelli authored
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
-
Stanislav Sokolko authored
this commit adds better support in the compatibility layer of the js framework. This is necessary if one wants to follow the official tutorial.
-
Stanislav Sokolko authored
-
Sylvain GARANCHER authored
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
-
Géry Debongnie authored
the enable_button call should have been removed...
-
Géry Debongnie authored
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.
-
Damien Bouvy authored
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.
-
- May 15, 2016
-
-
Odoo Translation Bot authored
-
Odoo Translation Bot authored
-
- May 13, 2016
-
-
Nicolas Lempereur authored
-
Nicolas Lempereur authored
purchase.order have been rewritten with cb01be23 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
-
Christophe Simonis authored
-