Skip to content
Snippets Groups Projects
  1. Jun 02, 2021
  2. May 31, 2021
    • Krupal Oza's avatar
      [IMP] hr_recruitment: improve the template by refusing reason · 56948f52
      Krupal Oza authored
      
      Purpose of this task is to improve the refuse reason action to sent
      the email using the automatic template.
      Currently, when using the refuse action,there is no mail template sent
      to the applicant.
      
      In this commit, we improved Refuse Reasons wizard by adding the
      send mail inside the wizard with email template so user can select the
      send mail option and rpvide the template or default template while
      refusing th application.
      
      - On selection of the refuse reason:
        - If in the settings, the refusal reason have an email template,
      the send mail checkbox is true, and template is displayed (can be changed)
        - If the refusal don't have email template, send mail checkbox is
      unchecked by default.
      
      closes odoo/odoo#57722
      
      Taskid: 2313402
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      Co-authored-by: default avatarMahendra Barad <mba@odoo.com>
      56948f52
  3. Jun 07, 2021
    • Odoo's Mergebot's avatar
      [FW][MERGE] various: Html fields everywhere ! · 2dff7ab5
      Odoo's Mergebot authored
      
      PURPOSE
      
      Replace text fields by html ones now that our own html editor has been
      merged. Indeed it gives more options to users in the way they format their
      content without weighting too much on the UI as tools appear on demand
      and not by default.
      
      SPECIFICATIONS
      
      Convert a lot of text fields to Html fields as we have our own OdooEditor.
      In some modules code adaptation will be necessary to handle html /
      plaintext conversion when required.
      
      See individual commits per main application scope for more details.
      
      LINKS
      
      Task ID-2499504
      
      closes odoo/odoo#71776
      
      Forward-port-of: odoo/odoo#70663
      Related: odoo/enterprise#18778
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      2dff7ab5
    • dht-odoo's avatar
      [FIX] web: fix scss of ol tag in report · 3d35ea64
      dht-odoo authored
      This is a temporary fix, it needs to be fix properly in future.
      It was working properly with HTML reports but when it is render with
      wkhtmltopdf it does not apply padding on left. Due to which issue is occuring.
      
      Task id: 2499504
      
      X-original-commit: 2958c8d08f4bdab94ba55fc944db6d314fb3fa43
      3d35ea64
    • dht-odoo's avatar
      [FIX] web: fix js traceback of imageType variable · 02500430
      dht-odoo authored
      X-original-commit: 895f262e03d0aaa6d00f2ba937561be0d8b8fd28
      02500430
    • dht-odoo's avatar
      [IMP] hr: improves field type from text to html · 5ce7ad70
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) fleet.vehicle -> description
      2) fleet.vehicle.log.contract -> notes
      3) hr.job -> description
      4) hr.contract -> note
      5) hr.leave.allocation -> notes
      6) hr.applicant -> description
      7) lunch.product -> description
      8) lunch.order -> product_description
      9) lunch.product.report -> description
      
      Task Id: 2499504
      
      X-original-commit: afe52b050a7667f3f20696cd48cd922f635a941c
      5ce7ad70
    • dht-odoo's avatar
      [IMP] website_form: converts text data into html data · a7437aac
      dht-odoo authored
      In website forms, for both html/text type of fields,
      we provide simple textarea to users for entering the data.
      And, we store the data as it is for both of them.
      But with this change, we're trying to convert plain text
      (entered by user in the online form for html type of fields)
      into to html, so for example it can replace \n with <br> and
      properly formatted data can be saved.
      
      Task id: 2499504
      
      X-original-commit: b8d5b61333b0e8570ea2eb0535e37a0025514812
      a7437aac
    • dht-odoo's avatar
      [IMP] crm: improves description field type from text to html · 586ae4bc
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) crm.lead -> description
      2) event.event -> note
      
      Task Id: 2499504
      
      X-original-commit: 524e2f089a611d897b98d86001bda5d17263db66
      586ae4bc
    • dht-odoo's avatar
      [IMP] maintenance: improves field type from text to html · f2474761
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> fields
      
      1) maintenance.request -> description
      2) maintenance.equipment -> note
      3) maintenance.equipment.category -> note
      4) mrp.workcenter -> note
      5) mrp.workorder -> operation_notes
      6) mrp.routing.workcenter -> note
      7) repair.order -> internal_notes
      8) repair.order -> quotation_notes
      
      Task Id: 2499504
      
      X-original-commit: 0cca26b5358cd9d69a65c6b93cfecb33d7e659c5
      f2474761
    • dht-odoo's avatar
      [IMP] account: improves field type from text to html · 23483865
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) account.move -> narration
      2) account.payment.term -> note
      3) account.fiscal.position -> note
      4) res.company -> invoice_terms
      5) res.config.settings -> invoice_terms
      
      Task Id: 2499504
      
      X-original-commit: 0f3c7f153e8bd20f83b7d1df031634996d36935b
      23483865
    • dht-odoo's avatar
      [IMP] purchase: improves field type from text to html · c6528930
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) purchase.order -> notes
      2) purchase.requisition -> description
      
      Task Id: 2499504
      
      X-original-commit: 43958eff2b9346420104002d628d5ca9225f8090
      c6528930
    • dht-odoo's avatar
      [IMP] website_slides: improves field type from text to html · b8fb3381
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) slide.channel -> description
      2) slide.channel -> description_short
      3) slide.slide -> description
      
      Task Id: 2499504
      
      X-original-commit: 6d914c005183aa5ae69650e3002a5a85ca83b4a6
      b8fb3381
    • dht-odoo's avatar
      [IMP] calendar: improves field type from text to html · dbf1ab15
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Adding a new method convert_online_event_desc_to_text
      Because online events have fixed format for the description,
      this method removes some specific html tags, and converts it into
      readable plaintext (to be used in external calendars).
      
      Models -> Fields
      
      1) calendar.event -> description
      
      Task Id: 2499504
      
      X-original-commit: 0d5ca6a6fe8821b4ec19dd603bde116518721792
      dbf1ab15
    • dht-odoo's avatar
      [IMP] stock: improves field type from text to html · 366aa290
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fieldss
      
      1) stock.location -> comment
      2) stock.picking -> note
      
      Task Id: 2499504
      
      X-original-commit: 96f5316a219568add44bee528245c2c8e49c3bbc
      366aa290
    • dht-odoo's avatar
      [IMP] sale, product: improves field type from text to html · bea57907
      dht-odoo authored
      It replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      Models -> Fields
      
      1) sale.order -> note
      2) sale.order.template -> note
      
      Task Id: 2499504
      
      X-original-commit: 6a345c2695129a5cd907e5e23e057871ebf9ebfa
      bea57907
    • dht-odoo's avatar
      [IMP] web, {base}_setup: improves field type from text to html · 1ef6fd90
      dht-odoo authored
      Replace text fields to html fields as we have our own 'OdooEditor'.
      Indeed, it gives more options to users in the way they format their
      content without weighting too much on the UI
      (tools appear on demand and not by default).
      
      In this commit we replace report_footer and report_header field of
      "base.document.layout, res.config.settings" model as
      they are related fields of res.company models field
      report_footer, report_header.
      
      Task Id: 2499504
      
      X-original-commit: 4c474d0d2055efe81fdc21502aa5957fe80af7ef
      1ef6fd90
    • dht-odoo's avatar
      [IMP] web: add isHtmlEmpty method in kanban view · 18ad07c0
      dht-odoo authored
      In this commit we have added new method name isHtmlEmpty in
      kanban view. As we are convertting text field to html field,
      we will need to check html field in if conditions.
      
      As Html field will contain tags we cannot check it every time
      perfectly. So, we need this method to make sure html field is
      empty or not.
      
      Task id: 2499504
      
      X-original-commit: 2968dcea7fb58795eeb34949f4bbfc1029938cd1
      18ad07c0
    • dht-odoo's avatar
      [IMP] base, mail, portal: improves is_html_empty method · 57261b10
      dht-odoo authored
      Before this commit there were few cases in which
      is_html_empty method was not working as our expectation.
      In cases such as "<p class=""><br/></p>", "<p id=""><br/></p>"
      and many other cases.
      
      In this commit we improves regex of is_html_empty method.
      Mow from this commit all kind of attributes will be consider
      in this method.
      
      In this commit we also have added is_html_empty in mail template, portal
      values and in report values also for rendering templates.
      
      Task id: 2499504
      
      X-original-commit: fd0a05f2955b9f7e9ae7233afebfd6240c9244dd
      57261b10
  4. Jun 04, 2021
  5. Jun 07, 2021
    • Julien Banken's avatar
      [FW][FIX] crm: fix incorrect prefix removal from phone filter · f0f1cf39
      Julien Banken authored
      
      When the user searches a phone number, the search function will generate
      a pattern by removing the "+" sign as well as well as the prefix "00" from
      the input string.
      
      Problem:
      
      If the input string starts with "+", it means that the phone number will
      be prefixed by something different than "00". As the function will
      systematically remove the first occurrence of "00" from the input string,
      the function can remove part of the input string that does not correspond
      to a prefix. The search results can hence be incorrect.
      
      Example:
      
      If the user types "+32485001122", the function will remove the "+" sign
      and the first occurrence of "00" from the input string. In the provided
      example, the function will search phone numbers matching with the pattern
      "324851122" which is incorrect.
      
      Solution:
      
      The function should remove the first occurrence of "00" iff the phone
      starts with "00".
      
      Task id: 2479277
      COM PR: odoo/odoo#69729
      
      closes odoo/odoo#70954
      
      X-original-commit: 53b4a7cf045df8828716e31e6d2a56cf93123bba
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      f0f1cf39
  6. Jun 04, 2021
  7. Jun 01, 2021
  8. Jun 04, 2021
Loading