1. 17 Jul, 2020 1 commit
    • Jérome Perrin's avatar
      "Disable Node" option for categories · fced4e25
      Jérome Perrin authored
      Since a89afa43 (Formulator: Support disabled items in all ItemWidget subclasses., 2014-04-02) we can include disabled items in listfields.
      This was used for example in erp5_crm to show the services with their hierarchy as disabled items and was useful to display the hierarchy.
      
      In some fields, we don't want user to select "nodes" categories, but only select "leaves" categories (ie. select the most precise category).
      This always had a problem when using "Indented title" as display method for categories, because the user can not see the actual hierarchy. This is about making it possible to display hierarchy of categories in this case where we select only leaves, so that it displays like this:
      
      ![screenshot of a category with disabled items for hierarchy](/uploads/0f3e8ef68ab6e2ec424e4e8d42fc5e2a/image.png)
      
      This required to:
      
       - introduce a new category API, `disable_node`, which is semantically very close to `filter_node` except that instead of filtering out node categories that are kept with `None` as related URL. Symmetrically, we also introduce `disable_leave`
       - make `ParallelListField` support disabled items. Even if this was properly supported in underlying fields, some parts in `ParallelListField` did not differentiate between `None` and `''`.
       - modify several forms to use `disable_node` instead of `filter_node`
      
      See merge request nexedi/erp5!1199
      fced4e25
  2. 16 Jul, 2020 4 commits
  3. 15 Jul, 2020 5 commits
  4. 14 Jul, 2020 1 commit
    • Jérome Perrin's avatar
      invoicing: "section category" fields in field library · 2df5287b
      Jérome Perrin authored
      Unlike trade and like accounting, for invoice we are using "Section Category"
      term for section category, it's no longer about "who is the owner of this
      stock" like in trade, but already "who is the entity" like in accounting
      2df5287b
  5. 13 Jul, 2020 23 commits
  6. 10 Jul, 2020 2 commits
  7. 09 Jul, 2020 4 commits
    • Jérome Perrin's avatar
      tests: simplify and deprecate assertSameSet · 232167c1
      Jérome Perrin authored
      Since a long time python unittest provides good assertions and we don't need to
      build out own.
      232167c1
    • Jérome Perrin's avatar
      credential: prevent multiple failures · 2c80a461
      Jérome Perrin authored
      If a Credential Request/Recovery can not be accepted, the alarm should not
      retry again and again.
      
      We use an hasActivity test before trying to accept to prevent causing multiple
      failing activities, if it already failed once, no need to retry more,
      CMFActivity built-in retry mechanism is enough.
      2c80a461
    • Jérome Perrin's avatar
      pdm: fix "Volume" field · 7e34f3b1
      Jérome Perrin authored
      - Use ³ instead of the HTML entity form, ERP5JS does not allow HTML in field names
      - Make Component_view uses Base_viewPDMFieldLibrary, like Product_view
      - Add the proper description of this in field library
      - Resource_viewFieldLibrary/my_base_volume is kept, for compatibility (not sure it's needed)
      - Adjust ERP5Site_checkNamingConventions to allow m³, not m&179;
      - Update all translations
      7e34f3b1
    • Jérome Perrin's avatar
      web_renderjs_ui: use consistent term for "Invalid Search Criteria" · e3752612
      Jérome Perrin authored
      We sometimes used "Invalid search criteria", sometimes "Invalid Search
      Criteria". Unify to use "Invalid Search Criteria" everywhere
      e3752612