1. 12 Apr, 2021 1 commit
    • Jérome Perrin's avatar
      base: Configure substitution's "ignore missing" on notification messages · 400a1ea4
      Jérome Perrin authored
      TextDocument substitution API already supported an `ignore_missing` argument,
      so that we can programmatically control wether missing entries should be
      rendered as ${variable} or should raise an error. This makes sense for some
      "important" notifications, where not sending a message would be less problematic
      than sending a message where some variables have not been substituted.
      
      This extends this concept by allowing to configure as a property on the
      notification message wether missing entries should be ignored. This default to
      "ignore" to maintain compatbility.
      400a1ea4
  2. 09 Apr, 2021 4 commits
  3. 07 Apr, 2021 1 commit
  4. 06 Apr, 2021 1 commit
  5. 02 Apr, 2021 2 commits
  6. 01 Apr, 2021 1 commit
  7. 31 Mar, 2021 3 commits
  8. 30 Mar, 2021 1 commit
    • Jérome Perrin's avatar
      deferred_style: Properly keep request parameters · eab00f14
      Jérome Perrin authored
      When rendering reports, deferred style was only keeping request.other, but
      some places, like Products.ERP5Form.ListBox.ListBox.getParamDict read only in
      request.form, which caused different behaviours when rendering reports
      directly or in activities, because when rendering in activities request keys
      that the report dialog might have pushed were not preset in request. They
      were of course present when rendering the report directly, because this was
      the same request, so this lead to different behaviours wether reports were
      rendering in activities or directly, like we could observe in 7058ab6f
      (accounting: fix grouping option of GL when running in deferred mode, 2021-02-25)
      
      This change deferred style to properly propagate request.other and
      request.form in all activities of reports.
      eab00f14
  9. 29 Mar, 2021 9 commits
  10. 26 Mar, 2021 7 commits
  11. 25 Mar, 2021 2 commits
  12. 24 Mar, 2021 2 commits
  13. 18 Mar, 2021 1 commit
  14. 15 Mar, 2021 2 commits
  15. 12 Mar, 2021 2 commits
  16. 11 Mar, 2021 1 commit
    • Jérome Perrin's avatar
      configurator_standard: repair accounting generation with default accounts · 42c2a915
      Jérome Perrin authored
      in 772d8fed (configurator_standard: use specific sale and purchase
      business processes, 2020-07-16) we introduced scripts to look up
      dynamically accounts to use for expense/income and VAT accounts, from
      supply lines, but this accidentally broke the case where no account can be
      found on supply lines: in this case, the accounting line was not generated.
      
      Ideally, there should be fallback accounts, to keep the same behavior and
      also to prevent generation of incomplete transactions.
      
      Review the scripts, so that the "Dynamic" scripts fallback on the account
      defined on the trade model path if not found and introduce new scripts,
      where the account is not taken dynamically, but only from the trade model
      path, for use on the payable/receivable lines (where we don't want to
      lookup the account dynamically, otherwise we'll use same account as for
      expense/income)
      42c2a915