Skip to content
Snippets Groups Projects
  1. Jan 20, 2020
    • Simon Lejeune's avatar
      [REF] stock: move line: some guidelines · b9334c53
      Simon Lejeune authored
      - move all the constrains at the same place, make sure they are private
      - move all the onchanges at the same place, make sure they are private
      - move `_get_similar_move_lines` helper at the bottom of the file with
        the other helpers
      b9334c53
    • Rémy Voet (ryv)'s avatar
      [REF] stock: clean imports · 177a479c
      Rémy Voet (ryv) authored
      Clean imports of the main stock module:
      - Remove unsued import
      - Follow odoo guidelines
      - Sort them
      177a479c
    • Rémy Voet (ryv)'s avatar
      [REM] stock: remove dead-code · 53ebf749
      Rémy Voet (ryv) authored
      Remove dead code of the main stock module:
       - Unused actions
       - Unused private methods
       - Unused helper methods test
      53ebf749
    • Raphael Collet's avatar
      [FIX] expression: performance of search on one2many fields · 238e7436
      Raphael Collet authored
      
      We optimize the search on domains like `[('line_ids', 'in', ids)]`.
      The condition is rewritten `('id', 'in', ids1)` where `ids1` is the
      result of
      
          SELECT <many2one_field> FROM <comodel_table> WHERE id IN <ids>
      
      The issue is that the latter potentially returns many duplicate values.
      The fix consists in having as few duplicates as possible in `ids1`.
      
      Note that domains like `[('line_ids.foo', '=', 42)]` implicitly benefit
      from the optimization, as they are rewritten as the one above with
      
          ids = comodel.search([('foo', '=', 42)]).ids
      
      closes odoo/odoo#43574
      
      X-original-commit: a13c05fa
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      238e7436
    • Antoine Prieels's avatar
      [FIX] point_of_sale: Lost payment info · 029ee8dc
      Antoine Prieels authored
      
      Payment information for terminal transactions (payment_status,
      transaction_id & card_type) was lost when going back to the floor
      plan in pos_restaurant. Validated transactions were then considered as
      not processed yet.
      
      closes odoo/odoo#43550
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      029ee8dc
    • Sébastien Theys's avatar
      [FIX] mail: reintroduce `fatype` for message status "envelope" · 7588e3a2
      Sébastien Theys authored
      
      This was incorrectly reverted during 116057b26e71db4692280463669f3e80d813ddcc
      
      closes odoo/odoo#43564
      
      X-original-commit: 73e3afca18fae954552d8cbecb6afddf1b08539b
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      7588e3a2
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] account: avoid base being included twice in group · a1c52212
      Andrea Grazioso (agr-odoo) authored
      
      Create multiple tax and assign them to the same tax group.
      Create an invoice, with two lines, each one with one tax of the group.
      Save and click on "Preview" or print invoice.
      
      The tax group will be reported applied on just the first line
      This append because of 4d62a94a.
      Reverting commit to restore the former behavior in which the tax base
      amount is added for every line in which the tax group component is
      found. While this other behavior could be an issue for some user the
      behavior is more consistent accounting-wise and the template could easily
      be changed to adapt to user needs.
      
      opw-2170069
      
      closes odoo/odoo#43553
      
      X-original-commit: 43de214b
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      a1c52212
    • Damien Bouvy's avatar
      [FIX] product: incorrect super call · 4c427de6
      Damien Bouvy authored
      
      Unfortunately caught in a really wide try/except clause where it was
      completely silenced, causing a lot of stuff to be archived instead of
      deleted.
      
      closes odoo/odoo#43543
      
      X-original-commit: cfa29936
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      4c427de6
    • qsm-odoo's avatar
      [REF] web_editor: review left-panel unknown dependency behavior · e927d1e8
      qsm-odoo authored
      
      Left panel widgets can define the widgets they depend on to be visible.
      Up to now, if such a dependency was defined but that the related widget
      was not found, the dependency was considered as not met. Now, it acts
      as if that particular dependency was not defined at all.
      
      This is useful for controlling the visibility of a generic option in the
      case of a specific snippet without having to duplicate and restrict that
      generic option.
      
      E.g. There is a generic "color" option on all snippets. For my snippet
      "hello" I only want that generic "color" option to be visible if my
      "world" option is enabled. I then add `data-dependencies="world"` on the
      generic "color" option. In the case, any other snippet than "hello" is
      used, since the "world" option does not exist there, the "color" option
      acts as if it had no dependency.
      
      closes odoo/odoo#43511
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      e927d1e8
  2. Jan 14, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] point_of_sale: list price display after tax mapping · 41be5fbc
      Andrea Grazioso (agr-odoo) authored
      
      - In general settings:
          - Sales:
              - Activate discount
              - Activate Multiple Sale Prices with option computed from formula
          - Point of sale:
              - Activate Multiple Sale Prices with option computed from formula
          - Accounting:
              - Set show price tax-included
      - Modify the Public Pricelist: Set to Global, price discount 50%
      - Modify the sale tax to be included in price
      - Create a 0% tax included in price
      - Open fiscal position: Set auto-detect, replace sale 15% by 0%
      - Open a product and set customer tax to sale 15%
      - Open POS session configuration
          - Set fiscal position, tax included in price and public pricelist
      - Add product "Pedal Bin"
      
      You will see in strikethough text the original selling price with tax included,
      while taxes should have been removed from the tax mapping.
      Note that this is purely aesthetical, the total amount calculated is correct.
      Fixing by calculating the price from the original selling price.
      
      opw-2155779
      
      closes odoo/odoo#43284
      
      X-original-commit: 7de221c0
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      41be5fbc
  3. Jan 20, 2020
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] calendar: avoid creation of the document on invitation · d8047201
      Andrea Grazioso (agr-odoo) authored
      
      Install Projects, documents, calendar, website, crm.
      Under Settings enable "File Centralization"
      Now go to Projects, enter in a Task, click on "schedule activity".
      On the activity form under "Activity Type" choose Meeting, click on
      "Open Calendar" button.
      Choose a slot, edit the event, add a contact type individual, save
      Error will popup.
      
      This is caused by the whole flow of creating a new document for the
      invitation.ics generated for the meetings which has to be sent via email
      but get detected as an attachment to be sent into the document app as
      well.
      
      Disabling the document creation since it is not a relevant attachment
      
      opw-2150770
      
      closes odoo/odoo#43537
      
      X-original-commit: 4e30db33
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      d8047201
    • Nicolas Martinelli's avatar
      [FIX] analytic: partner without name · fbb73734
      Nicolas Martinelli authored
      
      Do not crash if the commercial partner doesn't have a name.
      
      opw-2158809
      
      closes odoo/odoo#43533
      
      X-original-commit: 90b55325
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      fbb73734
    • Arnold Moyaux's avatar
      [IMP] mrp_subcontracting: filter on partner and product · 87fde093
      Arnold Moyaux authored
      
      Allow to easily find product and partners related to subcontracting
      
      closes odoo/odoo#43046
      
      Task: 2158126
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      87fde093
    • Nicolas Martinelli's avatar
      [FIX] hr_holidays: allocation multi-company · f211eaaf
      Nicolas Martinelli authored
      
      As Mitchell Admin:
      - Install Leaves
      - General Settings > Multi Company
      - Create companies A (YourCompany) and B
      - Mitchell Admin should be an employee of A, not B
      - Switch to company B
      - Go to Leaves > Managers > All > Allocations
      
      An AccessError is raised in `_compute_number_of_hours_display` because
      we try to access `employee_id.resource_calendar_id.hours_per_day`.
      
      After this AccessError is solved, several others are raised when
      accessing a record. They are solved in this commit.
      
      opw-2160542
      
      closes odoo/odoo#43529
      
      X-original-commit: 97085bf16e009ea563719385c8c7073436a1aa7e
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      f211eaaf
  4. Jan 17, 2020
    • Jason Van Malder's avatar
      [FIX] account_facturx: fix too much restrictive XML bill upload · c6dff462
      Jason Van Malder authored
      
      Issue
      
          - Install Accounting
          - Upload XML bill (tried with a MX one)
      
          No decoder was found.
      
      Cause
      
          The _create_invoice_from_xml method gets decoders from overrides of
          _get_xml_decoders. There is only 2 overrides: Belgium & Italy.
      
          All others countries are not handled. So, this error blocks
          the user.
      
      Solution
      
          Log the error instead raising it. (Reproduce V12 behavior)
      
      OPW-2170516
      
      closes odoo/odoo#43503
      
      X-original-commit: 592d2a29
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      c6dff462
    • Odoo's Mergebot's avatar
      [MERGE][IMP] survey: redesign frontend views · 7253c339
      Odoo's Mergebot authored
      
      PURPOSE
      =========
      
      In 3 words, make survey beautiful.
      
      SPECIFICATIONS
      ==============
      
      - Center the question in Question per page mode
      - When last question or page of the survey, Continue becomes Finish
      - Add Press key capabilities to speed up the survey completion
          - ENTER : go to next question (or next page)
          - A to Z : to select answers in choice and matrix question type
            (only in question per page mode to avoid mismatch and complexity with multiple questions
      - New layout for single / multiple choice
          - Custom radio buttons and checkboxes. Unified style for both except we keep circle icon for
            simple choice and square icon for multiple choice.
      - Add a progress bar (2 modes : % and number)
      - Add Background image
      - Re-do quiz correction mode that were removed from controller during survey refactoring.
      - Review breadcrumb style (make it more integrated to the new design)
      
      See sub commits for more details.
      
      LINKS
      =====
      
      Follow the survey refactoring done in #42908.
      Task ID: '2150291'
      
      closes odoo/odoo#43237
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Unverified
      7253c339
    • David Beguin's avatar
      [IMP] survey : redesign frontend layout · aedeccbe
      David Beguin authored
      In this commit, all the questions type have been redesigned to look more fancy.
      (impacted question types : radio and checkboxes, text boxes (textarea and text
      inputs, date and datetime inputs and matrix)
      
      For radio and checkboxes, both design have been aligned to work the same way
      (except checkboxes can still have more than one selected option).
      Selection by key have been applied on those two question types if the number of
      option is under 26 (to use all the alphabeat character for selection). This
      selection by key is only available on page per question layout.
      
      Tests have been adapted accordingly to the redesign (typically for choice and
      matrix inputs)
      
      * Progress Bar
      
      This commit adds a progress bar to the survey to inform the user
      where he is in the survey filling process.
      
      There are two progress modes:
          - Number : will display the number of the current page on the total number
          of pages (or questions if layout mode is question_per_page)
          - Percentage : will display the percentage of page or question already done
      
      So this leads to, on last page:
          - in Number mode :
          the progress bar div is 100% filled         3 / 3 pages   [===]
          - in percentage mode :
          the progress bar is aligned to percentage   66% completed [== ]
      
      * Print Widget
      
      A widget is added for survey print mode in order to resize all textarea to fit
      their content, instead of showing a scroll bar. This can be usefull if user
      wants to print the results. He will get the entire content of the 'textarea
      answers' instead of only the two first lines.
      
      * Misc
      
      This commit also :
          - adds background image to survey.
          - redo quizz correction and add some data to illustrate non scored
          questions rendering in print template
          - review breadcrumb style
      
      Note : readonly data option on survey form widget is not set anywhere yet but
      the usage is done in prevention of the future work on presenter view for survey
      session mode.
      
      Task ID: '2150291'
      PR #43237
      aedeccbe
    • David Beguin's avatar
      [IMP] portal, web: move wrapwrap flex style rules from portal to web · 860768b7
      David Beguin authored
      This commit moves the flex rules of #wrapwrap div to web so it can be used in
      survey.
      
      This is needed to make the survey footer stick to the bottom of the screen
      even if main has not enough content to fill the page.
      
      This commit prepares survey redesign.
      
      Task ID: '2150291'
      PR #43237
      860768b7
    • David Beguin's avatar
      [IMP] web: split _content_image with get response sub method · 307f51ab
      David Beguin authored
      This commit splits the _content_image method to allow to call the
      get response part individually.
      
      This is needed because _content_image call binary_content using current user
      access. But in some cases, we need to render a binary content even if the user
      does not have access to the target model (typically for public users).
      
      The binary_content is gotten in sudo mode where needed and the result can be
      given to the _content_image_get_response.
      
      This will avoid code duplication where the sudo use case is met.
      
      Usage :
      This commit prepare the redesign of survey. This _content_image_get_response
      method will be called to grant access of background image even for public
      users. Other modules will use this new method like elearning (website_slides)
      to display karma ranking, etc.
      
      Task ID: '2150291'
      PR #43237
      307f51ab
  5. Dec 17, 2019
  6. Jan 17, 2020
  7. Jan 16, 2020
  8. Jan 17, 2020
  9. Jan 16, 2020
  10. Jan 17, 2020
Loading