1. 08 Feb, 2022 1 commit
  2. 07 Feb, 2022 1 commit
  3. 04 Feb, 2022 1 commit
  4. 03 Feb, 2022 4 commits
  5. 02 Feb, 2022 18 commits
  6. 01 Feb, 2022 1 commit
  7. 31 Jan, 2022 1 commit
    • Vincent Pelletier's avatar
      Products.ERP5Type.Core.Predicate: Obey isEmptyCriterionValid . · 57463f30
      Vincent Pelletier authored
      When EmptyCriterionValid property is true, this method is expected to
      return a query which does not match any document. This only happens when
      query_list is empty, but because of category membership checking,
      query_list is never empty: it at least contains two ComplexQueries which
      themselves may contain an empty query list, and which match all documents.
      Calling getCategoryParameterDict with an empty list is dubious, but
      changing its behaviour in ZSQLCatalog may affect more than just predicates,
      so change the behaviour in Predicate class directly by checking whether
      there is any category being matched to begin with.
      57463f30
  8. 28 Jan, 2022 1 commit
  9. 27 Jan, 2022 1 commit
  10. 26 Jan, 2022 4 commits
  11. 24 Jan, 2022 3 commits
    • Vincent Pelletier's avatar
    • Jérome Perrin's avatar
      pdm: support defining function on supply lines · 622b2b80
      Jérome Perrin authored
      We make it possible to define function the same way it's currently
      possible to define accounts. The idea is similar: to be able to use this
      information in accounting generation rules.
      
      The typical accounting generation configuration using this will use the
      function defined on the supply line if any is defined and with a fallback
      to the function defined on business process' trade model path.
      
      For now we don't introduce such configuration by default, but this may
      become part of  the configuration generated by configurator some day.
      622b2b80
    • Jérome Perrin's avatar
      accounting: show a column for items on accounting transactions views · 0ac9d669
      Jérome Perrin authored
      The view of accounting transactions have dynamic columns so that all the
      information that matters the most is displayed directly on the "main"
      view. This extends the columns to add a column for all the items attached
      to accounting movements.
      0ac9d669
  12. 21 Jan, 2022 1 commit
    • Jérome Perrin's avatar
      property_sheets: generate value accessors for source/destination accounts on default supply · 5ad2b222
      Jérome Perrin authored
      Without these accessors, we have to use constructs like:
      
          resource.edit(
              default_purchase_supply_line_destination_account='account_module/123'
          )
      
      with the accessors, we can use:
      
          resource.edit(
              default_purchase_supply_line_destination_account_value=account,
          )
      
      The former is a bit error prone, because typos in the property name
      silently create a local propery and typos in the relative URL make a
      "broken" relation.
      5ad2b222
  13. 20 Jan, 2022 1 commit
  14. 18 Jan, 2022 1 commit
    • Jérome Perrin's avatar
      dms: rename print actions not to conflict with erp5_odt_style · ea4debfe
      Jérome Perrin authored
      odt_style comes with "Print" global actions which allows getting the
      default form as ODT and convert it to selected format and DMS comes with
      "Print" actions which return a PDF of the document content.
      
      As a result, when user try to use Print, they have the same action twice
      with no way to know which one is which.
      
      This is detected by CodingStyleTestCase.test_DuplicateActions, but only
      for configurations where both erp5_odt_style and erp5_dms are installed,
      which is not the case in coding style test suite which only install the
      miminmal dependent business templates.
      ea4debfe
  15. 17 Jan, 2022 1 commit
    • Jérome Perrin's avatar
      Fix sessions using newTempBase or collections · 2e40d241
      Jérome Perrin authored
      Fixes after !1451 
      
      With the RAM implementation it was possible to use in session:
       - list or dict of temp documents
       - temp documents created with `newTempBase` ( not just `newContent(temp_object=True, ...)` )
      
      This repairs these two use cases.
      
      See merge request !1533
      2e40d241