Skip to content
Snippets Groups Projects
  1. Jun 21, 2023
    • Thomas Lefebvre (thle)'s avatar
      [FIX] industry_fsm, project: add a default project · e4f538ef
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      -------------------
      - create a stage without selecting a project.
      
      Issue:
      ------
      The new stage is inaccessible.
      
      Cause:
      ------
      When the project is not defined, the following ORM command is used:
      `[6, False, []]` for the `project_ids` field.
      
      Solution:
      ---------
      When we create a project stage (project task type),
      it is essential that we link it to a project.
      Add the possibility to override `_get_default_project_ids`.
      Set default project as first fsm project if not project in
      the context.
      
      opw-3322992
      
      closes odoo/odoo#125318
      
      Related: odoo/enterprise#42529
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      e4f538ef
  2. Jun 20, 2023
  3. Jun 19, 2023
  4. Jun 18, 2023
  5. Jun 16, 2023
  6. Jun 15, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: no xml declaration with the send & print · d771f745
      Julien Van Roy authored
      
      Issue: the xml declaration "<?xml version='1.0' encoding='UTF-8'?>" is
      lost when opening the send & print wizard with existing xml attachments.
      
      Explanation: When opening the send and print wizard, the PDF are
      generated and postprocessed by `_postprocess_pdf_report`. In the
      `_postprocess_pdf_report` override in `account_edi_ubl_cii`, the xml
      attachments are parsed through `tree = etree.fromstring(xml)`, then the
      base64 PDF is inserted, and the etree is converted to a bytes through
      `etree.tostring(cleanup_xml_node(tree))` and the resulting bytes is
      written back on the attachment, but the xml declaration disappeared.
      
      Solution: include the arguments `xml_declaration=True, encoding='UTF-8'`
      in the `tostring` function when converting the etree to a bytes.
      
      opw-3144519
      
      closes odoo/odoo#125266
      
      X-original-commit: d89f5cb2
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      d771f745
    • Antoine Dupuis (andu)'s avatar
      [FIX] l10n_it_edi: Generate correct XML for negative invoice lines · 34e6b2f7
      Antoine Dupuis (andu) authored
      
      When creating an invoice with a positive line and a negative line, with
      different taxes, the DatiRiepilogo node for the tax of the negative
      line contained positive amounts when they should be negative.
      
      This is because we were applying `abs()` too naively in the XML template
      and in the code of _l10n_it_edi_prepare_fatturapa_tax_details.
      
      This bugfix commit changes the logic to no longer use abs().
      
      We also include a test to check that the XML is correctly generated for
      credit notes.
      
      Back-port of #121933
      
      opw-3316300
      
      closes odoo/odoo#125198
      
      X-original-commit: 17f336e4
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarAntoine Dupuis (andu) <andu@odoo.com>
      34e6b2f7
    • VAN BOSSUYT Nicolas's avatar
      [FIX] website: prevent date input to fallback on today's date · d127b6ec
      VAN BOSSUYT Nicolas authored
      
      The cause of the issue is that `datetimepicker('viewDate')` will return
      the datetime of today by default event if the user selects nothing, to
      remedy this, we now check if the user has chosen something before
      storing the content of the field in `form_values`.
      
      Step to reproduce:
      - Install website_crm_partner_assign to have the "Partnership Date"
        field on res.partner.
      - Install website_sale to have the "Create customer" capability on the
        website forms.
      - Drag & drop a form snippet on any page
      - Select "Create customer" as form action
      - Add a custom field "Partnership Date"
      - Submit the form without filling the Partnership Date field
      - The field will be set to today's date while it should have been left
        void.
      
      opw-3333364
      
      closes odoo/odoo#124548
      
      X-original-commit: a2a49579
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      d127b6ec
    • Bruno Boi's avatar
      [FIX] web: sync reposition for nested poppers · 4de65cca
      Bruno Boi authored
      This commit will have nested components making use of
      the usePosition hook to synchronize their repositioning.
      
      **Before this commit**
      Each component handles its own repositioning logic.
      If it is mounted somehow inside another component using that
      same logic, conflicts occur in some circumstances.
      
      **After this commit**
      It is now ensured that, in case of nested positioned components,
      the whole chain of repositioning computations is called in the
      proper order: from the parent to the children.
      
      **Example**
      - Before
        ![before]
      - After
        ![after]
      
      [before]: https://github.com/odoo/odoo/assets/1159815/3c9cfae7-db68-4707-a73c-ad7e2e71d4bf
      [after]: https://github.com/odoo/odoo/assets/1159815/a21f56e0-d8e3-48c1-9509-8e6ee5040d4b
      
      
      
      closes odoo/odoo#125048
      
      Signed-off-by: default avatarMichaël Mattiello (mcm) <mcm@odoo.com>
      4de65cca
Loading