1. 15 Jul, 2020 5 commits
    • Rafael Monnerat's avatar
      Apply commit to Support use category for total price calculation. · 0be47bc2
      Rafael Monnerat authored
      Original commit from : Lukasz Nowak <luke@nexedi.com>
                             3e45ec35
      0be47bc2
    • Alain Takoudjou's avatar
      Apply commit: Disallow any compensation. · c6884ff5
      Alain Takoudjou authored
      From Lukasz Nowak:
      
      1- Compensation is undesired. (51c8a250)
      
        Raise loudly with message.
      
      2- Disallow any compensation. (3c74ed07)
      
      3- Emit more informative log. (534b2e77)
      c6884ff5
    • Łukasz Nowak's avatar
      Update Open Order simulation in alarm. · 72fadc06
      Łukasz Nowak authored
      Also minimise activity hurricane by calling expand directly.
      
      Open Orders are searched using indexation timestamp, which allows to see them
      in "windows", and does not repeat expand if not needed.
      
      Generate activities and allow to pass the tag. Use search and activate
      everywhere which will allow to walk through objects without killing the cluster
      even in case of really big documents.
      
      Avoid calling isDivergent which can take few minutes to finish.
      
      causality_state comes from well designed causality workflow, which informs
      enough about delivery state. Fetching causality_state property is extremely
      fast.
      72fadc06
    • Rafael Monnerat's avatar
      Remove most disguised interactions related to simulation. · 1af6d780
      Rafael Monnerat authored
      Notes:
      
      Do nothing on 'calculate' instead of disabling *_causality_interaction_workflow as
      these interaction workflows do not generate activities directly, and do work
      that can't be postponed.
      
      By contrast, 'calculate' transition of delivery_causality_workflow is modified
      so that no 'updateCausalityState' activity is created by default.
      
      This commit also update list of method_id which should not call calculate_causality
      1af6d780
    • Romain Courteaud's avatar
      Proxy role is needed to access the site message context. · 663cd680
      Romain Courteaud authored
      Conflicts:
      	bt5/erp5_crm/bt/revision
      663cd680
  2. 13 Jul, 2020 1 commit
  3. 10 Jul, 2020 2 commits
  4. 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
  5. 07 Jul, 2020 5 commits
  6. 06 Jul, 2020 8 commits
  7. 03 Jul, 2020 9 commits
  8. 02 Jul, 2020 6 commits
    • Jérome Perrin's avatar
      pdm: make stock browser dialog an "update only dialog" · 348d0572
      Jérome Perrin authored
      This is not a dialog where user can do an action, it's just a dialog where user
      can change the parameters and update the to see the stock levels, so this
      should be using only an update action (now that this is supported).
      348d0572
    • Jérome Perrin's avatar
      pdm: remove action on Resource_viewMovementHistoryDialog · d4e7c55d
      Jérome Perrin authored
      This is the view when using drill down on stock browser, there's no action
      here, this is not a dialog where user can "Do something" so a button to "Do something" is meaningless.
      
      One reason for this button was to be able to go back to stock browser, but:
       - in ERP5JS, user can go back to stock browser by clicking again on "Stock"
         action from Views actions.
       - In erp5_xhtml_style, user can click the list header or breadcrumb.
      d4e7c55d
    • Jérome Perrin's avatar
      pdm: use different actions categories for ERP5JS and xhtml · 65c75376
      Jérome Perrin authored
      In ERP5JS we want the "interactive reports" to be available like other view
      actions, directly in the left side panel. Also "Report" are named "Export" in
      this interface (which might actually be a mistake, but it's like this now).
      Rendering a form_dialog in a view action works perfectly in ERP5JS, so we can
      take advantage of this.
      
      In xhtml_style, this can not be a object_view action, because object_view
      actions can not use form_dialog, this breaks the navigation.
      
      So split in two actions, to have the best of both worlds
      65c75376
    • Jérome Perrin's avatar
      xhtml_style: support form_dialog without action · d4743f20
      Jérome Perrin authored
      In that case the action button is not displayed.
      If there's an update action defined on the form settings, update button is
      displayed.
      Cancel button is displayed using the same rule as any dialogs (ie. everytime
      there's a cancel_url in request)
      d4743f20
    • Jérome Perrin's avatar
      web_renderjs_ui: support dialogs without action, but with update · 1a3efb85
      Jérome Perrin authored
      update should still be usable in this case
      1a3efb85
    • Jérome Perrin's avatar