Skip to content
Snippets Groups Projects
  1. Jan 10, 2019
    • mgh-odoo's avatar
      [Generic] unaccent search · 9ee9724a
      mgh-odoo authored
      - added unaccent search on POS customer/partner and product
      - moved unaccent from "mail.utils" to "web.utils"
      - added more character to make function accurate
      
      We might use str.normalize(from ES6) but the problem is str.normalize method can not consider some double characters i.e. accented character when normalized it returns 2 normal characters and normalize method returns single character, so here custom unaccent method is used to normalize the string
      
      What we can improve here: We can use str.normalize method and check if string is still have unaccented charaters that we can call our unaccent method but this unaccent method is also working and performing well
      
      closes odoo/odoo#27671
      9ee9724a
  2. Jan 09, 2019
    • XavierDo's avatar
      [FIX] mail: add index on mail.activity create_uid · 80f3eb27
      XavierDo authored
      The activity create_user_id field is now replaced by magic create_uid field.
      Since most of the search are done on this field, create_uid should be indexed as
      create_user_id was.
      
      closes odoo/odoo#30061
      80f3eb27
  3. Jan 10, 2019
    • Robot Odoo's avatar
      [MERGE] web: update bootstrap from 4.1.3 to 4.2.1 · a57503bf
      Robot Odoo authored
      Bootstrap just released a brand new version with new components and new possibilities, which are great to integrate in master.
      
      Note: Unfortunately, this also comes with some bug fixes they did not add in a 4.1.4 version, so there is no clean way to backport them in Odoo 12.0 (so if any is required at some point, we will have to use bootstrap_review.scss or anything else to bug fix).
      
      closes odoo/odoo#29949
      Unverified
      a57503bf
    • XavierDo's avatar
      [FIX] mail: only notify activity assignation on user change · 303220f2
      XavierDo authored
      The current implementatipon of write on mail.activity will
      send a notification to the user every time a write is made
      on user_id.
      
      To avoid to send notification / mail if the user_id is given
      but doesn't change, we can simply filter the records. This
      will also avoid to check assignation rights in this case.
      
      Task: 1905086
      
      closes odoo/odoo#30055
      303220f2
  4. Jan 09, 2019
  5. Jan 08, 2019
    • Martin Geubelle's avatar
      [FIX] test_main_flows: make tour pass without all modules · a55fd329
      Martin Geubelle authored
      With the current test_main_flows dependencies, the tour does not pass in community.
      Since rev. odoo/odoo@32db86e the `extra_trigger` waiting for `payment_method_id` is
      never reached because the onchange who is supposed to display this field hides it
      because there is only one payment method on the journal.
      
      The second payment method is added by the module account_check_printing but we don't
      want to add it in the dependencies because this module is not very common.
      
      Note that this `extra_trigger` was meant to wait for the onchange triggered by the journal
      modification on the 'Register Payment' modal but this modification is not useful as the
      journal is already 'Bank (USD)' by default.
      
      closes odoo/odoo#30023
      a55fd329
  6. Jan 09, 2019
  7. Jan 08, 2019
  8. Jan 07, 2019
  9. Jan 08, 2019
  10. Jan 06, 2019
  11. Jan 05, 2019
  12. Jan 04, 2019
    • Romain Derie's avatar
      [FIX] website_gengo: override of static template was not working · 56243f46
      Romain Derie authored
      The template `website_gengo.web_editor.TranslatorInfoDialog` was not used
      anymore.
      It is supposed to replace the one in `web_editor` module.
      
      Among other things, 29729769 refactored the `web_editor` template to
      contain only the modal body content. The bug might be coming from it.
      
      closes odoo/odoo#29955
      56243f46
    • Romain Derie's avatar
      [FIX] website_*: prevent record to be unpublished on website change · 30ed4c08
      Romain Derie authored
      Before this commit, when changing the website field in a record form view,
      the is_published field would be force to false, ending unpublishing the record
      if it was published.
      
      That behavior was coming from the fact that is_published field is missing from
      the form view. Thus, onchange on website is triggering a recompute server side
      without is_published as the JS framework is not sending the field.
      The ORM is then fallbacking on default Boolean value (False) for is_published
      when sending back the onchange result.
      
      This would only appear on object with 'website.published.multi.mixin' and with
      website_id in the form view.
      
      Replacing website_published by is_published will fix the behavior and has more
      sense has website_published is the 'is_published' state in a website context.
      In the backend, we are not in a website context.
      
      task-1919689
      30ed4c08
Loading