Skip to content
Snippets Groups Projects
  1. Dec 06, 2022
  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
    • JordiMForgeFlow's avatar
      [FIX] purchase_mrp: filter cancelled moves when evaluating kit · 7c32c2cd
      JordiMForgeFlow authored
      
      The current behaviour does not filter the cancelled moves when
      evaluating if the product of the purchase order line is a kit.
      This causes that, in cases where you have a cancelled wrong receipt
      where the product was being received as a kit, if a new receipt is
      created without receiving as a kit Odoo will always expect it as a kit.
      
      After the fix, the cancelled moves will not be considered, as this is what
      should be expected from cancelled operations.
      
      closes odoo/odoo#107136
      
      X-original-commit: 9659683d
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      7c32c2cd
    • Lucas Perais's avatar
      [FIX] web: remaining_days sends correct value to picker component · 341dff9b
      Lucas Perais authored
      
      Before this commit, when a date field with the remaining_days widget did not have a value
      typically on a new record form view, the props validation crashed because the datePicker widget
      received the wrong type for its value.
      
      After this commit, this is corrected and there is no crash.
      
      closes odoo/odoo#106599
      
      Related: odoo/enterprise#33901
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      341dff9b
    • Lucas Perais's avatar
      [FIX] web: x2many fields: set display name and correct supported types · 2d3956cb
      Lucas Perais authored
      Before this commit, the X2ManyField did not have a display name and its supported
      types only mentioned one2many.
      
      After this commit, those fields have a display name and the type many2many
      is rightfully put has beng handled by the fields.
      
      Part-of: odoo/odoo#106599
      2d3956cb
  3. Dec 04, 2022
  4. Dec 03, 2022
  5. Dec 02, 2022
    • Sébastien Geelen (sge)'s avatar
      [FIX] web_editor: fix commands in inline · 3776faa1
      Sébastien Geelen (sge) authored
      
      Some commands from the powerBox command bar were not working
      properly in the e-shop product "terms and conditions" section.
      
      This was due to the isolation of Odoo fields
      inside the odoo editor as a all.
      Those fields do not always have an editable block element
      to apply the command on.
      
      We disable some commands that should not be apear in this context.
      
      We also remove a redundant command (separator) in website pages.
      
      task-2962067
      
      closes odoo/odoo#107037
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      3776faa1
    • Denis Ledoux's avatar
      [FIX] base: continue stack post-processing after adding `<t groups=` · c163cbb6
      Denis Ledoux authored
      
      In a view, in the case of a field node combining
      - a `groups` attribute on the field node in the view architecture
      - a `groups` attribute on the field in the Python model
      
      e.g.
      ```py
      name = fields.Char(groups='base.group_system')
      ```
      ```xml
      <field name="name" groups="base.group_multi_company"/>
      ```
      
      The view post-processing adds a temporary `<t groups` block.
      e.g.
      ```xml
      <t groups="base.group_system">
          <field name="base.group_multi_company"/>
      </t>
      ```
      This is to make an `AND` connection with the two groups:
      the user is required to have both groups in order to see the field.
      Currently, there is no way to make that `AND` combination on the same
      node. The below:
      ```xml
      <field name="name" groups="base.group_system,base.group_multi_company"/>
      ```
      would be an `OR` connection, not an `AND.`
      Hence this temporary added `<t groups=""`.
      
      Before this revision, in such a case,
      the stack post-processing was interrupted by an unexpected side-effect:
      The field node changes of parent (the parent becomes that `t` block),
      and a condition attempting to check that the node wasn't deleted from
      the view actually checked that the parent changed, to decide to
      interrupt the rest of the stack post-processing, including the modifiers
      post-processing for that node.
      
      This revision changes this behavior,
      to check the field node no longer has a parent,
      instead of a change of parent,
      to decide that the node is indeed no longer in the view,
      and to interrupt the stack post-processing or not.
      
      This allow the field modifiers (e.g. `attrs=""`) to be post-processed
      as expected.
      
      opw-3072910
      
      closes odoo/odoo#106876
      
      Signed-off-by: default avatarDenis Ledoux (dle) <dle@odoo.com>
      c163cbb6
    • qsm-odoo's avatar
      [FIX] web_editor, website: add cover/contain option for grid images · faf19ef7
      qsm-odoo authored
      
      As a fix, this introduces a new option for images in grid mode. When an
      image is alone in a column which later becomes a grid item, or when an
      image is directly added as a grid item via the dedicated option, the
      image used `object-fit: cover` so that when the image is resized as a
      grid item, it fits the dimensions of the selected grid area.
      
      This confused some users as the image did not appear the same depending
      on the screen size. Indeed, if an image is set to take 5 columns as
      width and 3 rows as height, it does not ensure the ratio in pixels to
      stay the same depending on the screen size: the grid is always made of
      12 columns (so the width of each column depends on the screen width),
      while the rows are always 50px tall. We could enforce the ratio of grid
      items to stay the same or limit the ratio loss by reducing the 50px
      height on smaller breakpoints but that would actually increase another
      problem: for colored text grid items, their text would more easily
      overflow their fixed area.
      
      In the end, using the grid mode is about compromises, even if it allows
      to achieve nice things and to have more freedom. This commit although
      adds a new option to mitigate the issue for images: users now have the
      possibility to switch the default "cover" mode of grid images to
      "contain": in that mode, the whole image will always be visible (and
      thus keeps the same ratio) and is just "contained" in the grid area
      which is selected as dimension.
      
      opw-3069234
      
      closes odoo/odoo#106807
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      faf19ef7
    • Soukéina Bojabza's avatar
      [FIX] web_editor: display grid mode mobile view for higher screen sizes · 1ec3c472
      Soukéina Bojabza authored
      When we are in grid mode, if we decrease the screen size small enough,
      the display is back to `flex` and the columns are displayed one above
      another (-> mobile view). However, the columns in normal mode do that
      for screen sizes higher than the breakpoint set for the ones in grid
      mode, which is inconsistent. Moreover, as the images have their
      `object-fit` property set to `cover`, they become really deformed and
      therefore do not look good.
      
      This commit solves these issues by increasing the breakpoint at which
      the grid mode switches to the mobile view, that is, from `md` to `lg`.
      
      opw-3069234
      
      Part-of: odoo/odoo#106807
      1ec3c472
    • oco-odoo's avatar
      [FIX] l10n_th: fix tax report formulas · e0cd7020
      oco-odoo authored
      
      Some formulas had not been properly converted to the new format introduced in 16.0. The report crashed when opening it.
      
      OPW 3064180
      
      closes odoo/odoo#106302
      
      Related: odoo/enterprise#34279
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      e0cd7020
Loading