1. 21 Jan, 2019 2 commits
    • Odoo Translation Bot's avatar
      127fdea7
    • Nans Lefebvre's avatar
      [FIX] sale, crm: put the sales overview behind salesteam.manager group · 0d6a796b
      Nans Lefebvre authored
      If a user has no rights on sale, he should not see the sales menuitem
      on the dashboard.
      This is because the report_sales_team, which was set on a menu restricted
      to managers, has been moved to a menu without groups.
      We therefore set the group salesteam.manager directly on report_sales_team
      to have the same rights as before.
      
      Similarly, this same report is visible in the CRM app without manager rights,
      so we put them explicitly on sales_team_menu_team_pipeline.
      
      Also reverts commit 2cdc1cc9 that put the groups
      on the sales root menu.
      It is unnecessary to do so, since when all submenus are hidden to a user,
      then the app icon is automatically hidden to the user.
      This practice allows customisations to put views accessible without any rights
      on that specific app.
      Since the sales.team manager has been put back on the correct dashboard,
      this previous commit is now useless.
      
      opw 1914373
      
      closes odoo/odoo#30390
      0d6a796b
  2. 18 Jan, 2019 1 commit
  3. 21 Jan, 2019 1 commit
  4. 18 Jan, 2019 5 commits
    • Nicolas Martinelli's avatar
      [FIX] sale: attachment name · 0fa969a4
      Nicolas Martinelli authored
      - Create a SO, keep it as draft
      - Click on 'Send by Email'
      
      The name of the attached PDF file contains `_draft`.
      
      This doesn't really make sense anymore, since the SO will be set to
      'Sent' right after sending. Therefore, if sending a second time,
      `_draft` won't be added to the filename.
      
      opw-1930282
      
      closes odoo/odoo#30367
      0fa969a4
    • Nicolas Martinelli's avatar
      [FIX] crm: default CRM team · c15551a3
      Nicolas Martinelli authored
      Keep the default value for the default CRM team (False) since leads are
      not activated by default.
      
      opw-1929489
      
      closes odoo/odoo#30360
      c15551a3
    • Christophe Simonis's avatar
      [FIX] website: update *all* views, not only website ones · d657d645
      Christophe Simonis authored
      closes odoo/odoo#30369
      d657d645
    • Nicolas Martinelli's avatar
      [FIX] account: Journal Items link · 5291b8c1
      Nicolas Martinelli authored
      - Activate debug mode
      - Go to the Accounting Dashboard
      - In Vendor Bills, click on 'Journal Items'
      
      A crash occurs because of the concatenation of a `bool` and `str`.
      
      In this case, the `action['help']` is `False`.
      
      closes odoo/odoo#30351
      5291b8c1
    • Lucas Perais (lpe)'s avatar
      [FIX] base: res_users form message partner active correct condition · 897834f4
      Lucas Perais (lpe) authored
      Before this commit, the condition and the field on which it applied were wrong
      That is, when both the user and the partner were inactive, the message saying that
      the partner was still active displayed anyway
      
      After this commit, we show the message only when the user is inactive but its
      directly related partner is still active
      
      OPW 1928247
      
      closes odoo/odoo#30337
      897834f4
  5. 17 Jan, 2019 1 commit
  6. 18 Jan, 2019 3 commits
  7. 17 Jan, 2019 18 commits
    • Christophe Simonis's avatar
      4aa153e6
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
      17adccd9
    • Julien (juc) Castiaux's avatar
      [FIX] web_editor: save less file · 71c4c139
      Julien (juc) Castiaux authored
      Modifying less files and saving them using the web editor can raise
      and error. The error is due to the way odoo save the modified file.
      
      It extends the view containing the URL of the file by filtering views
      related to the xml bundle id and keeping those that have the said URL
      in their content.
      
      This lookup fails to give just one result in case there are multiple
      file containing the said URL. This fix change the filter from a
      bare `if url in view.arch` to a correct xpath lookup.
      
      The "/web/static/src/variables.less" less file was one of the
      problematic files.
      
      opw-1889794
      
      closes odoo/odoo#30186
      71c4c139
    • Nans Lefebvre's avatar
      [FIX] base: disable prefetching during module uninstall #2 · ba41c3c1
      Nans Lefebvre authored
      Create any module that inherit 'res.lang'.
      Define any new field that is added with that inheritance.
      Install that module. Then try to uninstall it. Traceback ensues.
      
      When trying to write 'state': 'uninstalled' on the module,
      the prefetching tries to read a column that has been deleted
      by the _module_data_uninstall.
      
      opw 1917369
      
      closes odoo/odoo#30176
      ba41c3c1
    • Jorge Pinna Puissant's avatar
      [FIX] payment: Acquired deployed in production · e6b5a0e2
      Jorge Pinna Puissant authored
      Before this commit, in the config bar (Sales or Invoicing) when you configure a payment
      acquirer,  it was deployed in test mode, and not in production mode. Note that, the config
      bar wizard asks for the production credentials.
      
      Now, when you configure a payment acquirer, from the config bar, the acquirer is deployed
      directly in production mode.
      
      opw-1918412
      
      closes odoo/odoo#30319
      e6b5a0e2
    • Denis Ledoux's avatar
      [FIX] res_partner: a partner is portal if he has no employee users · 8865d631
      Denis Ledoux authored
      Currently, a partner is considered a portal
      if he has no users
      or
      if at least one of his users is portal.
      
      This causes problems if an employee has two users,
      one portal, one employee
      and gets notified in a thread (e.g. @ Marc demo):
      The email sent won't contain the action buttons (e.g. view opportunity)
      because the employee is considered as portal.
      
      A partner of an employee can have multiple users
      linked if at some point two partners were merged,
      and the partners had each a user, one a portal
      and the other an employee.
      
      This revision changes this behavior,
      to consider a user as not portal (employee)
      if one of its users is not a portal (an employee).
      
      This is uniform with to the behavior of the
      `share` field of `res.users`,
      which is `True` when the user is part of the group employee.
      ```
      user.share = not user.has_group('base.group_user')
      ```
      
      opw-1914103
      
      closes odoo/odoo#30314
      8865d631
    • Nicolas Martinelli's avatar
      [FIX] stock_account: ctx after group by · 4da16124
      Nicolas Martinelli authored
      - Set valuation to FIFO
      - Make a PO for a product
      - Validate the picking
      - Execute the Inventory Valuation report
      - Apply group by Category
      - Click on the 'Valuation' info button
      
      A traceback occurs because of the usual `group_by` context key which is
      kept.
      
      opw-1918915
      
      closes odoo/odoo#30313
      4da16124
    • Lucas Perais (lpe)'s avatar
      [FIX] crm: test lead from email needs second company · 0dd38282
      Lucas Perais (lpe) authored
      Because of a742813c36fc8cdf4e41c72e00944b6901be6017.
      Apparently when crm is installed alone, there is only one company
      
      closes odoo/odoo#30312
      0dd38282
    • wan's avatar
      [FIX] account: journal dashboard graph wrong value · 50bae1c0
      wan authored
      OPW 1918926
      
      Current behavior:
        The sql query groups by date,id in a intermediary table instead of the result. This allows to get data in the wrong order if the statements were not produced sequentially. The fill values are computed in the wrong order and may override correct values.
      
      Desired behavior:
        There is no override of the values correctly computed.
      
      closes odoo/odoo#29936
      50bae1c0
    • Lucas Perais (lpe)'s avatar
      [FIX] web: pivot correct context after reload · 187c32c2
      Lucas Perais (lpe) authored
      Open a pivot view with default filters automatically activating
      Disable those filters
      
      Change the groupBys on the rows and cols of the pivot
      
      Save your result as a favorite filter
      
      Before this commit, the filter did not contain the context information for columns groupby
      Also, the search view did not exploit the context of the new filter as it should be
      
      After this commit, the flow works as expected
      
      OPW 1913732
      
      closes odoo/odoo#29415
      187c32c2
    • Jorge Pinna Puissant's avatar
      [FIX] hr_timesheet: task view in mobile · 91fb1551
      Jorge Pinna Puissant authored
      Before this commit, there were not specific view for the mobile devices.
      The analytic account views were used.
      
      Now, there are specifics views for the timesheet in the tasks.
      
      opw-1913371
      
      closes odoo/odoo#30309
      91fb1551
    • Hardik Prajapati's avatar
      [FIX] mrp: Barcode on Manufacturing Order Report · 81c09075
      Hardik Prajapati authored
      opw-1925956
      
      closes odoo/odoo#30304
      81c09075
    • Nans Lefebvre's avatar
      [FIX] web: remove the report_layout from studio selectable widgets · 01cd8779
      Nans Lefebvre authored
      Open studio to modify the widget displaying a relational field.
      The report_layout widget can be selected, say, to display payment terms.
      Obviously it doesn't make sense.
      
      We remove its supported field, as the field is not generic
      (indeed there is only one use for it in the codebase).
      
      opw 1919369
      
      closes odoo/odoo#30303
      01cd8779
    • Lucas Perais (lpe)'s avatar
      [FIX] base: merge contacts linked to by an o2m field with caps · 15cd94b7
      Lucas Perais (lpe) authored
      Define a field on a model as:
      - o2m to res.partner
      - the field's column, hence its name, has capital letters in it
      (studio does that)
      
      create two objects of that class, each one linked to a different partner with the new o2m
      
      merge the partners
      
      Before this commit, the object linked to the second partner, was deleted
      This was because merge partner sql requests did not quote the column name
      
      After this commit, the second object still exists
      
      OPW 1925060
      
      closes odoo/odoo#30300
      15cd94b7
    • qsm-odoo's avatar
      [FIX] web_tour: ensure Tip template is loaded · 606bae9e
      qsm-odoo authored
      The 500 page has `session.is_frontend === undefined` as it has its own
      whole HTML template.
      In that case, the ajax.loadXML is not done, making the tour crash when
      visiting a 500 error page.
      
      This is needed for #29957 that has a test tour on 500 error page.
      
      closes odoo/odoo#30240
      606bae9e
    • Lucas Perais (lpe)'s avatar
      [FIX] base: merge contacts linked to by an o2m field with caps · ba39efdf
      Lucas Perais (lpe) authored
      Define a field on a model as:
      - o2m to res.partner
      - the field's column, hence its name, has capital letters in it
      (studio does that)
      
      create two objects of that class, each one linked to a different partner with the new o2m
      
      merge the partners
      
      Before this commit, the object linked to the second partner, was deleted
      This was because merge partner sql requests did not quote the column name
      
      After this commit, the second object still exists
      
      This commit is tested in v12.0 with PR #30300 only. In v10.0 it is not testable as
      the model concerned is in CRM, and that no new fields in business modules can be added in stable
      
      OPW 1925060
      
      closes odoo/odoo#30301
      ba39efdf
  8. 16 Jan, 2019 6 commits
  9. 15 Jan, 2019 3 commits