Skip to content
Snippets Groups Projects
  1. May 20, 2016
  2. May 19, 2016
    • Nicolas Lempereur's avatar
      [FIX] web: download file and editor firefox bug · 3b234a23
      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
      3b234a23
    • Jérome Maes's avatar
      [IMP] doc : add python idioms and odoo specific coding guidelines · dfcbcb02
      Jérome Maes authored
      - add python idioms
      - odoo specific guidelines (for ORM, translations, ...) inspired from old guidelines v6.0
      - some other best pratices
      dfcbcb02
    • Jérome Maes's avatar
      [IMP] doc : expand the coding guidelines · b04d6e0a
      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.
      b04d6e0a
    • Nicolas Martinelli's avatar
      [FIX] web: company logo file extension · 03c032ec
      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
      03c032ec
    • Martin Trigaux's avatar
      [FIX] account: duplicate journal should not use the same bank account · 1def9911
      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
      1def9911
    • Nicolas Martinelli's avatar
      [FIX] account: statement line amount rounding · 80200333
      Nicolas Martinelli authored
      See comment in code.
      
      opw-676924
      80200333
    • Nicolas Martinelli's avatar
      [FIX] account: sequence of statement · 9365482d
      Nicolas Martinelli authored
      The sequence used in the bank statement lines is not reliable. Indeed,
      several lines might have the same sequence.
      
      opw-676924
      9365482d
    • Goffin Simon's avatar
      [FIX] project_issue: number of issues · c286e2d5
      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
      c286e2d5
  3. May 18, 2016
    • vbh-odoo's avatar
      [FIX] website_gengo: fixed button click and translations · 8acfb0d7
      vbh-odoo authored
      - Fixed linking issue after click on 'Translate' button.
      - Controller added to post terms in gengo
      
      opw-648546
      8acfb0d7
    • Martin Trigaux's avatar
      [FIX] web_editor: serialise translations of html_translate fields · 216d328a
      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
      216d328a
    • Richard Mathot's avatar
      [FIX] website_sale_delivery: reset carrier on cart update · 6c66365b
      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
      6c66365b
    • Martin Trigaux's avatar
      [FIX] doc: white h2 title · 8ce16c3a
      Martin Trigaux authored
      Cherry-pick from odoo/documentation-user@d193f7c0
      8ce16c3a
    • Aaron Bohy's avatar
    • Aaron Bohy's avatar
      [FIX] calendar: don't block UI on slow /calendar/notify · 252bd47f
      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.
      252bd47f
    • Goffin Simon's avatar
      [FIX] account: invoice has not the same currency as the purchase order · 7f1d7c1c
      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
      7f1d7c1c
  4. May 17, 2016
  5. May 15, 2016
  6. May 13, 2016
Loading