1. 03 Dec, 2020 5 commits
    • Romain Courteaud's avatar
      erp5_web_renderjs_ui_test: reproduce validation error issue and add asserts to... · cc87769a
      Romain Courteaud authored
      erp5_web_renderjs_ui_test: reproduce validation error issue and add asserts to make sure field has expected class
      
      * Trigger focus and blur to test renderjs functions properly
      * Add asserts to make sure we don't lose value after raise Invalid Date
      * Cover issue that invalid class does not disappear after click to create new object Foo in relation input
      * Make sure fifth_failure input has invalid class
      * Cover validation error to multicheckbox, checkbox and radio fields
      cc87769a
    • Gabriel Monnerat's avatar
      erp5_web_renderjs_ui: Improve fields to propagate error_text · ea219b74
      Gabriel Monnerat authored
      * change the label field to not display the error text by default
      * change all html5 fields (input, select, textarea) to add a custom *invalid* class when the field is invalid
      * change all html5 fields to listen to the `focus` and `blur` event (with the renderjs onEvent method)
        Then, acquire (with `declareAcquiredMethod`) and call `notifyFocus` / `notifyBlur` methods respectively.
      * change the label field to handle `notifyFocus` / `notifyBlur` (with `allowPublicAcquisition`).
        Change the validation error text display state depending on the field status
      * Trigger onStateChange to set invalid class. If error comes from input field, we need to change state locally to set invalid class
      * Regenerate gadget_erp5_nojqm.css from  erp5less.css using http://lesscss.org/less-preview/
      * Textarea gadget should not prevent default when invalid event is triggered
      * Support notifyFocus and notifyBlur in panel
      ea219b74
    • Jérome Perrin's avatar
      accounting: restrict Grouping action to user who can Add to accounting module · 27ac35c6
      Jérome Perrin authored
      Users with only view permissions in accounting should not be offered to use
      the grouping reference fast inputs, because grouping transactions is a kind
      of modification.
      27ac35c6
    • Nicolas Wavrant's avatar
    • Jérome Perrin's avatar
      testUpgradeInstanceWithOldDataFs: enable erp5-bin bt repository · 39d735e4
      Jérome Perrin authored
      Since c4026c75 (erp5_officejs: change Notebook app editor from
      iodide_master to gadget_jsmd_eval, 2020-09-23), erp5_officejs depends on
      erp5_notebook, but erp5_notebook is not present in erp5 repository, it is
      in erp5-bin repository.
      
      This test works by taking an old Data.fs and running upgrader, to update
      to latest code. The first thing it does is using
      setupAutomaticBusinessTemplateRepository to discover folder containing
      business templates repositories and enabling them. Until now it was doing
      only for erp5_core (to find parts/erp5/product/ERP5/bootstrap) and for
      erp5_base (to find parts/erp5/bt5/). Now we also need to do that for
      erp5_notebook, to find parts/erp5-bin/bt5/
      39d735e4
  2. 02 Dec, 2020 5 commits
  3. 01 Dec, 2020 2 commits
  4. 30 Nov, 2020 6 commits
  5. 26 Nov, 2020 15 commits
  6. 23 Nov, 2020 2 commits
  7. 17 Nov, 2020 4 commits
  8. 13 Nov, 2020 1 commit