Skip to content
Snippets Groups Projects
  1. Oct 30, 2019
  2. Oct 29, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] web: dropdown in modal in RTL mode · f65bdd17
      Lucas Perais (lpe) authored
      Be in Right to left
      
      Open a m2o search more, to get onto the list modal
      toggle the filters menu
      
      Before this commit, the filters dropdown was almost invisble
      and too much on the right anyway
      
      This was because the RTL was not taken into account
      
      After this commit, we anchor the dropdown on the right
      (both as in good and as in side) side of its trigger button
      
      Also, when modifying the dropdown, by developping the Custom Filter
      we force the repositioning of the dropdown, to take those new elements
      into account
      
      It is expected though that after this commit, in RTL, the
      dropdown in a modal that has a scrollbar (which is on the left)
      will be slightly pushed to the right. It is usable and visible though
      Some kind of plumbing using $el.data('offset', fn) from popper.js
      is possible, but has been deemed not robust enough
      
      Docs
      https://getbootstrap.com/docs/4.0/components/dropdowns/#methods
      
      
      
      OPW 2088934
      
      closes odoo/odoo#39353
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      f65bdd17
    • Jorge Pinna Puissant's avatar
      [FIX] account: wrong fiscal position company in auto-detect · 221a1712
      Jorge Pinna Puissant authored
      
      Have two companies A and B, A is the parent company of B.
      A and B have fiscal positions set (FPA and FPB respectively). FPB has
      autodetect set to True.
      
      Before this commit, when creating a new Vendors Bill in company A, the
      fiscal position of the invoice was auto-detected to FPB (from company
      B).
      
      Now, only the fiscal positions of the current company can be
      auto-detected.
      
      Closes #39085
      
      opw-2091198
      
      closes odoo/odoo#39458
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      221a1712
    • Jorge Pinna Puissant's avatar
      [FIX] hr_payroll: salary slip refund without recompute of lines · 47adb748
      Jorge Pinna Puissant authored
      
      Before this commit, when a refund of a salary slip was done, the 'Salary
      Computation' lines where recompute from the 'Worked Days & Inputs'
      lines. This generates falsely data if the structure or the contract
      changes between the salary slip and the refund.
      
      Now, when a refund is done, all the lines are copied from the salary
      slip to be coherent with the salary slip.
      
      opw-2081454
      
      closes odoo/odoo#39412
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      47adb748
    • Xavier-Do's avatar
      [FIX] core: remove broken time consuming checks · b24573ba
      Xavier-Do authored
      
      The two method valid valid_alternative_icon_text and valid_title_icon
      represent ~13% of an install all. Rewriting them in master
      with in #36373 is the main reason of the performance improvement.
      
      Those two method logic were broken, because
      `xpath += '[not(//*[' + valid_attrs_xpath + '])]'`
      will actually search for valid_attrs_xpath from view root,
      not from fa- node.
      
      -since this check will only log a warning and so only impact
       bugfix, no impact on user editing views,
      -since a new check is added in master with the corresponding fix in views,
      -since this check doesn't really test what it is suppose to check,
      -since fa accessibility is great, but not critical
      
      ->removing those check will slightly speed up build without major impact
      on views quality
      
      closes odoo/odoo#39494
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      b24573ba
    • jvm-odoo's avatar
      [FIX] base: fix merge partner wizard · deeb769c
      jvm-odoo authored
      
      In the contacts app, you can select 2 partners and merge them.
      
      Before this commit:
      
          - If a partner was added by a SQL query and not directly on Odoo,
            the create_date will be empty. This causes a crash because the
            merge wizard try to sort the partners by date
      
      After this commit:
      
          - If a partner do not have a create_date, it will be considered
            as 01/01/1970. The merge wizard will sort the partners by IDs too.
      
      OPW-2091925
      
      closes odoo/odoo#39503
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      deeb769c
  3. Oct 28, 2019
  4. Oct 29, 2019
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] calendar,google_calendar: exclusions not propagating · 08510211
      Andrea Grazioso (agr-odoo) authored
      
      Activate Google Synchronization, create on GC a recurrent event,
      synchronize OE, then delete an event of the recursion on GC, sync again
      on OE.
      
      The event will be deleted from GC but not from OE after sync.
      
      The exclusion on OE is not correctly working in that particular case,
      fixing require also to "suppress" the attendee to avoid that just
      created exclusions would be detected as changes to send in a following
      synchronization.
      
      closes odoo/odoo#37884
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      08510211
  5. Oct 28, 2019
    • Xavier-Do's avatar
      [FIX] tests: ensure that previous user is logged off in authenticate · 2e2bacf8
      Xavier-Do authored
      
      In some case, a browser_js test with login "None" following a browser_js
      test with a defined login could result in the second test being executed
      with the previous user.
      
      This was caused by a race condition, a request response comming back
      to chrome just after browser clear, restoring the old cookie.
      (All odoo request have the set_cookie flag set in order to refresh
      cookie timeout)
      
      The solution here is to check one more time for cookie in authenticate,
      but also to remove HTTPCase session from session_store. This will
      only be effective when calling browser_js without login in the same
      HTTPCase .
      
      closes odoo/odoo#39424
      
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      2e2bacf8
  6. Oct 24, 2019
    • Martin Trigaux's avatar
      [FIX] profiler: be more pesimistic · a30e0380
      Martin Trigaux authored
      
      The profiler was too optimistic. If the local variable self was not a
      cursor, it assumed it was automatically an Odoo model.
      Instead, only do the custom tracer methods when self is an instance of
      BaseModel.
      
      Full scenario to reproduce explained at odoo/odoo#39237
      
      In case a method like the default_get of utm.mixing was profiled, the
      tracer crashed when evaluating `__bool__(request)`.
      The tracer considered self as an Odoo model while it was a werkzeug
      instance with its custom __getattr__ that crashed while trying to
      retrieve the content of `_name`.
      
      Fixes odoo/odoo#39237
      
      closes odoo/odoo#39349
      
      X-original-commit: 9d7147a3
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      a30e0380
  7. Oct 29, 2019
  8. Oct 28, 2019
    • Xavier Morel's avatar
      [FIX] SSF: modifier based on m2m value · 927979be
      Xavier Morel authored
      
      m2ms are internally represented as "6" commands, however in domains
      it's possible to compare an m2m value to a list of ids (to
      investigate: whether this is an artifact of internal webclient repr or
      part of the real contract).
      
      Add a workaround in SSF modifier computation to convert the m2m
      command storage to a simple ids list.
      
      A better fix would probably have been to represent the m2m as a list
      of ids internally (and only convert on load / save) however it not
      completely trivial as it has to be done recursively in order to
      properly handle an m2m inside an o2m. So it's a complete change of the
      internal data model (which should probably go alongide more
      fundamental changes e.g. properly handling parent refs, etc...)
      
      Also add very minor support for widgets (mostly so it's possible to
      set widget=many2many on an o2m field).
      
      closes odoo/odoo#39433
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      927979be
    • Nicolas Martinelli's avatar
      [FIX] point_of_sale, stock: do not crash if no email set · 53dcdd5a
      Nicolas Martinelli authored
      - Create a POS user for which the corresponding partner has no email
        address.
      - Connect to the POS with the created user
      - Sell a product which creates a picking (e.g. Customizable Desk)
      
      The picking is created in draft and not validated.
      
      This is due to:
      
      https://github.com/odoo/odoo/blob/6435b27c35faeafca452d26fa7fd50a7fe964029/addons/mail/models/mail_thread.py#L2199
      
      
      
      We disable tracking and post the message as `sudo()`.
      
      opw-2091808
      
      closes odoo/odoo#39423
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      53dcdd5a
    • Goffin Simon's avatar
      [FIX] account: No tax is applied on invoice line · 059c59a1
      Goffin Simon authored
      
      Steps to reproduce the bug:
      - Install belgian accounting
      - Create a tax REC with a fixed amount and affect base of subsequent taxes
      - Create an invoice I with a line L
      - Set the following taxes on L: REC (first position) and 0% EU G (second position)
      - Validate the I
      - Check the generated journal entries
      
      Bug:
      
      The account move line for REC didn't have the 0% EU G on the applied taxes field.
      
      opw:2089240
      
      closes odoo/odoo#39323
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      059c59a1
  9. Oct 24, 2019
  10. Oct 25, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] web: calendar: fetch records in right timezone · 06d4983a
      Lucas Perais (lpe) authored
      
      Before this commit, the calendar searched records on the wrong time ranges
      which did not take into account the timezone of the user
      It obviously resulted in some records not being there
      
      After this commit, all the relevant records are fetched according to the right
      time range in UTC, corresponding to start/end of the week/month/day of the calendar
      
      OPW 2076114
      
      closes odoo/odoo#39240
      
      X-original-commit: 70ed3d54
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      06d4983a
  11. Oct 27, 2019
  12. Oct 24, 2019
  13. Oct 23, 2019
  14. Oct 25, 2019
  15. Oct 21, 2019
  16. Oct 01, 2019
    • Xavier Morel's avatar
      [FIX] core: compatibility with Werkzeug 0.15 ProxyFix · e19d6241
      Xavier Morel authored
      
      Werkzeug 0.15 modified ProxyFix such that by default it only forwards
      the REMOTE_ADDR when enabled, whereas before 0.15 it would also
      forward scheme and host. This breaks proxied odoo as the base url
      becomes incorrect (cf #34412).
      
      Use properly configured ProxyFix when running with werkzeug 0.15, old
      configuration otherwise.
      
      Backport of 4057227d which was merged
      in master, because many people apparently run 0.15 now.
      
      Closes #35085
      closes odoo/odoo#36212
      
      closes odoo/odoo#37709
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      e19d6241
  17. Oct 24, 2019
    • Jorge Pinna Puissant's avatar
      [FIX] account: KeyError when transaction retry on reconciliation · f183f74d
      Jorge Pinna Puissant authored
      To reproduce this issue, a transaction retry must be forced:
      — Put a breakpoint in a line of the function process_bank_statement_line
          in addons/account/models/reconciliation_widget.py;
      — Open the bank statement reconciliation;
      — Click in validate;
      — When the code is in pause;
      — Open psql and modify a line of the database that affects the current
          reconciliation, for example you can change the partner_id of the
          table account_bank_statement_line for the line that is modified in
          https://github.com/odoo/odoo/blob/3e2d968c55542426746b287c556b5fb05d59fdcb/addons/account/models/reconciliation_widget.py#L35;
      
      
      — Continue the process;
      — This will generate an 'ERROR: could not serialize access due to
          concurrent update' and a transaction retry.
      
      Before this commit, a KeyError is raised, this occurs because
      counterpart_aml_id was deleted from the dictionary in the first passage,
      then when in the second passage triggered by the 'retry transaction',
      counterpart_aml_id doesn't exist any more in the dictionary.
      
      Now, the data is copied and there is no problem when the 'retry
      transaction' is called.
      
      Fixes #23816
      opw-2085822
      
      closes odoo/odoo#39314
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      f183f74d
    • jvm-odoo's avatar
      [FIX] payment_transfer: fix wire transfer when amount total is 0 · c87398ac
      jvm-odoo authored
      
      In e-commerce module, when you have a free product and 2 delivery
      methods:
          - Free
          - Any delivery method with a fixed price
      
      When you confirm your cart, you have to choose a payment method.
      
      If you select "free delivery" and "wire transfer":
      
      Before this commit:
      
          - You get an internal server error
      
      After this commit:
      
          - You are redirected to the wire transfer confirmation
      
      OPW-2083778
      
      closes odoo/odoo#39304
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      c87398ac
  18. Oct 23, 2019
  19. Oct 22, 2019
Loading