Skip to content
Snippets Groups Projects
  1. Jan 25, 2019
  2. Jan 14, 2019
  3. Jan 22, 2019
  4. Jan 25, 2019
    • Robot Odoo's avatar
      [MERGE][IMP] survey : add datetime format and various improvements · 0f6b38b2
      Robot Odoo authored
      Purpose of this merge is to add support of both date and datetime questions
      in survey. Validation and check is added accordingly to current survey
      question type support.
      
      In this merge we also add some various improvements
      
       * Change the default value of the Validation Error message on
         the Date : "The answer you entered is not valid."
       * If long page, click on next and one error, the page should go up
         to allow the visitor to see where the error is.
      
      This merge is related to task ID 1911291 and closes PR #29054.
      0f6b38b2
  5. Jan 24, 2019
    • Antoine Prieels (ANP)'s avatar
      [IMP] mail, snailmail, snailmail_account: improve error management · 8f486db5
      Antoine Prieels (ANP) authored
      When a letter is sent through snailmail and encounter an error, it used
      to create an activity to the user to notify him that there was an error
      with its letter.
      
      When a user had this activity, he didn't have any clues of what was the
      error and how to manage it. So we decided to better handle snailmail
      errors and give the possibility to the user to easily fix the source of
      the snailmail errors.
      
      First to give a better feedback on the letters in errors, we've made
      features similar to ones existing for emails:
       - We add a mail message on the document that sent the letter, and put a
         small paper plane icon, which is red when an error occurs (like the
         envelope for email)
       - As letters can be sent in batch, we've also added an entry in the
         systray to easily manage the different documents having snailmail
         errors like for emails.
      
      Then we identified, the most common errors encountered with the
      snailmail letters and give proper way to let the user fix them:
       - Missing Required Field:
          - The address is not complete, some of the fields are empty.
          - We open a wizard allowing the user to modify the partner address
            and we try to resend all letters having this error on the modified
            partner.
          - We also try to avoid this error, by opening the wizard before
            sending the letter, but it only works for single documents, not
            for batch.
       - Trial/Credit Error:
          - The user has not enough credits to send letters anymore.
          - We open a wizard that give a redirection lnk to add credits on its
            iap account.
       - No Price Available:
          - The destination country is not supported by any of our providers,
            and we cannot do anything to send this letter.
       - Format Error:
          - The format of the pdf report send by the user is refused by our
            providers, because some visual stuffs are not respected, for
            example blank zone to print barcode or margins.
          - We show a wizard to the user letting him check a setting option
            that add a cover page in the envelope and the documents will be
            send with this extra page containing the address.
       - Unknown Error:
          - This is not one of the listed error above.
          - A wizard suggesting the user to contact support is displayed.
      
      The cron that try to resend letters on error, has been addapted to only
      try to send the error of type Trial/No Credit, because the account might
      have been reloaded, and other errors, won't change if they have not been
      fixed locally.
      
      closes odoo/odoo#29685
      8f486db5
    • RomainLibert's avatar
      [REF] l10n_be_hr_payroll: Replace computed fields · 7274c0aa
      RomainLibert authored
      The double holidays and the thirteen months fields are used for the salary
      package configurator. But these fields are computed as in a perfect world.
      
      As these values are now available with a specific salary structure,
      replace the computed values in the salary package and remove the fields
      
      closes odoo/odoo#30516
      7274c0aa
    • RomainLibert's avatar
      [IMP] l10n_be_hr_payroll: add Double Holidays/13 Month salary structures · 5232670a
      RomainLibert authored
      Adds the salary structure for 13th month
      Adds the salary structure for double pecule
      5232670a
    • Yannick Tivisse's avatar
      [IMP] hr_holidays: Avoid 2 leaves on the same day when changing state · c89c0e70
      Yannick Tivisse authored
      Purpose
      =======
      
      There is already a check triggered when we modify the start/end date.
      
      But it's still possible to:
      - Create a leave A
      - Refuse it
      - Create a leave B on the same day
      - Reset the leave A in draft state
      
      Specification
      =============
      
      The test should also be done when modifying the employee or the state.
      
      closes odoo/odoo#30480
      c89c0e70
    • Rohan Patel's avatar
      [IMP] hr_expense: improve mail gateaway · 4ba8f51d
      Rohan Patel authored
      
      1/ Send mail notification if expense is registered successfully
      
      Before this commit, when user submits the expense via email, user is not getting
      information about whether expense is registered or not. After this commit user
      will get a confirmation email.
      
      Few other usability improvements,
      - Improved tooltip for the field 'default_code' in expense's form and in the
      'Emails' config setting.
      - Added product's default code in product's kanban view
      - Filtered uom based on category of product's uom.
      
      2/ Better parsing of expense mail subject
      
      Criteria for matching expense product from email subject is changed,
        - The product code should be the first word of the subject.
        - Only expense products are allowed, previously there was no filter and user was
          able to select any product in expense via mail.
      
      Currency support is added,
        - Now user can specify currency symbols and ISO code in expense mail subject.
        - If subject contains multiple numbers in that case, number with currency will
          get higher priory, and it selected as an amount in expense.
        - If multi currency is active, user can use any active currency symbol/ISO code
          in mail subject. Respective currency will be selected in registered expense.
        - If multi currency is not active, user can only pass company currency. Other
          currencies are ignored and expense will be registered as default company currency
        - If user pass non active currency in subject then that currency will be ignored
          and expense will be registered as default company currency
      
      Examples:
      PROD_CODE 2 foo $1205.91 baz
      
      Added python test cases for mail subject parsing.
      
      Related to task #35093
      closes #22168
      
      Co-authored-by: default avatarLucas Lefèvre <lul@odoo.com>
      4ba8f51d
    • Robot Odoo's avatar
      [IMP] hr_payroll_account: Include employee's contract analytic account · af1728fd
      Robot Odoo authored
      If the employee's contract has an analytic account it should be considered for the payroll.
      This is actually the way analytic accounts are meant to be used in the payroll, to segregate
      information based on specific groups of employees or departments.
      
      This does not override the default behavior, it just uses the analytic account on the
      contract if it has it and the salary rule doesn't.
      
      Ticket #1927941
      Closes #30119
      
      closes odoo/odoo#30491
      af1728fd
    • Gustavo Valverde's avatar
      [IMP] hr_payroll_account: Include employee's contract analytic account · 691712eb
      Gustavo Valverde authored
      If the employee's contract has an analytic account it should be considered for the payroll.
      This is actually the way analytic accounts are meant to be used in the payroll, to segregate
      information based on specific groups of employees or departments.
      
      This does not override the default behavior, it just uses the analytic account on the
      contract if it has it and the salary rule doesn't.
      
      Ticket #1927941
      Closes #30119
      691712eb
  6. Jan 23, 2019
  7. Jan 11, 2019
  8. Jan 24, 2019
    • qsm-odoo's avatar
      [FIX] website, *: restore 'animation' system to the way it worked · a00e6f3d
      qsm-odoo authored
      * website_forum
      
      Following the new editor's merge at https://github.com/odoo/odoo/pull/29775,
      the website 'animation' system was 'extended' to vaguely use a
      'Registry' instance instead of an object. This was however left
      undocumented, with a require in the middle of a file, restarting all
      animations when used, only used by website_forum... with more code for
      no reason at all, ...
      
      This commit restores the system to the way it was before and re-adapts
      website_forum:
      - No need to check if website_forum is in the DOM as it is already
        checked by the animation system (on top of that... the new code was
        checking the DOM before it was ready...).
      - No need of a dynamic add on a registry, this is always done before the
        DOM is ready, so before the animations are started.
      - No need to know the root instance in website forum, just use the
        animation as the Wysiwyg instance's parent.
      
      The goal of this commit is also to avoid useless conflicts with
      https://github.com/odoo/odoo/pull/29442 (that should not have had any
      conflict at all as totally independent of the editor task...)
      
      closes odoo/odoo#30478
      a00e6f3d
    • Yannick Tivisse's avatar
      [IMP] hr_contract_salary: Change the legal/extra legal leaves behavior · 7a2394c6
      Yannick Tivisse authored
      purpose
      ======
      
      In salary configurator, improve the cusrsor to select only extra leaves.
      
      Specification
      =============
      
      Specification
      ==========
      
      Section legal leaves:
      - Rename "Legal leaves" into "Extra Time Off"
      - change the cursor  0 -> 15
      
      Change the text (rmove completely old one if you go below 20)
      
      In addition to your legal leaves, you can choose any number of extra time off you want. If you worked a full time 12 months last year, you will get a total of  [  27   ]  day(s) off.
      The amount of annual time off (legal leaves) you get depends on your work schedule in the previous year. A full-time work schedule through the 12 months of the last year will grant you 20 annual time off (legal leaves)
      
      In yearly advantages (on the right right)
      - Cash                          4000 €
      - Annual Time Off         20  day(s)
      - Extra Time Off             7  day(s)
      
      closes odoo/odoo#30425
      7a2394c6
    • qsm-odoo's avatar
      [FIX] portal: remove useless dependency to 'web_editor.ready' · 0be8a1e4
      qsm-odoo authored
      Following the new editor's merge at https://github.com/odoo/odoo/pull/29775,
      the 'web_editor.ready' module was moved to website without caring about
      where it was used.
      
      Fortunately the only non-website app which uses it is portal in a module
      which in fact does not need it.
      It would probably make more sense if it was in portal though (see
      https://github.com/odoo/odoo/pull/30409) but as an upcoming PR is about
      to fix those problems (https://github.com/odoo/odoo/pull/29442), this
      can stay in website for now.
      
      closes odoo/odoo#30473
      0be8a1e4
  9. Nov 27, 2018
  10. Jan 22, 2019
  11. Dec 29, 2018
  12. Jan 21, 2019
    • qsm-odoo's avatar
      [FIX] website, *: restore media dialog uses · c97f16be
      qsm-odoo authored
      * web_editor, website_blog
      
      Following the new editor's merge at https://github.com/odoo/odoo/pull/29775,
      the media dialog was refactored but the code which used it outside of
      the editor was not adapted at all. Also, the selected image was not
      saved correctly anymore, making the media dialog useless outside the
      editor in the current implementation.
      
      - Adapted SEO image uploading and body image background choice which
        were not working anymore
      - Adapted blog cover choice and gallery snippet which were strangely
        still working even though there were sending wrong parameters during
        media dialog initialization
      
      closes odoo/odoo#30416
      c97f16be
    • qsm-odoo's avatar
      [FIX] website, *: restore using widgets outside the editor · 86d26ffb
      qsm-odoo authored
      * web_editor
      
      Following the new editor's merge at https://github.com/odoo/odoo/pull/29775,
      the editor dialog and the switches crashed on their use in website.
      This is because the merge split some xml files without adapting xml
      dependencies... this commit only takes care of code which depended on
      '/web_editor/static/src/xml/editor.xml'.
      
      closes odoo/odoo#30408
      86d26ffb
    • Demaret Rivarola Johan's avatar
      [IMP] mail: chatter channel notification · e2f20ffa
      Demaret Rivarola Johan authored
      Ability to notify the channel but do not add the channel as a follower.
      Faster than mentioning every member of the channel.
      
      Also, clean the rendering of the mention suggestions name to avoid
      having escaped char in the UI.
      
      Task id : 1859802
      Closes #25887
      e2f20ffa
    • jbm-odoo's avatar
      [IMP] hr_holidays: Rename 'leave' into 'time off' + add dashboard · a3daff6b
      jbm-odoo authored
      Purpose
      =======
      
      We need to use an international word to define holidays and leaves, rename everything into Time Off.
      Employees needs a good dashboard and leaves summary
      
      Specification
      =============
      
      1/ Add a new dashboard: https://balsamiq.cloud/sm5j0d/pg5w04r
         Create a new dashboard with a calendar and a summary of all time off and time off request
      2/ Rename leaves into Time Off everywhere
      3/ Improve general usability
      
      TaskID: 1916871
      
      closes odoo/odoo#29634
      a3daff6b
    • Robot Odoo's avatar
      [IMP] hr_payroll: Manage multi company on payslips/contracts · 344877a0
      Robot Odoo authored
      Purpose
      =======
      
      Currently the payroll doesn't manage the multi company
      
      Specification
      =============
      
      1/ Add ir.rules on hr.contract and hr.payslip to prevent users
         to access a record in another company.
      2/ Add ir.rules on hr.payroll.structure to prevent users to access
         a record for another country.
      3/ Remove company_id fields on models that doesn't require it, as
         hr.salary.rule.category.
      4/ Make the accounting fields on the salary rules company dependent.
      5/ Specify the country on the salary structures on the
         l10n_**_hr_payroll modules.
      6/ Add demo data and modify the salary package tour.
      7/ Make the car_atn and company_car_total_depreciated_costs fields
         compute_sudo=True, as one car can be assigned on several contract,
         for different companies
      
      Closes #26866
      Closes #25231
      Closes #24683
      Closes #23814
      
      closes odoo/odoo#28675
      344877a0
    • Yannick Tivisse's avatar
      [IMP] hr_payroll: Manage multi company on payslips/contracts · 1684ec55
      Yannick Tivisse authored
      Purpose
      =======
      
      Currently the payroll doens't manage the multi company
      
      Specification
      =============
      
      1/ Add ir.rules on hr.contract and hr.payslip to prevent users
         to access a record in another company.
      2/ Add ir.rules on hr.payroll.structure to prevent users to access
         a record for another country.
      3/ Remove company_id fields on models that doesn't require it, as
         hr.salary.rule.category.
      4/ Make the accounting fields on the salary rules company dependent.
      5/ Specify the country on the salary structures on the
         l10n_**_hr_payroll modules.
      6/ Add demo data and modify the salary package tour.
      7/ Make the car_atn and company_car_total_depreciated_costs fields
         compute_sudo=True, as one car can be assigned on several contract,
         for different companies
      
      Closes #26866
      Closes #25231
      Closes #24683
      Closes #23814
      1684ec55
Loading