Skip to content
Snippets Groups Projects
  1. Jan 20, 2020
  2. 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>
      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
  3. Dec 17, 2019
  4. Jan 17, 2020
  5. Jan 16, 2020
  6. Jan 17, 2020
  7. Jan 16, 2020
  8. Jan 17, 2020
  9. Jan 16, 2020
    • oco-odoo's avatar
      [IMP] account: add 'partial' and 'reversed' payment states to invoices · 8e4158af
      oco-odoo authored
      
      - 'partial' payment state corresponds to invoices whose payable/receivable move line has been partially reconciled with some other line.
      
      - 'reversed' payment state corresponds to entries that have been cancelled by the creation of a single reverse entry (using the dedicated button on the form view). This state can be set on invoice as well as on regular entries.
      
      => To stay consistent with the naming conventions, this commit also renames invoice_payment_state field to payment_state, since it's no longer only applicable on invoices.
      
      closes odoo/odoo#41723
      
      Related: odoo/enterprise#7202
      Signed-off-by: default avatarQuentin De Paoli (qdp) <qdp@openerp.com>
      8e4158af
  10. Jan 17, 2020
  11. Jan 16, 2020
Loading