Skip to content
Snippets Groups Projects
  1. May 22, 2019
    • Hardik Prajapati's avatar
      [IMP] l10n_ae: Added taxes, COA and Fiscal position · 086b9ad8
      Hardik Prajapati authored
      
      - On the invoice pdf, if the invoice is in USD, we
      need to specify conversion rate and amounts in AED.
      Also, if it is between certain Gulf states, you need
      to mention this on the invoice.   'Invoice' also
      needs to replaced with 'Tax Invoice'.
      - Taxes changed to 0% and 5% / AED symbol on currency
      adapted to the real situation of UAE.
      - A tax by state automatically adapted with the fiscal
      positions in order to have the tax amounts correctly
      split by state in the tax report.
      
      opw-1931322
      
      closes odoo/odoo#33385
      
      Signed-off-by: default avatarCedric Snauwaert (csn) <csn@openerp.com>
      086b9ad8
    • Laurent Smet's avatar
      [FIX] account: Fix reconciliation foreign currency on account · 9989a9c3
      Laurent Smet authored
      
      Suppose you make a reconciliation on an account having a foreign currency being
      the same as the company one.
      Suppose also you are making a reconciliation of three lines without currency_id set on this account:
      - A with debit = 11
      - B with credit = 10
      - C with credit = 1
      
      Before this commit, the reconciliation was wrong because all computation are made using the foreign
      currency due to the account's configuration. As A, B & C have their amount_currency set to 0,
      an account.full.reconcile is well created but only one account.partial.reconcile is created instead of
      2 leading to an inconsistent state.
      
      opw:1984684
      
      closes odoo/odoo#33445
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      
      
      Co-authored-by: default avatarGoffin Simon <simon.goffin@outlook.com>
      9989a9c3
    • Nans Lefebvre's avatar
      [FIX] website_sale: clean the action to send recovery cart · 839f62c3
      Nans Lefebvre authored
      
      The action to send cart recovery mails is really made to be automated.
      However it was written in a way requiring either manual input, to use
      action_recovery_email_send.
      To make an automated action, you basically need to put the code of it
      directly into the action itself, or it would be made incorrectly.
      
      opw 1981665
      
      closes odoo/odoo#33185
      
      Signed-off-by: default avatarNans Lefebvre (len) <len@odoo.com>
      839f62c3
  2. May 15, 2019
  3. May 22, 2019
  4. May 07, 2019
  5. May 21, 2019
    • Nicolas Martinelli's avatar
      [FIX] sale: taxes on mobile · 013d52e9
      Nicolas Martinelli authored
      
      - Create 3 products, add 2 sales tax to each product
      - Create a quotation template with the se 3 products
      - Switch to mobile mode
      - Create a SO, add the quotation template
      - Modify the first line and change the quantity
      
      The taxes of the two other lines are removed.
      
      This is due to the missing `tax_id` field in the mobile kanban view.
      
      opw-1998493
      
      closes odoo/odoo#33527
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      013d52e9
  6. Apr 04, 2019
    • Gert Pellin's avatar
      [FIX] hw_scale: Adam scale wait time · 6188a61d
      Gert Pellin authored
      
      When opening the weight screen in PoS it can take up to 10 seconds
      until the weighting starts. This can be resolved by using a
      Threading.Event instead to reset the 10 second sleep time.
      
      Using exit_flag.wait(timeout=DELAY) will be more responsive, because
      you'll break out of the while loop instantly when exit_flag is set. With
      time.sleep(timeout=DELAY), even after the event is set, you're going to wait around in
      the time.sleep call until you've slept for DELAY seconds.
      
      closes odoo/odoo#32389
      
      Signed-off-by: default avatarOlivier Dony (odo) <odo@openerp.com>
      6188a61d
  7. May 22, 2019
    • Moens Alexandre's avatar
      [FIX]mail: detach non existing element · 40a650a0
      Moens Alexandre authored
      
      This commit fixes a js crash that occured when the user was trying to
      edit a new record while the chatter was not completely loaded
      (this.field.thread.$el was not in the dom yet)
      
      Behavior before this fix:
      Traceback js & impossible to edit the form afterward.
      
      Behavior after this fix:
      no traceback, still possible to edit the form normally.
      The thread will display on next chatter re-render. Could be forced by
      triggering an onchange.
      
      opw-1986061
      
      closes odoo/odoo#33381
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      40a650a0
  8. May 21, 2019
    • Romain Derie's avatar
      [FIX] website: restore the add of website_id on user at signup · 90dec44a
      Romain Derie authored
      
      Since b5a12b4a the website_id was not set anymore.
      
      Indeed, before this commit website_id was the field from the inherits, thus
      when writing on website_id from res.user, we would write on the partner field.
      
      But with b5a12b4a the website_id was explicitely overrided on res.users as a
      related to res.partner (its inherits) with readonly=True.
      
      Thus, writting website_id on res.users was not working anymore.
      
      closes odoo/odoo#33521
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      90dec44a
    • Xavier Morel's avatar
      [FIX] doc: error & potential warnings · 7b00776c
      Xavier Morel authored
      
      * properly handle 3-args version of odoo.define(): just ignore the
      second argument, pretty much the only use-case is dynamic
      dependencies (otherwise it should be using static require() calls)
      so there's little the extractor can do
      * fix an issue with sys.path ordering meaning sphinx would pick up an
      odoo installed into the current virtualenv (editable or not) over
      the local copy it's part of
      
      closes odoo/odoo#33538
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      7b00776c
    • Toufik Ben Jaa's avatar
      [FIX] payment: do not shadow error traceback · 72592750
      Toufik Ben Jaa authored
      
      - When validating payments on the payment process polling page
      errors can occurs and the tracebacks aren't logged which doesn't help
      when trying to understand the issues.
      
      With this commit we display the traceback instead of shadowing them.
      
      closes odoo/odoo#33537
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      72592750
    • jev-odoo's avatar
      [FIX]doc_howtos_backend: typo in classname · 6d880412
      jev-odoo authored
      
      closes odoo/odoo#33518
      
      Signed-off-by: default avatarRichard Mathot (rim) <rim@openerp.com>
      6d880412
    • Sébastien Theys's avatar
      [FIX] product,sale,website_sale: compute combination possible in rpc · 51ef8514
      Sébastien Theys authored
      
      This has several advantages:
      - make the code easier to maintain by having the logic only on the python model
      - prevent price flickering when changing from/to an impossible combination
      - fix the UI for the issue mentioned in the previous commit/the opw
      - make the code much faster when using many combinations, by not requiring to
      browse and to return every existing and every archived variants
      
      The opportunity is also taken to properly throttle the rpc and to use
      "DropMisordered" on its result:
      - fix all the other remaining flickering when changing quantity or combination
      - fix the server being spammed of rpc when using the configurator modal, but
      also in a lot of other cases such as incrementing the quantity, ...
      - fix UI consistency by ensuring the result of the last rpc is always the one
      displayed, obsolete rpc returns are ignored
      
      By computing the possibility of the combination asynchronously, the two
      drawbacks are:
      - the UI is a bit less reactive than in the previously the best case scenario,
      but this almost completely mitigated by debouncing with a leading call
      - it is possible for a quick user to click on "add to cart" on an impossible
      combination before the return of the rpc, but this is not really an issue
      because when the product will be added to cart there will a check and the
      closest possible combination will be selected automatically instead
      
      Finally the event of the configurator mixin and the widgets using it have been
      cleaned to avoid the duplication of the rpc in the first place.
      
      opw-1959317
      PR: #32691
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      51ef8514
    • Sébastien Theys's avatar
      [FIX] product: fix possible combination with variant active + archive · 42cc64b5
      Sébastien Theys authored
      Before this commit, if multiple variants exist for the same combination it would
      consider the combination impossible if any of the variants was archived.
      
      After this commit, it will consider the combination impossible only if all the
      corresponding variants are archived.
      
      opw-1959317
      PR: #32691
      42cc64b5
    • Sébastien Theys's avatar
      [FIX] website_sale: fix infinite recursion from product configurator · e015ee5d
      Sébastien Theys authored
      When the configurator modal is shown on the shop page (when the add to cart
      button customize show is enabled), changing the quantity would trigger an
      infinite recursion before this commit, because the selector was not finding the
      input on the page (because it is not there), but it was not restrictive enough
      so it matched the input on the modal itself.
      
      PR: #32691
      e015ee5d
  9. May 15, 2019
    • Julien Castiaux's avatar
      [FIX] calendar: Cannot create 'free' event with reminder · be5f07c6
      Julien Castiaux authored
      
      Install CRM (we need the "Hide Private Message" record rule defined by
      that module), create a meeting as of today, set a reminder of one day,
      invite another user (Demo) as attendee, save. Edit, go to the options,
      change the "Show time as" to "free", save => access error due to the
      said record rule.
      
      The reminder is handled by the `get_next_potential_limit_alarm` method
      of the `calendar.alarm_manager` model. It uses a raw SQL query to
      perform its search. It returns a dictionary of the different events with
      data attached. Due to the "Hide Private Message" record rule, some
      records are not accessible.
      
      Original (reverted) 9c4b5200 fix was replacing the `browse` by a `search`
      in order to filter out non-accessible records. That fix was later fine
      tuned by (not-merged) 7dd93809c to exclude calendar's virtual ids. The
      real fix is to filter out records in the original result dict.
      
      opw-1974599
      
      closes odoo/odoo#33209
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      
      
      Co-authored-by: default avatarRaphël Collet <rco@odoo.com>
      be5f07c6
  10. May 21, 2019
  11. May 14, 2019
    • Nicolas Martinelli's avatar
      [FIX] purchase_stock: discount on invoice · 92393a6b
      Nicolas Martinelli authored
      
      - Create a product P
      Costing Method: FIFO
      Inventory Valuation: Perpetual (automated)
      Price Difference Account set
      - Create a PO with P, set a price of 100 (no tax).
      - Receive the product
      
      2 journal items are generated:
      
      |                 Account |   Debit|  Credit|
      |-------------------------|--------|--------|
      | Stock Valuation         |   100.0|     0.0|
      | Stock Interim (Received)|     0.0|   100.0|
      
      - Create the corresponding invoice
      - Change the:
      Discount: 10
      - Validate the invoice (for a total of 90.0)
      
      2 journal items are generated:
      
      |                 Account |   Debit|  Credit|
      |-------------------------|--------|--------|
      | Account Payable         |     0.0|    90.0|
      | Stock Interim (Received)|    90.0|     0.0|
      
      This is not correct, it should be:
      
      |                 Account |   Debit|  Credit|
      |-------------------------|--------|--------|
      | Account Payable         |     0.0|    90.0|
      | Difference Account      |     0.0|    10.0|
      | Stock Interim (Received)|   100.0|     0.0|
      
      This comes from the fact that the valuation price is compared to the
      price unit without the discount.
      
      opw-1974002
      
      closes odoo/odoo#33296
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      92393a6b
    • Nicolas Martinelli's avatar
      [FIX] purchase_stock: change PU with discount on invoice · 4927d4c5
      Nicolas Martinelli authored
      - Create a product P
        Costing Method: FIFO
        Inventory Valuation: Perpetual (automated)
        Price Difference Account set
      - Create a PO with P, set a price of 110 (no tax).
      - Receive the product
      
      2 journal items are generated:
      
      |                 Account |   Debit|  Credit|
      |-------------------------|--------|--------|
      | Stock Valuation         |   110.0|     0.0|
      | Stock Interim (Received)|     0.0|   110.0|
      
      - Create the corresponding invoice
      - Change the:
        Unit Price: 100
        Discount: 10
      - Validate the invoice (for a total of 90.0)
      
      3 journal items are generated:
      
      |                 Account |   Debit|  Credit|
      |-------------------------|--------|--------|
      | Account Payable         |     0.0|   100.0|
      | Difference Account      |     0.0|    20.0|
      | Stock Interim (Received)|   120.0|     0.0|
      
      This is not correct: the Stock Interim (Received) should have a debit of
      110.0, and the Account Payable credit should be 90.0.
      
      This comes from the fact that the difference is subtracted from
      `line['price_unit']`, which doesn't contain the discount.
      
      We can use `price_val_dif` to update the price. Moreover, the
      `price_unit` seems ultimately useless, since it is not used in:
      
      https://github.com/odoo/odoo/blob/e11bacfe512a3170f44d6d43646af914a9cf3b73/addons/account/models/product.py#L63
      
      We still update it for consistency.
      
      Fixes #32911
      Fixes #33201
      opw-1974002
      4927d4c5
    • Nicolas Martinelli's avatar
      [FIX] purchase_stock: incorrect indentation · e526b6bb
      Nicolas Martinelli authored
      Incorrect indentation following forward-port.
      e526b6bb
    • Jigar Vaghela's avatar
      [ADD] l10n_mn: Add Mongolia Accounting · 3d755262
      Jigar Vaghela authored
      
      Basic Chart of Accounts and taxes for the Mongolian
      accounting.  Tags for a lot of reports in Enterprise.
      
      A lot of different taxes are created to be able
      to represent them in the vat report. Mongolians
      are used to taxes included even for B2B.
      
      Some fiscal positions are added e.g. to automatically
      apply 0% for export.
      
      We got a lot of input from our Mongolian partner
      Baskhuu Lodoikhuu and colleagues from BumanIT LLC
      
      opw-1946238
      Separate pr for 12.3
      Closes #32830
      
      Signed-off-by: default avatarCedric Snauwaert (csn) <csn@openerp.com>
      3d755262
  12. May 20, 2019
    • Jeremy Kersten's avatar
      [FIX] base: ignore context key in compute_display_name for res_partner · 659ff0da
      Jeremy Kersten authored
      
      If you create a partner with a e.g. the key show_vat, it will be stored on
      the partner while we would like to have this information only in the name_get.
      
      After this commit, we will stop to save partner in our production database
      with the vat number stored in the name because we create the partner (with vat)
      from the invoice, where partner_id have a context with show_vat.
      
      closes odoo/odoo#33492
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      659ff0da
    • Adrian Torres's avatar
      [FIX] base: generate field translations based on index key · 09af3fac
      Adrian Torres authored
      
      The ir_translation table has an index on the (name, lang, type and value)
      key, however this index was not being used when generating field
      translations because the column `type` was missing!
      
      With this commit, we fully utilize the index when generating field
      translations.
      
      With the eCommerce with categories and 4k+ products, the time to charge
      products per category would be around 4-5s; With this patch it is
      reduced to 1-2s.
      
      opw-1961665
      
      closes odoo/odoo#33504
      
      Signed-off-by: default avatarRaphael Collet (rco) <rco@openerp.com>
      09af3fac
  13. May 17, 2019
    • Toufik Ben Jaa's avatar
      [FIX] payment: do not display postgres operational errors · 3c305dad
      Toufik Ben Jaa authored
      
      - When processing payments on the payments processing page,
      `psycopg2.OperationalError` can be raised.
      We do not want those exceptions to be displayed to the customers,
      instead we want the polling page to try to process the payments again.
      
      This commit hides the display of psycopg2 operational errors.
      
      - This commit also fixes the "processing your payments" message being
      hidden after the first polling, no matter if the processing has succeeded or not.
      
      closes odoo/odoo#33462
      
      Signed-off-by: default avatarToufik Benjaa (tbe) <tbe@odoo.com>
      3c305dad
  14. May 14, 2019
    • Romain Derie's avatar
      [FIX] website: prevent new website homepage to be '/-1' · c209c250
      Romain Derie authored
      
      Before this commit, the URL of the bootstraped homepage for a new website
      could be '/-1' instead of '/'.
      
      Indeed, creating a new website ends up calling `page.copy` which try to get an
      unique URL for the website (to avoid duplicated URL after copy). Typically, the
      copied page will have a suffix (-X).
      
      But `get_unique_path` in charge of doing that is based on `get_current_website`
      method which will/could return a wrong website (not the one we created).
      For instance the one forced in session after using the website switcher or
      creating a website or installing a theme.
      
      As those website already have (most likely) a homepage '/', get_unique_path
      will create the bootstraped homepage with '/-1' as URL.
      
      Step to reproduce (among others):
      - Create a new website in backend through res.settings screen
      - Create another new website, it's homepage will be '/-1'.
      - Repeat indefinitely, every two website created, the bug will appear.
      (One out of two, the bug won't appear since it will try to get an unique URL
      on the previously created website which only has '/-1' so '/' is assumed
      unique)
      
      closes odoo/odoo#33372
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      c209c250
  15. May 17, 2019
  16. May 19, 2019
  17. May 17, 2019
  18. May 13, 2019
    • snd's avatar
      [FIX] product: correct bug where variants can't change image · f4748c28
      snd authored
      When you import a variant or when you archive variants to only leave
      one tied to the template, the image of the variant can't be changed.
      
      If the variant has a picture and you archive all the other variants,
      when you change the image on the variant, it's the template
      image which is modified.
      
      opw 1974727
      f4748c28
  19. May 17, 2019
  20. May 16, 2019
Loading