Skip to content
Snippets Groups Projects
  1. Dec 06, 2022
    • Nicolas (vin)'s avatar
      [FIX] account: Disallow to post move using deprecated account. · d8c2ad46
      Nicolas (vin) authored
      
      A move in draft created with an account that is later deprecated can
      still be posted, while it shouldn't be allowed.
      Thus, we add a new error blocking this wrong behaviour.
      
      Task id #3087763
      
      closes odoo/odoo#107292
      
      X-original-commit: 71229be0
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      Signed-off-by: default avatarNicolas Viseur (vin) <vin@odoo.com>
      d8c2ad46
    • Achraf (abz)'s avatar
      [FIX] point_of_sale: Prevent traceback if opening cash is empty · fec41c60
      Achraf (abz) authored
      A TypeError traceback that occurs in `set_cashbox_pos`
      was caught by Sentry.
      
      If the user validates the openingCash with an empty input, the
      clientside code sends an empty string instead of a number to the python
      code which interprets it as a number.
      
      https://github.com/odoo/odoo/blob/84347b43063fc3032da3e03b49fc57375d8324fc/addons/point_of_sale/models/pos_session.py#L1480-L1485
      
      
      
      opw-3089337
      
      closes odoo/odoo#107284
      
      X-original-commit: 62f0117c
      Signed-off-by: default avatarAchraf <abz@odoo.com>
      fec41c60
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] l10n_{bg,cn,hu,si}: translation of CoA · ce8f6922
      Ricardo Gomes Rodrigues (rigr) authored
      
      Steps to reproduce:
      1. Create a BG company
      2. Install the BG Chart of Accounts
      3. Install the BG language
      4. Switch to the BG language
      5. The CoA is not translated
      
      This is due to a missing field in the CoA xml: `spoken_languages` which is now fixed.
      
      Moreover, the language code of Slovenian has been fixed from `si` (which is the country code) to `sl`.
      
      closes odoo/odoo#107282
      
      X-original-commit: 3d2782e0
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      ce8f6922
    • jard@odoo.com's avatar
      [FIX] tools.image: Allow conversion of P to JPEG · b11bcd93
      jard@odoo.com authored
      
      While upgrade of a customer database, A P-type image
      was being converted to JPEG image. It didn't allow to save
      as direct conversion from P-type(palette) to JPEG. So, fix
      covers conversion of such corner cases to first convert it
      to RGB and then RGB can convert it to desired output format
      opw-3043418
      
      closes odoo/odoo#107274
      
      X-original-commit: d0db7a14dec7ee6a983ede3bf7b968675f83979d
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      b11bcd93
    • Aurélien Warnon's avatar
      [FIX] sales_team: allow creating team in mono-company mode · 11d24d87
      Aurélien Warnon authored
      
      Currently, adding members in a sales.team without the multi-company group is
      not possible, the selection does not show any users.
      
      This is because the domain field for the users search ("member_company_ids") is
      not computed as none of its triggers are present in the view.
      
      To fix this, we add the 'name' field as a fake trigger to force the
      computation.
      
      Side-note: the tour was added into the CRM module as we require this module to
      have entry menus into crm.team form views.
      
      Task-3088861
      
      closes odoo/odoo#107209
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      11d24d87
    • Julien Van Roy's avatar
      [FIX] l10n_fr: fix mistakes in taxes · 0cea284e
      Julien Van Roy authored
      
      A. UX Improvement:
      
      1. get rid of the `.0%` in the tax names (makes the UI a bit harder to read)
      2. For TTC taxes, remove the TTC in the description to prevent it from appearing on the invoice's pdf
      
      B. Tax issue:
      
      Fix some mistakes in the taxes, based on reliable feedback of french partner Didier Six.
      1. Fuel purchase taxes: shouldn't imact the P1_base and P1_tax grids because these are for petroleum product to sale.
      Instead, put them in grid 20 (normal goods bought)
      2. All tax "IMPORT":
      - base line shouldn't impact the [{08/09/9B}_{base/tax}] tax grid as these are for sales operation in France and the [I{number}_{base/ tax}] are already there
      Currently, the tax is putting up [{08/09/9B} _tax] and [Ix_tax] which induce a double calculation of the due VAT
      - tax line should also impact the [24] `24 - Dont TVA déductible sur importations` in addition of the [20]
      This tax grid isn't taken into account for the total deductible  VAT calculation as it is after the total and label "dont TVA déductible[...]"
      4. OSS: add the tax grid E3 on invoice base line and F8 on refund base line
      
      task-3087037
      
      closes odoo/odoo#107158
      
      X-original-commit: 9b777fa9
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      0cea284e
    • Ivan Yelizariev's avatar
      [FIX] l10n_pe: create related field directly to speed it up · 1ca5968d
      Ivan Yelizariev authored
      Odoo ORM has special optimization for installing module with a stored related
      fields, but it requires the final field be not computed [1] (I'm not sure why),
      which is not the case for the `group_id` field. Since `account.move.line` table
      may have millions of records, we have to optimize the installation and fill
      `l10n_pe_group_id` via a single sql query.
      
      [1]: https://github.com/odoo/odoo/blob/0aff8bb9484a23c0d875d3b12259dd4e0d51e716/odoo/fields.py#L818
      
      
      
      opw-2762510
      
      closes odoo/odoo#107154
      
      X-original-commit: 63341b58
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      Signed-off-by: default avatarIvan Elizaryev (iel) <iel@odoo.com>
      1ca5968d
    • lejeune quentin's avatar
      [IMP] hw_*: Add possibility to run IoT in Windows · b7b8809e
      lejeune quentin authored
      
      Currently it is only possible to run the modules
      for the IoT Box on Raspios.
      The modifications brought by this commit brings the possibility
      that the various hw_* modules can be executed whatever the OS
      of the hardware (Linux or Windows).
      If the modules should be versioned according to the OS,
      the file will be renamed so that the end of
      the file includes *_L (for linux) or *_W (for windows)
      
      closes odoo/odoo#105938
      
      Related: odoo/enterprise#34661
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      b7b8809e
    • Victor Feyens's avatar
      [FIX] test_module_operations: nightly errors · ae559ee0
      Victor Feyens authored
      
      Enable the test for payment modules, as we want to test their install/uninstall.
      But disable the test for the deprecated payment modules, which can only be installed
      through command line since 16.0.
      
      closes odoo/odoo#103201
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      ae559ee0
    • Julien Van Roy's avatar
      [FIX] l10n_fr_fec: make tests independent from tax template · c04c9474
      Julien Van Roy authored
      
      Currently, changing the french default_tax_sale's name or account will make the
      `test_generate_fec_sanitize_pieceref` fail (for instance: with task-3087037).
      Make the l10n_fr_fec test independent from any account.tax.template change by creating a
      new tax in the setup of this test.
      
      closes odoo/odoo#107311
      
      X-original-commit: 5128c8df
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      c04c9474
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] website_slides: allow unsanitized html in the course description · cc6e4aa8
      Hubert Van de Walle (huvw) authored
      
      Steps to reproduce
      ==================
      
      - Install website_slides
      - Go to eLearning > Basics of Gardening
      - Enter edit mode
      - Drop the tabs section from the right to the purple header
      - Save
      -> We can't switch tabs
      
      Cause of the issue
      ==================
      
      The `description` and `description_short` were converted from Text
      field to Html fields in 6d914c005183aa5ae69650e3002a5a85ca83b4a6
      
      Solution
      ========
      
      Set the `sanitize_form` and `sanitize_attributes` to False
      
      See odoo/odoo#47318
      
      opw-2950825
      
      closes odoo/odoo#107299
      
      X-original-commit: e7f0f0a3
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      cc6e4aa8
    • Benjamin Vray's avatar
      [FIX] web_editor: prevent horizontal overflow caused by m2m widget · a49bdc6f
      Benjamin Vray authored
      
      When a vertical overflow is triggered in the snippets menu, a vertical
      scrollbar is added making the snippets menu slightly smaller. Most
      widgets properly adapt their width, however the many2many dropdown
      widget does not, causing a horizontal overflow and its associated
      scrollbar.
      
      Steps to reproduce the bug :
      
      - Drag and drop the "text-image" snippet in a page.
      - Click on the image in this snippet.
      - Set the "visibility" option to "Conditionally".
      - A horizontal scrollbar appears in the editor panel.
      
      This commit adapts the CSS of the m2m widget to solve the issue.
      
      task-2779530
      
      closes odoo/odoo#107293
      
      X-original-commit: de96c25a
      Signed-off-by: default avatarGuillaume-gdi <gdi@odoo.com>
      a49bdc6f
    • Eteil Djoumatchoua (etdj)'s avatar
      [FIX] sale_product_configurator: Track custom values when adding an item to cart from the website · 95465306
      Eteil Djoumatchoua (etdj) authored
      
      Steps to reproduce the issue:
      - Go to the website shop
      - Select a product which allows custom features (eg. Customizable desk)
      - Select custom and enter a value
      - Add to cart
      
      Issue:
      Neither the modal preview nor the cart of the added item doesn't show the custom value, also it
      doesn't appear in the created sale order
      
      Cause:
      The optional sale_product_configurator module hasn't implemented it
      
      opw-3052987
      
      closes odoo/odoo#106784
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      95465306
    • oco-odoo's avatar
      [FIX] account: correct cash basis rounding in multicurrency · 01cb7e96
      oco-odoo authored
      
      // CASE 1: payment with different rate
      
      1) Setup a company in USD, with EUR activated as well
      
      2) Set a rate of 1 EUR = 2 USD for date A, and 1 EUR = 3 USD for date B
      
      3) Setup a Cash basis tax of 1/3, with a non-reconcilable cash basis transition account
      
      4) At date A, create an invoice with just one line with base amount=99.99 EUR ; and using the tax setup in point 3).
      
      5) Register a full payment for this invoice at date B
      
      ===> The exchange move created by the full reconciliation consists of cash basis rounding lines for the CABA base received, transition account and tax account. 99.99 USD for the base, and 33.33 USD for the tax. Those are introduced to bring back the total amount in domestic currency to the domestic amounts computed for the invoice at date A.
      
      Impacting the tax account and base received account is totally wrong. When doing cash basis, we want to use the rate of the payment in the amounts that get reported, as it corresponds to the money that actually came in. So, none of the lines impacting those accounts should be there.
      
      Only the line impacting the cash basis transition account is useful, to bring its value back to 0. But it actually corresponds to an exchange difference, and we need to balance it with an exchange gain/loss account. This account can already be set as reconcilable, and if so, will be auto-reconciled. We now choose to only rely on that behavior. The account will not be brought to 0 in domestic currency if it's not reoncilable. If it is, it will create a regular exchange difference entry to handle this case properly.
      
      // CASE 2: multiple payments in foreign currency, at different rates
      
      1) Setup a company in USD, with EUR activated as well
      
      2) Set a rate of 1 EUR = 3 USD for date A, and 1 EUR = 2 USD for date B and 5 EUR = 1 USD for date C
      
      3) Setup a Cash basis tax of 1/3, with a non-reconcilable cash basis transition account
      
      4) At date A, create an invoice with just one line with base amount=99.99 EUR ; and using the tax setup in point 3).
      
      5) Pay 66.66 EUR at date B
      
      6) Make a second payment of 66.66 EUR at date C
      
      ===> The problem in this case is that the tax and base amounts in foreign currency (33.33 and 99.99 EUR) will need to be divided by 2 (because we're making 2 payments, hence 2 cash basis entries), and the currency rounding will round these values to 50.0 for the base (instead of 49.995) and 16.67 (instead of 16,665) for the tax. Summing the cash basis moves will hence give a total base of 100, and tax of 33,34, which is wrong.
      
      To handle this, a cash basis rounding of 0.01 EUR needs to be done in the exchange difference entry. The corresponding amount in domestic currency must be computed using the rate of the most recent payment, so it will be 0.05 USD here.
      
      Before this commit, this case behaved as the first one, and brought back the reported amount to the rate of the invoice. Moreover, since it never adjusted the amount in foreign currency, the transition account could not be fully reconciled.
      
      // FIX
      
      To handle both those cases, we now split the behavior of the CABA adjustment:
      
      - For rounding errors: we now check the foreign currency amount, and adjust it if necessary, reusing the rate of the most recent payment. If there is no foreign currency, the adjustement is still done for domestic currency, of course.
      
      - Exchange rate difference of the transition account is not handled there anymore: to do this, the transition account must be reconcilable. In case of rounding error to compensate for, the adjustment line added in the exchange difference entry will be reconciled with the one on the CABA entries and on the invoice, to reach full reconciliation.
      
      In case a transition account is not reconcilable, we only create rounding adjustments, no exchange difference.
      
      closes odoo/odoo#106274
      
      X-original-commit: aeb231e8e023b8e0590b57bd139ec379e6de7c25
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      01cb7e96
    • Pierre Paridans's avatar
      [FIX] web: mispositioned caret of the list group header · 1d8f6359
      Pierre Paridans authored
      
      **Issue:**
      
      On the first group level, the caret that prefixes the label is
      separated from the label by 5px.
      
      But, on the 2nd group level (and deeper levels), the caret and
      the label have no space in between. This is not visually pleasing.
      
      **Solution:**
      
      The span containing the caret has a fixed-width which conflicts with
      the specified padding to show hierarchy of the groups.
      
      We avoid this conflict by specifying margin to indent nested groups
      instead of padding. This indentation (start) margin is calculated in
      css to be able to reuse the values from `$spacers`. It is based on the
      dynamically assigned css var "--o-list-group-level" that is calculated
      based on the group level.
      
      We also specified the end margin using a utility class (.me-1). This
      is the space that separates the caret to the group's label.
      
      closes odoo/odoo#106228
      
      Signed-off-by: default avatarPierre Paridans (app) <app@odoo.com>
      Co-authored-by: default avatarJoseph Caburnay <jcb@odoo.com>
      1d8f6359
    • Chong Wang (cwg)'s avatar
      [IMP] core: improve translation import speed · 727ef9e0
      Chong Wang (cwg) authored
      
      this commit improves the performance of importing translations by
      1. groupup udpating data for different languages and different modules
      2. read model_terms translations data directly with xmlid to get rid of fetching
         data from ir_model_data
      
      for modules:sale_management, point_of_sale, industry_fsm, helpdesk, mrp, mrp_plm
      (62 installed modules)
      time for test_language_install is 45.14% less
      
      for all modules:
      time for test_language_install is 68.03% less
      
      closes odoo/odoo#105946
      
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      727ef9e0
    • Pierre-Yves Dufays's avatar
      [FIX] mass_mailing: fix mail template iframe height + font sizing · 38ad5bf0
      Pierre-Yves Dufays authored
      
      The view height of the mail template was too small (30px) when accessing the
      mailing view form from the mail campaign menu. This solves the problem.
      
      Note: To get better view and similar to previous version (15.3), font size has
      been adjusted.
      
      Technical note: this has been solved by adding a min-height in the css
      definition of the class (o_field_mass_mailing_html) used to display the iframe.
      This is the same value as the one already used when the template is not yet
      chosen.
      
      Task-3067603
      
      closes odoo/odoo#105907
      
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      38ad5bf0
    • Ahmed Khalaf's avatar
      [FIX] stock, mrp: popover widget sub templates · f1a9de85
      Ahmed Khalaf authored
      
      This commit changes popover widget such that instead of altering the
      popover component during app lifecycle to make dynamic
      popover templates, use `t-call` to call template passed in props.
      
      closes odoo/odoo#107104
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      f1a9de85
    • Pratik Raval's avatar
      [FIX] survey: fix add missing field 'comment field as an answer' · 3de1e63d
      Pratik Raval authored
      
      The field that adds an option in the MCQ was wrongly removed from the views in
      v15.3 in Task-2600241.
      
      This commit fixes it by adding it back with the label 'Comment is an answer'.
      
      taskID-3074257
      
      closes odoo/odoo#106826
      
      X-original-commit: e1fcfddb065b6476a539c640859fc1b5d2e4a68d
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      3de1e63d
    • UlisesRivadeneyra's avatar
      [CLA] Update Vauxoo's CLA · dc48303f
      UlisesRivadeneyra authored
      
      Incorporate Ulises Rivadeneyra (UlisesRivadeneyra) as Vauxoo's contributor
      I confirm I have signed the CLA and read the PR guidelines at
      www.odoo.com/submit-pr
      
      closes odoo/odoo#107059
      
      X-original-commit: e943bfac
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      dc48303f
  2. Dec 05, 2022
    • Camille Spiritus's avatar
      [FIX] account: fix invoice's pdf borders · 1a46b6f9
      Camille Spiritus authored
      
      Since BS5 integration in v16.0, the pdf of the invoices has changed. Borders would be present in the body of the invoice and the total detail.
      
      Came back to v15 display by using the table-borderless class on those elements.
      
      closes odoo/odoo#107221
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      1a46b6f9
    • Arnold Moyaux's avatar
      [FIX] stock_account: no amount currency on correction layer for discount · 493020b9
      Arnold Moyaux authored
      
      Usecase to reproduce:
      - Set stock valuation as perpetual
      - Create a PO with a different currency than the company
      - Validate the receipt on create the invoice
      - Set a discount on the invoice and validate it
      
      The amount currency is not set on the account.move.line created by the
      valuation layer. It could prevent the reconciliation to succeed since
      it would be base on invoice currency.
      
      It happens because the amount currency is created from the difference
      between layer price converted to invoice currency and the invoice line
      `price_unit`. However `price_unit` is missing the discount. So this pr
      add extra computation to get the gross price unit discount applied.
      
      closes odoo/odoo#107212
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      493020b9
    • John Laterre (jol)'s avatar
      [FIX] account: make hierarchy visible · a1147d91
      John Laterre (jol) authored
      
      Before this commit, the default value for `filter_hierarchy`
      was set to `never`. So each report had to explicitly set the value
      to `by_default` or `optional` in order to make it available.
      
      Instead, we should use the `optional` value by default and let
      reports that do not want it explicitly set it to `never`.
      
      task-3041037
      
      closes odoo/odoo#105788
      
      Related: odoo/enterprise#33294
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      a1147d91
    • Louis (loco)'s avatar
      [FIX] website: enable the "all pages" option of the popup snippet · f469385d
      Louis (loco) authored
      This commit enables the use of the option "All pages" when using a popup
      snippet.
      
      Steps to reproduce the bug:
      - Drag & drop a popup snippet.
      - On its option in the right panel, there is "Show On" set by default
        to "This page".
      - Try to modify this option and select "All pages".
      
      Bug observed: The "All pages" option can not be selected and the "Show
      On" stays on "This page".
      
      This commit has been done because since the version 16.0, the footer is
      on an iframe [1]. Because of that, the program does not have a direct
      access to the footer. This is why it is needed to first access the
      top-level document before using the querySelector.
      
      [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b
      
      
      
      task-2983822
      
      closes odoo/odoo#103641
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      f469385d
    • Andrea Grazioso (agr-odoo)'s avatar
      [FIX] l10n_id_efaktur: payment terms blocking payment · cbf9250c
      Andrea Grazioso (agr-odoo) authored
      
      Setup indonesian invoicing
      Create a payment term with payment in 30 days and 10% if paid before 2
      days
      Create an invoice with said payment term
      Confirm and register payment
      
      Operation will be blocked by error
      "Cannot mix VAT subject and Non-VAT subject items in the same invoice
      with this kode transaksi"
      
      This occurs when creating the payment move. All the lines have
      display_type set to 'product' (defualt value), so the system checks
      consistency of kode transaksi as in an invoice
      
      opw-3063052
      
      closes odoo/odoo#107120
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      cbf9250c
    • Julien Castiaux's avatar
      [FIX] core: skip useless controllers in routingmap · 70827a7e
      Julien Castiaux authored
      
      The routing-map is a mapping that maps HTTP verbs and paths to python
      controller methods (endpoints), e.g. it maps `GET /web/health/` to
      `/web:Home.health`. The `_generate_routing_map` function is the function
      responsible to generating the werkzeug routing-map in regard to the
      controller inheritance mechanism. The mechanism makes it possible to
      override an endpoint is various odoo modules to enrich it with new
      features, e.g. `/web/login` is overriden in website to change the visual
      of the page.
      
      Implementation-wise, the informations from each `@route` decorator must
      be merged with the other `@route` info for each endpoint override. When
      a method is not overriden in a controller, there is not new info and
      that controller should be skipped for that method.
      
      The previous implementation attempted to skip such method using the
      following idiom:
      
          if not hasattr(controller, method_name):
              continue
      
      That idiom doesn't work as `hasattr` will perform a lookup on the full
      controller's MRO instead of a lookup only on controller's own methods
      and attributes. The controller's own methods and attributes are
      actually found in `controller.__dict__`.
      
      closes odoo/odoo#107060
      
      X-original-commit: 42f52d26b6a81a68f1fe28e28971f0e7f4c97d11
      Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
      70827a7e
    • Dũng (Trần Đình)'s avatar
      [CLA] signature of dzungtran89 · c9ea8482
      Dũng (Trần Đình) authored
      
      closes odoo/odoo#106963
      
      Signed-off-by: default avatarRémy Voet <ryv@odoo.com>
      c9ea8482
    • Dũng (Trần Đình)'s avatar
      [FIX] core: typo after deprecation of recompute() in 32bc28aa · 32f94660
      Dũng (Trần Đình) authored
      Part-of: odoo/odoo#106963
      32f94660
    • niyasraphy's avatar
      [FIX] *: make some user errors translatable · edd928cd
      niyasraphy authored
      
      *: base, account_payment, l10n_ar, mrp_subcontracting, point_of_sale, pos_restaurant, purchase, sale
      
      closes odoo/odoo#106651
      
      Related: odoo/enterprise#34432
      Signed-off-by: default avatarJulien Castiaux <juc@odoo.com>
      edd928cd
    • Victor Feyens's avatar
      [IMP] sale: always give access to the product form · 7bf45b02
      Victor Feyens authored
      
      Users were not able to access the product (product/template) form view
      when the product was readonly (cf product_updatable field logic).
      
      This commit makes sure that a user can always access the product form
      view through either the external button or clicking on the product
      field itself (when readonly).
      
      Task-3063622
      
      closes odoo/odoo#105783
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      Co-authored-by: default avatarValentin Vallaeys <vava@odoo.com>
      7bf45b02
    • niyasraphy's avatar
      [FIX] various: uniquify the the ! · 09dfedfc
      niyasraphy authored
      
      Just change double the by single. This fixes various typos in error and
      code comments.
      
      closes odoo/odoo#107208
      
      Related: odoo/enterprise#34645
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      09dfedfc
    • Kevin Baptiste's avatar
      [FIX] hr: fix failing signup test · 2688f9bb
      Kevin Baptiste authored
      
      The test `test_employee_create_from_signup` was failing when the module
      `auth_signup` was installed because of the missing partner.
      
      closes odoo/odoo#107203
      
      Signed-off-by: default avatarKevin Baptiste <kba@odoo.com>
      2688f9bb
    • Antoine Guenet's avatar
      [FIX] web_editor: show the correct alignment in toolbar when in link · c3c59a44
      Antoine Guenet authored
      
      The `align` command applies the alignment to the closest block of the
      selected node. Bootstrap sets the default alignment of `.btn` to
      `center` but we don't support links with a width that is larger than
      their contents so that alignment is not visible. For these two reasons,
      we want the toolbar to show the alignment of a link's closest block
      rather than that of the link itself.
      
      closes odoo/odoo#107150
      
      X-original-commit: a3bb5b0c
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      c3c59a44
    • Antoine Guenet's avatar
      [FIX] web_editor: properly apply alignment to links · 76e1e44b
      Antoine Guenet authored
      When the selection was in a link, the alignment buttons didn't work.
      That is because they are supposed to align the parent paragraph, which
      is temporarily in a contenteditable=false context when the selection is
      in a link. This restores the context before applying an editor command,
      and restores it afterwards.
      
      task-3083748
      
      X-original-commit: 0a4eb266
      Part-of: odoo/odoo#107150
      76e1e44b
    • pedrambiria's avatar
      [FIX] payment_sips: accept scoreInfo in payment response · 67694561
      pedrambiria authored
      After a payment is processed by SIPS, a data object is posted back
      to Odoo. The data has a `ScoreInfo` element that has more than one
      `=` characters (e.g. `scoreInfo=A3;N;N#SC;N;TRANS=3:2;CUMUL=4500:250000`)
      This causes the method `_sips_data_to_object` to break, because there
      will be too many values to unpack.
      
      To fix this, we should limit the data split to 2 values. This is the
      same method used by SIPS to process data as well.
      (See: https://github.com/worldline/Sips-International-non-FR-PHPlibrary/blob/master/lib/Sips/PaymentResponse.php#L73
      
      )
      
      opw-3071315
      
      closes odoo/odoo#107129
      
      X-original-commit: 3dce793ad00b1c0b9f06c705f40e31666db74a06
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      Signed-off-by: default avatarPedram Bi Ria (pebr) <pebr@odoo.com>
      67694561
    • std-odoo's avatar
      [FIX] mail_plugin: do not enrich blacklisted domains · b4aa8c6b
      std-odoo authored
      
      Bug
      ===
      Currently, we try to enrich the domains even if they are in the
      `_MAIL_DOMAIN_BLACKLIST`. IAP always return a "missing data" error
      because it can't enrich "gmail.com", etc except for "odoo.com". In that
      case the enrichment is successful, but because the domain is
      blacklisted, we use the entire email to find the company (and so it
      will create a company for each odoo.com email addresses).
      
      The test that was removed was wrong. It works because we mocked the
      enrichment response, but in practice it will always return a missing
      data error.
      
      Task-3050230
      
      closes odoo/odoo#106873
      
      X-original-commit: 37503108
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b4aa8c6b
    • niyasraphy's avatar
      [FIX] purchase_{}, sale_stock, stock: quantities typo · 2e18bc8c
      niyasraphy authored
      
      closes odoo/odoo#106642
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      2e18bc8c
    • maximilien(malb)'s avatar
      [FIX] account, account_asset: account move views with assets · 813e1a39
      maximilien(malb) authored
      
      Since the recent css change, when going to Accounting menu then assets / deferred revenues / deferred expenses with a related bills / sales / expenses (if there is one click on it, a widget will open) the list view related assets (that is displayed when an asset_id is link) was too big for the view. By adding a colspan, the issues is solved.
      
      closes odoo/odoo#106148
      
      Task-id: 3075466
      Related: odoo/enterprise#34180
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      813e1a39
    • niyasraphy's avatar
      [FIX] point_of_sale: pos report wizard o2m tree width · b1e1ae31
      niyasraphy authored
      
      in the wizard of sales report in point of sale module, the one2many tree's width is more than the screen size due to given col=4 and scrolling option is shown.
      
      Point Of Sale -> Reporting -> Sales Details
      
      closes odoo/odoo#105509
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      b1e1ae31
    • niyasraphy's avatar
      [FIX] point_of_sale: total field label alignment · 69d78de9
      niyasraphy authored
      
      Total field label in the point of sale order form view is not aligned well in the footer.
      
      Point Of Sale -> Order -> Orders, open any existing records. label is not aligned properly in the form.
      
      closes odoo/odoo#105108
      
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      69d78de9
Loading