1. 29 Mar, 2021 3 commits
    • Jérome Perrin's avatar
      CMFActivity: Always set zope.globalrequest · 9651e553
      Jérome Perrin authored
      ERP5 uses a mix of context.REQUEST and Products.ERP5Type.Global.get_request(),
      which now uses zope.globalrequest.getRequest().
      CMFActivity reconstruct the original request before executing activity, so that
      the activity is executed with a request equivalent to the request at the time
      where the method was activated. For this, context.REQUEST was properly restored,
      but get_request()/globalrequest was only restored when the REQUEST had some
      Accept-Language header, so that it replays the language negociation for
      Localizer.
      
      With browser requests, I guess every browser pass an Accept-Language header (
      according to https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
      all major browser support it), but within unit tests such header is not present.
      So this lead to activities with unit test requests being slightly different,
      because as they don't have Accept-Language, context.REQUEST was set, but the
      global request was not set, so they were running with two different requests
      in context.REQUEST and global request, leading to some problems for example
      with formulator fields.
      9651e553
    • Jérome Perrin's avatar
      deferred_style: alarm to automate reports production · 9e6db4ee
      Jérome Perrin authored
      See merge request !1357
      9e6db4ee
    • Georgios Dagkakis's avatar
      2e60dde5
  2. 26 Mar, 2021 7 commits
  3. 25 Mar, 2021 2 commits
  4. 24 Mar, 2021 2 commits
  5. 18 Mar, 2021 1 commit
  6. 15 Mar, 2021 2 commits
  7. 12 Mar, 2021 2 commits
  8. 11 Mar, 2021 2 commits
    • 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
    • Jérome Perrin's avatar
      accounting: fix grouping option of GL when running in deferred mode · 7058ab6f
      Jérome Perrin authored
      This omit_grouping_reference key was not set as selection parameters, so
      Node_getAccountingTransactionList could not find it in selection when running
      in deferred mode.
      
      In non deferred mode, it was working, because selection is set with values from
      request and it was same request, but deferred style uses activities, so it's
      different requests.
      7058ab6f
  9. 10 Mar, 2021 2 commits
    • Jérome Perrin's avatar
      base: make BankAccount.getReference use BankAccount.getIban · b808a05f
      Jérome Perrin authored
      When IBAN is defined, use it by default for reference. IBAN is used by
      default all over europe, so when it's set it should be used by default for
      reference.
      Mixing IBAN and other properties does not make sense, so this change
      should not have unexpected side effects.
      
      We also update "edit_order" on BankAccount_view so that title properly
      fallbacks on reference when reference is iban.
      b808a05f
    • Jérome Perrin's avatar
      Use payment conditions in "create related payment" action · 92dae2cf
      Jérome Perrin authored
      To ease "manual" (ie. not from payment rule simulation) creation of payments,
      update "create relate payment" so that it suggests the payment mode and the
      payment date from payment conditions of the invoice's trade condition.
      
      See merge request nexedi/erp5!1369
      92dae2cf
  10. 04 Mar, 2021 9 commits
  11. 03 Mar, 2021 6 commits
  12. 02 Mar, 2021 2 commits