Skip to content
Snippets Groups Projects
  1. Jun 05, 2018
  2. Jun 01, 2018
  3. May 31, 2018
  4. May 30, 2018
  5. May 28, 2018
    • qsm-odoo's avatar
      [FIX] web_editor: properly save a t-field in a t-ignore environment · ea0fcd52
      qsm-odoo authored
      When a t-field element was in an editable t-ignore environement,
      modifying it was leaving the edit mode style attached to it. This
      was because of:
      1) When the t-field element was changed, it was marked dirty but
         also its parent editable container. Fixing this, only solves
         the case where only the t-field (and not one of its neighbors)
         is changed but it was worth fixing anyway.
      2) Before saving an element, the potential 'o_editable' and
         summernote classes were not removed of its descendant and were
         thus saved.
      
      Bug found with task-38069, merged in stable as it might occur there
      too.
      ea0fcd52
  6. May 24, 2018
    • Christophe Simonis's avatar
      Revert "[FIX] mass_mailing: unsubscribe not working in multi lang" · 34f567dd
      Christophe Simonis authored
      commit a3ab33f2 introduced invalid code
      34f567dd
    • Jérome Maes's avatar
      [FIX] purchase: correct product cost in reporting · 919a1af9
      Jérome Maes authored
      product.product inheritS from product.template, and they both
      define the 'standard_price' field, but implement it differently;
       - product: the field is a company dependent one (so non stored)
       - template: the field is a computed one based on tis variants
      
      For the first case, since the field is not stored in database, when
      doing SQL query, we have to get the value from the table ir_property.
      That is what purchase report does, but instead of searching on resource
      'product.product', it does it on 'product.template'. There are
      obviously no entries in ir_property table for 'standard_price' field
      on product template. As consequence, the "product value" (cost)
      is always null in purchase reporting.
      This commit fixes that by modifying SQL query to get the good
      value from ir_property table.
      919a1af9
    • Yannick Tivisse's avatar
      [IMP] base: Add support for private addresses · 28179bc8
      Yannick Tivisse authored
      This is a backport of commit https://github.com/odoo/odoo/commit/2f15a5fa647d55df36c9019df467802a3aa9b4e3
      
      Purpose
      =======
      
      Add the possibility to create private addresses, only accessible for a subset
      of users.
      
      Specification
      =============
      
      - Add a new 'Private' partner type
      - Add a res.groups in base 'Access to Private Addresses'
      - Add ir.rules for the following behavior:
          - Every employees/internal users can read non-private addresses
          - Only users in group_private_addresses can access private addresses
      - Add in base a simplified form view for private addresses
      
      The following points won't be backported:
      - A HR Officer is automatically granted in group_private_addresses
      - Use the simplified form view to open the address_home_id form on employees
      That's because it requires to update 'base' to make it work. If a user only
      update 'hr', this will break his instance while 'base' isn't updated.
      
      But these modifications can be applied manually quite easily.
      28179bc8
    • Goffin Simon's avatar
      [FIX] mass_mailing: unsubscribe not working in multi lang · a3ab33f2
      Goffin Simon authored
      When installing the website with a lang  different than the one set
      on the user, the button unsubscribe in the mass mailing snippets
      didn't work because the unsubscribe link contains the code of the
      language. The function send_get_email_dict in model mail.mail didn't
      expect this behavior and so couldn't set the right unsubscribe link
      in the mail.
      
      opw:1850696
      a3ab33f2
  7. May 18, 2018
  8. May 17, 2018
    • Fabien Meghazi's avatar
      [FIX] server: fix support for systemd socket activation in threaded server · 866d1e71
      Fabien Meghazi authored
      This patches fixes the untested and broken draft of inetd and systemd
      activation support in the threaded server.
      
      This patch also fixes the loss of the process environment in the
      `_reexec()` function when Odoo is respawning during the following events:
      
          - SIGHUP signal is received
          - one click install has been triggered
          - code reload needed when using `--dev=reload`
      866d1e71
    • Lucas Perais (lpe)'s avatar
      [FIX] l10n_fr_fec: EcritureLib should not be empty · cd26eb8e
      Lucas Perais (lpe) authored
      Make an account move with two move lines.
      In those lines' label, just hit the space bar, and post your entry.
      
      Now, get the FEC report.
      
      Before this commit, the EcritureLib field was empty
      
      After, it has the value '/'
      
      closes #24734
      cd26eb8e
  9. May 16, 2018
  10. May 15, 2018
    • RomainLibert's avatar
      [FIX] event: fix bug with users · 19878d01
      RomainLibert authored
      We need to fix a problem with the users where someone might get
      informations on registrations.
      19878d01
    • Nicolas Lempereur's avatar
      [FIX] hr_recruitment: job stages choosen manually · c39d40f9
      Nicolas Lempereur authored
      In 9.0, stages of a job position in recruitment are not share by
      default, there is a "New" stage and existing stages can be added in the
      form view (since 780f46ae).
      
      When creating a job position, the "New" is not working with the given
      widget type.
      
      This commit doesn't show stages in the form view until the record is
      created.
      
      opw-1839217
      closes #24706
      c39d40f9
  11. May 14, 2018
    • Christophe Simonis's avatar
      [FIX] website: correct GeoIP Legacy compatibility · 04508683
      Christophe Simonis authored
      Attribute is different for country and continent objects.
      04508683
    • Denis Ledoux's avatar
      [FIX] mass_mailing: force to not use a template for the rendering · e48767fe
      Denis Ledoux authored
      If the user configures a default `template_id` for
      the `mail.compose.message`,
      this template was used by the mass mailing to render the email,
      and, among others,
      it therefore used the `email_to` of this email template,
      to render the recipients,
      and it was configured empty or something else than `object.id`,
      it did not used the `active_ids` passed in the context to the
      `mail.compose.message` `create` call to compute the correct
      recipients
      
      To reproduce:
       - In developer mode (?debug)
       - Open the full mail compose message
         e.g. in app sales, open a so, hit new message,
         and hit the button to open the full message composer
       - Set the template to the quotation template is not there already
       - In the debug menu of the dialog, View > Set defaults,
       - Click the radio button to all users, and the default to Use template = ...
       - Then, try to send a mass mailing. It will fail because it cannot
         compute the `email_to` values correctly because the `email_to`
         of the quotation template is empty.
      
      opw-1840287
      e48767fe
  12. May 11, 2018
  13. May 09, 2018
    • Christophe Simonis's avatar
      [FIX] website: GeoIP Legacy compatibility · 4431c8c8
      Christophe Simonis authored
      Some IPs (like google-proxy ones) are not bound to a specific country.
      Legacy Database used to set country_code to 'EU' for these one. geoip2,
      on contrary, does not set the country. Read information from `continent`
      attribute in this case.
      
      opw-1844888
      4431c8c8
  14. May 07, 2018
  15. May 04, 2018
    • Olivier Colson's avatar
      [FIX] account: use company currency in _compute_matched_percentage in case no... · d13ce05c
      Olivier Colson authored
      [FIX] account: use company currency in _compute_matched_percentage in case no currency is set on account.move
      
      When a move or move line is supposed to use the company currency, its currency_id field is empty. _compute_matched_percentage did not take this into account, causing the rounding method to sometimes be called with a precision equal to False, resulting in erronous and weird behavior (0 was considered different from 0, causing a division by zero in the following condition).
      d13ce05c
  16. May 03, 2018
    • Nicolas Lempereur's avatar
      [FIX] web: don't change page before saving · f12daec1
      Nicolas Lempereur authored
      When we edit a list view and change page before the change has been
      savec, the saving and page changing will be done concurrently thus
      possibly causing an error if the page is changed before the saved is
      finished: the save will try to modify the page that is no more
      displayed.
      
      In this change, the list view editable wait for the saving to be
      finished before reloading its content.
      
      note: for 9.0 up to saas-15
      
      opw-1839149
      closes #24471
      f12daec1
  17. May 01, 2018
  18. Apr 27, 2018
    • qsm-odoo's avatar
      [FIX] web_editor: update summernote copy-paste feature · ce6f8632
      qsm-odoo authored
      The copy-paste feature of summernote was messy and led most of the time
      to breaking the template you were trying to edit. While it is difficult
      to solve as it mostly comes from the lib itself and that the lib is in
      a complicated state as Odoo had to overridde part of its internal code
      for its own purposes, this commit hopes to solve the problem by updating
      only the copy-paste feature to the latest summernote version.
      
      Of course, as summernote changed a lot meanwhile, it was not possible to
      just take the up-to-date summernote file. This commit refactores the
      up-to-date summernote clipboard code so that it fits the old summernote
      version Odoo is using.
      
      Note: the main problems occurred while using Windows/Mac and not Linux.
      
      opw-1837818
      ce6f8632
  19. Apr 26, 2018
  20. Apr 23, 2018
  21. Apr 19, 2018
  22. Apr 17, 2018
    • Alexandre Kühn's avatar
      [FIX] board,web: edit custom views in place · cf163d19
      Alexandre Kühn authored
      Before this commit, whenever we do an operation on any of these custom views,
      such as folding it, the custom view was saved by creating a new one.
      
      This behaviour comes from a lost feature to undo operations on custom views.
      Since we do not have this feature anymore, it makes no sense to create new
      custom views on save, instead of applying the changes in place.
      
      With this commit, custom views are edited in place.
      
      Fixes #23712
      cf163d19
    • Aaron Bohy's avatar
      [FIX] base: export translations for added terms · 74e208ea
      Aaron Bohy authored
      in commit f27e86bd
      74e208ea
    • tgroutars's avatar
      [FIX] base: no crash when setting wrong relation to m2m · f27e86bd
      tgroutars authored
      Before this rev., in the ir.model.fields form view, it crashed
      when the user specified an invalid model name as a relation for
      fields of type many2many (the onchange crashed). This rev. displays
      a warning instead.
      
      opw 1837401
      f27e86bd
  23. Apr 16, 2018
    • chirag's avatar
      [FIX] purchase: pickings stat button visibility · 941ddaee
      chirag authored
      When you create a purchase order for a product of service type, the
      picking stat button is displayed but there's no linked pickings. When
      clicking on the stat button, all pickings were displayed, which is
      wrong.
      
      Issue:#9181
      Task:#1817421
      941ddaee
Loading