1. 11 Mar, 2021 5 commits
    • Jérome Perrin's avatar
      deferred_style: Properly keep request parameters · 898ad658
      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.
      898ad658
    • Jérome Perrin's avatar
      deferred_style: alarm to automate report production · b96ec371
      Jérome Perrin authored
      See Alarm_generateReportDocumentList for the full API and the test for example
      usage.
      b96ec371
    • Jérome Perrin's avatar
      deferred_style: make the notify script a parameter · d770debe
      Jérome Perrin authored
      This enables reuse of deferred style API to produce a report, but do
      something else with the report.
      d770debe
    • Jérome Perrin's avatar
      testDeferredStyle: minor cleanups · 9f81aca6
      Jérome Perrin authored
      Split a reusable test base class and use self.username variable.
      
      Also don't set username as reference on person, this is no longer needed
      since ERP5 Login.
      9f81aca6
    • 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
  2. 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 !1369
      92dae2cf
  3. 04 Mar, 2021 9 commits
  4. 03 Mar, 2021 6 commits
  5. 02 Mar, 2021 2 commits
  6. 01 Mar, 2021 2 commits
  7. 26 Feb, 2021 4 commits
    • Jérome Perrin's avatar
      l10n_fr: add missing translations · 4b516fe8
      Jérome Perrin authored
      4b516fe8
    • Jérome Perrin's avatar
      3b15e955
    • Jérome Perrin's avatar
      base: don't acquire local role on File · 614ac5e4
      Jérome Perrin authored
      File is a top-level module document, like PDF, Text Document etc, so it
      should have its own security definition and should not acquire local roles.
      
      For cases where files are embedded as sub documents, we are using Embedded
      File, which acquire local roles.
      614ac5e4
    • Jérome Perrin's avatar
      Make Ingestion/Document scanner more customizable · fdde9b45
      Jérome Perrin authored
      In "Attach document" action of erp5_ingestion, the default publication section of attach document suggested in the dialog is defined by a type based script.
      
      We could do the same for group, so that we have a script that is easier to customize for specific cases. One use case is for accounting transactions, the group is usually the group of the entity where the document is attached.
      
      Also, we could enable type based script in document scanner dialog, which is very similar to attach document dialog, but it was not using the scripts.
      
      Similarly, we introduce a script to suggest a title in document scanner.
      
      Another difference between "Attach Document" and "Scan Document" is that the later had a "publication state" field, allowing user to choose a state for the created document. We extend this to "Attach Document" as well and introduce another customizable type based method to be able to configure a default value.
      
      See merge request nexedi/erp5!1359
      fdde9b45
  8. 25 Feb, 2021 6 commits
  9. 24 Feb, 2021 1 commit
  10. 23 Feb, 2021 3 commits