Skip to content
Snippets Groups Projects
  1. May 03, 2019
  2. May 02, 2019
    • Toufik Ben Jaa's avatar
      [FIX] hr_payroll: allow to request leaves · f907ffde
      Toufik Ben Jaa authored
      
      - When having multiples contracts, at least one open and one closed, we may
        not be able to request a leave.
      
        This issue is triggered if the closed contract has no end date.
        The code checks if the leave you try create overlap over multiple contracts.
        But if a contract has no end date and is closed, the check may never
        succeed.
      
        So if a contract has no end date and is closed we don't take it in
        account.
      
      closes odoo/odoo#32909
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      f907ffde
  3. Apr 26, 2019
  4. Apr 25, 2019
  5. Apr 28, 2019
  6. Apr 25, 2019
  7. Apr 24, 2019
  8. Apr 23, 2019
  9. Apr 25, 2019
  10. Apr 24, 2019
  11. Apr 23, 2019
    • Goffin Simon's avatar
      [FIX] stock: Error when re-installing manufacturing application · 1da058f8
      Goffin Simon authored
      
      Steps to reproduce the bug:
      - Install MRP
      - Uninstall MRP
      - Install MRP
      
      Bug:
      An error was raised by sql constraint 'barcode_company_uniq' which ensures that
      a barcode for a location is unique per company.
      But when uninstalling MRP, some locations such as pbm_loc_id or sam_loc_id are set to
      active = False and when re-installing MRP, the function _create_missing_locations tried
      to re-create these locations and the sql constraint was raised.
      
      opw:1967534
      
      closes odoo/odoo#32882
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      1da058f8
  12. Apr 24, 2019
    • Yannick Tivisse's avatar
      [FIX] hr_holidays: Avoid erasing values on onchange if set · 4b0b00db
      Yannick Tivisse authored
      
      closes odoo/odoo#32790
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      4b0b00db
    • Lucas Lefèvre's avatar
      [FIX] hr_holidays: Fix deleted default employee · 08da07b1
      Lucas Lefèvre authored
      The goal of commit 2dbce5e6 was to handle the company
      holiday type in onchange which was probably forgotten
      when the company type was introduced.
      However because the last `elif` was changed to `else`,
      the `else` clause is executed in some situations where
      it shouldn't.
      
      e.g. If holiday type is `employee` and an employee is set,
      the `else` clause is (obviously wrongly) executed.
      This is particularly a problem if the employee is not
      HR user nor manager. In that case, the field employee_id
      is invisible and its value has been deleted by the onchange.
      The allocation cannot be saved because it violates the
      sql constraint (employee is null).
      
      Also, the `mode_company_id` and `category_id` should be set
      to `False` when the holiday type is not company/category.
      08da07b1
    • Lucas Lefèvre's avatar
      [FIX] hr_holidays: Allow create department leave · d6242a34
      Lucas Lefèvre authored
      1. Open form view to create a leave
      2. Change the leave type to 'By department'
      3. Choose the department of the current user
      4. Save the leave
      5. Approve the leave
      => ValidationError, cannot have two leaves at the same time.
      
      In `@api.onchange('holiday_type')`, when choosing by department
      it sets `employee_id`, `mode_company_id` and `category_id`
      to `False` ONLY if the department is not already set.
      But by default, the employee is set to the user's employee
      and the department is set to the employee's department.
      Therefore the employee is never set to `False` and the
      department leave is linked to this employee.
      When validating the 'department' leave, an 'employee'
      leave is created for each employee in the department.
      For the current user, it crashes because the deparment leave overlaps with
      the 'employee' leave since the department leave is linked to
      the employee.
      d6242a34
    • Nicolas Martinelli's avatar
      [FIX] stock: add operation in mobile view · 17ac11d5
      Nicolas Martinelli authored
      
      Since it is possible to create an operation in the regular list view, it
      should also be possible to do it in the kanban mobile view.
      
      opw-1963527
      
      closes odoo/odoo#32907
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      17ac11d5
  13. Apr 23, 2019
  14. Apr 21, 2019
  15. Apr 19, 2019
    • Nicolas Martinelli's avatar
      [FIX] website: sign-up in multi-website · 77c708c5
      Nicolas Martinelli authored
      
      - Create 2 companies A & B
      - For each company, create a website linked to a different URL and
        activate 'Free sign up' and 'Specific User Account'.
      - As a public user, go to website of company B
      - Go to 'Sign in > Don't have an account?' and create an account
      
      The user is created in company A (the company of the user template)
      instead of company B (the company of the website).
      
      We set the company of the user based on the company of the website.
      
      opw-1962197
      
      closes odoo/odoo#32823
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      77c708c5
    • Nicolas Martinelli's avatar
      [FIX] website_sale: multi-website · 3a0f05f3
      Nicolas Martinelli authored
      
      - Create 2 companies A & B
      - For each company, create a website linked to a specific URL
      - As a public user, visit website of B
      - Buy a product, register your address
      
      The partner is in company A (the company of the superuser) instead of
      company B (the company of the website).
      
      opw-1962197
      
      closes odoo/odoo#32822
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      3a0f05f3
  16. Apr 24, 2019
  17. Apr 23, 2019
Loading