Skip to content
Snippets Groups Projects
  1. Feb 04, 2020
    • Xavier-Do's avatar
      [IMP] core: rename upgrades-paths to upgrade-path · 9c26d4d8
      Xavier-Do authored
      
      Since this option is soon to be used, this rename is a last tweek
      to make it more logical to use since it will point to a single
      upgrade dir most of the time.
      
      closes odoo/odoo#44593
      
      X-original-commit: 1c8e2809
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      9c26d4d8
    • Olivier Dony's avatar
      [FIX] base_setup: show demo data button only in debug mode · 39018e75
      Olivier Dony authored
      During the port to 13.0 and the new Settings dashboard,
      the "Load demo data" button visibility condition was reversed.
      
      Cfr #34290 or https://github.com/odoo/odoo/pull/34290/files#diff-e5df7b873d03867c9527da957b762802L131
      
      
      
      closes odoo/odoo#44587
      
      X-original-commit: 61b7d537
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      39018e75
    • Odoo's Mergebot's avatar
      [IMP] website_blog: improve onboarding · fdba9a87
      Odoo's Mergebot authored
      
      The creation of a new blog post is noisy.
      The user is disturbed with colors (purple box, blue borders, etc).
      
      task-2144335
      
      closes odoo/odoo#43692
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      fdba9a87
    • Romain Derie's avatar
      [IMP] website: allow user to change cover color · 2b0e88a6
      Romain Derie authored
      Before this commit, the covers from event & blog, which shares the same
      template, would be set a fixed bg-primary color which couldn't be
      changed.
      
      This commit adds the possibility to change that bg color.
      
      task-2144335
      2b0e88a6
    • Romain Derie's avatar
      [IMP] website: make cover_properties a mixin field · 4eb2aeb8
      Romain Derie authored
      Next commit will add new cover properties entries for the bg color.
      Still, we want a default `bg-primary` class. Instead of addind 3 new default
      value in existing cover_property fields, the chance is taken to make a mixin
      out of that field to avoid code duplication.
      
      task-2144335
      4eb2aeb8
    • Katherine Zaoral's avatar
      [FIX] account: be able to found the proper transfer account · d0cbd2a0
      Katherine Zaoral authored
      
      Properly set the transfer account in the company taking account the accounts defined in th company domain.  We found this error because in l10n_ar module we have 3 chart of accounts based on the company AFIP responsability which actually have same transfer_account_code_prefix. For that reason it was setting a transfer account to the company which is not belongs to the current company.
      
      closes odoo/odoo#44586
      
      X-original-commit: d3822883
      Signed-off-by: default avatarJosse Colpaert <jco@openerp.com>
      d0cbd2a0
    • Debauche Stéphane's avatar
      [FIX] im_livechat: add missing dependency to livechat widget · e4e84196
      Debauche Stéphane authored
      
      Bug
      ===
      A dependecy is missing "lazyloader.js"
      
      Task #2118959
      opw-2188615
      
      closes odoo/odoo#44577
      
      X-original-commit: ea787bec
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      e4e84196
    • aab-odoo's avatar
      [FIX] stock: already defined test module · 7de76891
      aab-odoo authored
      
      When there are two modules with the same name, an error is thrown
      and only one of them is executed.
      
      closes odoo/odoo#44573
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      7de76891
    • Romain Derie's avatar
      8fc61fd2
    • Jeremy Kersten's avatar
      [IMP] website_blog: activate cover snippet on edit mode enter · 537644ec
      Jeremy Kersten authored
      As this is the first thing you want to do when creating a blog, it will ease
      the onboarding.
      
      task-2144335
      537644ec
    • Swapnesh Shah's avatar
      [FIX] account: Set newly created template · 5706ff62
      Swapnesh Shah authored
      
      Before this commit, Creating New Template from "Send Invoice" wizard doesn't update template_id on the Wizard.
      
      In this commit, We write newly created template_id on the wizard.
      
      closes odoo/odoo#44561
      
      X-original-commit: 454e6ed9
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      5706ff62
    • Swapnesh Shah's avatar
      [FIX] account: Use current date as fallback to convert currency · c3151dae
      Swapnesh Shah authored
      
      Fixes #43705
      Before this commit, There will be tracback on converting currecy if there is not date on tax line.
      
      Now we use current date to as fallback to convert currency.
      
      closes odoo/odoo#44559
      
      X-original-commit: 2b88d71c
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      c3151dae
    • Martin Trigaux's avatar
      [IMP] bus: unescape notification message · d11ee780
      Martin Trigaux authored
      
      The title of notification is the author name escaped (for security
      reasons).
      
         if (message.hasAuthor()) {
             title = _.escape(message.getAuthorName());
         }
      
      When forwarded to the system notification, it does not need to be
      escaped though, as the system notification is not HTML based.
      
      Without this patch, a user named "Bob's friend" sending a message was
      creating a notification with the title "Bob&#x27;s friend"
      
      Unescaping the notification body just in case but the HTML of the body
      in a mail.messages should be stripped by _notifyIncomingMessage.
      Unescaping will just ignored unescaped characters and should do
      nothing on messages not escaped.
      
      Fixes odoo/odoo#24846
      
      closes odoo/odoo#44550
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      d11ee780
    • Odoo's Mergebot's avatar
      [MERGE] web_studio: model configurator · d64bf7e6
      Odoo's Mergebot authored
      
      Improvements for custom models and some default behaviours
      linked to the Studio model configurator (Enterprise task).
      
      In a nutshell:
      - mark the default `x_name` field of a custom model as 'to be copied'
      - improvement for kanban views that makes it easier to user with
        custom models
      
      The interesting part is in the Enterprise `web_studio` module.
      
      Task 2091654
      Enterprise PR: odoo/enterprise#7326
      
      closes odoo/odoo#42055
      
      Related: odoo/enterprise#7326
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      d64bf7e6
    • Damien Bouvy's avatar
      [IMP] base: make name of custom models `copied` by default · c2fccc91
      Damien Bouvy authored
      Copying a custom model's record seems pointless by default, since
      no field is actually copied.
      
      It makes sense to copy at least the `x_name` field, to make it clear
      to the user that the system understood it was duplicating something
      and not just creating something entirely new.
      c2fccc91
    • Damien Bouvy's avatar
      [IMP] web: kanban content container · 18e06fa9
      Damien Bouvy authored
      The 'new' (read: the classes not in the 'compatibility layer section')
      classes of the kanban views did not allow to cleanly separate an image
      header from a content container.
      
      This commit adds such a container, allowing a very simple layout that
      should work all the time for a typical 'card with left image and right
      content layout':
      ```xml
      <div class="o_kanban_record oe_kanban_global_click o_kanban_record_has_image_fill">
        <field class="o_kanban_image_fill_left" name="image_128"
               widget="image"
               options="{'zoom': true, 'background': true, 'preventClicks': false}"/>
        <div class="o_kanban_record_details">
          <div class="o_kanban_record_top">
            <div class="o_kanban_record_headings">
              <strong class="o_kanban_record_title">
                <field name="x_name"/>
              </strong>
            </div>
          </div>
          <div class="o_kanban_record_body">
            <!-- some fields here (e.g. tags,...) -->
          </div>
          <div class="o_kanban_record_bottom">
            <div class="oe_kanban_bottom_left">
              <!-- some fields here (e.g. kanban status,...) -->
            </div>
            <div class="oe_kanban_bottom_right">
              <!-- some fields here (e.g. user image,...)-->
            </div>
          </div>
        </div>
      </div>
      ```
      
      Before this commit, the absence of a container for the right side meant
      that the top/body/bottom were flex-growed in a flex-direction: row
      element, appearing as 3 columns instead of rows.
      18e06fa9
    • Damien Bouvy's avatar
      [IMP] web: allow background-style images for custom models · ea4c9347
      Damien Bouvy authored
      The `FieldBinaryImage` assumes that the image mixin is used to manage
      its fields - this is mostly true, until you use custom fields.
      
      This commit makes using the 'background' option of the Image widget
      possible by fallbacking the thumbnail field's name to the name of
      the field itself instead of `image_128` when we're dealing with a custom
      field.
      ea4c9347
    • Nicolas Martinelli's avatar
      [FIX] purchase: vendor reference · 411dd85a
      Nicolas Martinelli authored
      
      - Create a product A
        MTO, Buy
        Add a supplier S1 and set a specific reference
      - Create a product B
        MTO, Buy
        Add a supplier S2 and set a specific reference
      - Create a SO with A & B, confirm
      - 2 RFQ are created
      
      The first RFQ is created with the correct reference, but not the second
      one.
      
      This is because `display_name` depends on context keys: it is computed
      once for both products with `partner_id` set as `S1`, while it should be
      recomputed for product B with `partner_id` set as `S2`.
      
      In order to avoid this, we use `with_prefetch()` to avoid reusing the
      prefetched value.
      
      opw-2176638
      
      closes odoo/odoo#44564
      
      X-original-commit: d96c1910be8f242455de9b443fc9db82155b4dd1
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      411dd85a
    • Victor Feyens's avatar
      [REM] web_diagram: remaining files · 1ed07959
      Victor Feyens authored
      
      The web_diagram module was removed in saas-13.1,
      along with the diagram view support but some translation files were
      brought back by forwardports.
      
      closes odoo/odoo#44563
      
      X-original-commit: 3f50601736b23dac78720d24d5b67bf6b94f5f43
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      1ed07959
    • Nicolas Martinelli's avatar
      [FIX] l10n_ch: ISR with partial payment · a02a4b11
      Nicolas Martinelli authored
      
      - Create an invoice for 1000
      - Make a partial payment (e.g. cash) for 250
      - Print the ISR
      
      The ISR contains an amount of 1000 (total amount), while it should be
      750 (amount left to pay).
      
      opw-2180538
      
      closes odoo/odoo#44552
      
      X-original-commit: 421bbcd5
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      a02a4b11
    • Jason Van Malder's avatar
      [FIX] web_editor: replace root style/class attrib · 5b252215
      Jason Van Malder authored
      
      Issue
      
          - Install eLearning
          - Edit the header > change image
          - Save
      
          Image not changed
      
      Cause
      
          We do not take new style/class attrib in account in
          replace_arch_section.
      
      Solution
      
          Take them in account
      
      OPW-2122947
      OPW-2182109
      
      closes odoo/odoo#44541
      
      X-original-commit: 8579c0ca
      Signed-off-by: default avatarJason Van Malder (jvm) <jvm@odoo.com>
      5b252215
  2. Feb 03, 2020
  3. Jan 31, 2020
  4. Jan 29, 2020
    • Thibault Francois's avatar
      [FIX] account: take into account force_company for default journal · 08dfa9ff
      Thibault Francois authored
      The default journal depends on the company define in the context or the company in the environment
      In case of online signature/payment of a SO in a different company then the public user
      The company will be wrong and the journal_id as well
      It lead to a fail of the payment since the payment could not be reconciled with the invoices
      
      This is happening because the force_company is not taken into account for the default journal
      
      This commit take the force_company into account, it take the precedences on the default_company
      
      closes odoo/odoo#44238
      
      X-original-commit: 8158e286
      Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
      08dfa9ff
  5. Feb 03, 2020
    • Jeremy Kersten's avatar
      [IMP] hr_holidays: improve display name · e3fa264d
      Jeremy Kersten authored
      
      Before this commit, the date range was not known without open the record in backend.
      It is really painfull to don't know when a guy of your team ping you on a new leave
      the date from the current leave. (today ? next week ? ...)
      
      Now we have the date into the name_get and so the subject of the email.
      
      task-2001439
      
      Nothing related to next activity ;) but idea was the same.
      
      closes odoo/odoo#44462
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      e3fa264d
    • Denis Ledoux's avatar
      [IMP] base_automation, web: give possibility to disable/edit failing automated actions · 355cb456
      Denis Ledoux authored
      
      If an automated action raises an exception, in the traceback modal:
       - For admins, display Disable & Edit automated action buttons
         to be able to directly know with wihch automated action the error occurred,
         and to give the possibility to edit or disable it quickly,
       - For regular users, just add a paragraph to tell with which automated action the error occurred,
         so they can give this useful information to their administrator
      
      This is specially useful for databases which have just been
      upgraded to a newer version, and for which the server action
      is failing because its code is no longer supported.
      
      closes odoo/odoo#44513
      
      X-original-commit: 8f3940c132bbbc99e47fa3f0cba0e768159d9af2
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      355cb456
    • jbm-odoo's avatar
      [FIX] stock_account: Avoid divide by 0 · dc1402c7
      jbm-odoo authored
      
      closes odoo/odoo#43188
      
      Related: odoo/enterprise#7676
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      dc1402c7
    • jbm-odoo's avatar
      [IMP] stock: Add context key to avoid send sms · 620730ed
      jbm-odoo authored
      In stock, before sending an sms, we check if there aren't the key
      'skip_sms' in the context. It is useful, for example, in fsm
      application.
      
      TaskID: 2081191
      620730ed
  6. Jan 31, 2020
    • Lucas Lefèvre's avatar
      [IMP] hr_timesheet, sale_timesheet: Set task analytic account · ac8c30be
      Lucas Lefèvre authored
      
      Purpose
      =======
      
      Currently, it is only possible to set an Analytic Account for a whole Project, there
      is no distinction by task. However, if the user has 1 task per customer, he cannot
      track the costs and revenues for that specific customer easily. He has to manually
      change the AA of the timesheets' analytic lines. An option would be to set a
      different AA on the SO generating the task, but the AA of the project takes over
      anyway.
      
      Specifications
      ==============
      
      If the user sets an AA on the SO, it should bypass the one set on the project
      Add an AA field below the Email cc one on tasks in debug mode
      - should be related to the AA field from the SO
      - it should also bypass the AA set on the project
      All the timesheets from this task should be related to the AA field set on the SO/Task
      
      closes odoo/odoo#40844
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      ac8c30be
  7. Feb 03, 2020
Loading