1. 05 Nov, 2020 7 commits
    • Rafael Monnerat's avatar
      Apply commit to Support use category for total price calculation. · 19e9955e
      Rafael Monnerat authored
      Original commit from : Lukasz Nowak <luke@nexedi.com>
                             3e45ec35
      19e9955e
    • Alain Takoudjou's avatar
      Apply commit: Disallow any compensation. · 5421ebcc
      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)
      5421ebcc
    • Łukasz Nowak's avatar
      Update Open Order simulation in alarm. · 02afefce
      Ł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.
      02afefce
    • Rafael Monnerat's avatar
      Remove most disguised interactions related to simulation. · 6e03da56
      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
      6e03da56
    • Romain Courteaud's avatar
      Proxy role is needed to access the site message context. · d54d18b7
      Romain Courteaud authored
      Conflicts:
      	bt5/erp5_crm/bt/revision
      d54d18b7
    • Jérome Perrin's avatar
      Related keys for translated relations · 7b434341
      Jérome Perrin authored
      Implement related keys for translated relations (like `source__translated__title`) and change content translation to index categories, by also indexing types whose translation is set in Localizer.
      
      See merge request nexedi/erp5!1292
      7b434341
    • Jérome Perrin's avatar
      Stock report valuation · 3530f7c6
      Jérome Perrin authored
      Extend stock report dialog to allow choosing a (simple) valuation method
      
      ![stock report dialog screenshot](/uploads/2e0fa7c420954c3f84260605b3a6930e/image.png)
      
      which be displayed in a new column, showing the inventory value for each line
      
      See merge request nexedi/erp5!1203
      3530f7c6
  2. 04 Nov, 2020 6 commits
  3. 29 Oct, 2020 7 commits
    • Jérome Perrin's avatar
      content_translation: Also index translations from message catalogs · f14811fa
      Jérome Perrin authored
      Now that we are able to search using content translation, we also want
      to extend this so that columns like "group__title" can be searchable in listboxs,
      but categories are usually translated with `erp5_content`, which was not indexed
      in content_translation table.
      
      Extend content translation indexing to also support translations coming from
      Localizer catalog make this possible.
      
      The only limitation I could think of is that categories will need to be reindexed
      when the messages are modified in catalog.
      f14811fa
    • Jérome Perrin's avatar
      ERP5Catalog/content_translation: support translated related keys · aee8bcac
      Jérome Perrin authored
      Translated properties are indexed in content translation table,
      so nothing prevent us from using them in related keys. Since in
      many places we show to user translated titles in relations, it
      makes sense to also support searching and sorting in catalog.
      
      This extends related keys syntax only for the newest syntax, so
      related keys like `source__translated__title=X` would allow searching
      for document who have a source relation to a document with title X.
      
      Since any properties can be translated, if for example a property
      `foo` would exist and be translatable, it would be possible to search
      using `source__translated__foo=X`
      
      This is only available when content_translation business template
      is installed.
      aee8bcac
    • Nicolas Wavrant's avatar
      erp5_core: always use the code editor for editing Python Script · 741b05d2
      Nicolas Wavrant authored
      The default value of the field was calling Base_getEditorFieldPreferredTextEditor and returned the preferred text editor, because this script assumes the content type to be text/html by default
      741b05d2
    • Vincent Pelletier's avatar
      ERP5Type.patches.CookieCrumbler: Fix balancer cookie logic. · 0732d589
      Vincent Pelletier authored
      Ever since the introduction of X-Balancer-Current-Server in SlapOS
      haproxy configuration in:
        commit c7f104fbf1f5948928f5545286afbb94fc39102b
        Author: Cédric Le Ninivin <cedric.leninivin@tiolive.com>
        Date:   Tue May 26 13:27:33 2015 +0200
      
            erp5_cluster: leave ERP5 set the haproxy cookie
      
      the balancer will overwrite this cookie's value, so do not compare it
      to our name: balancer may be calling us a name completely unrelated to
      the value getCurrentNode returns.
      So simplify this function's logic to only do what the docstring says:
      decide when to set and when to unset the balancer cookie, and let the
      balancer decide the value.
      This resolves cases where Zope would set the cookie over and over on
      every request when getCurrentNode and balancer disagree on its value.
      0732d589
    • Vincent Pelletier's avatar
    • Jérome Perrin's avatar
      erp5.util: Release erp5.util (0.4.69) · 9d32ef3a
      Jérome Perrin authored
      9d32ef3a
    • Jérome Perrin's avatar
      Testnode environment variables and log URL · 0a2145dd
      Jérome Perrin authored
      - use environment variables to pass SLAPOS_TEST_LOG_DIRECTORY and SLAPOS_TEST_SHARED_PART_LIST, as discussed on nexedi/nxdtest!2
      - Fix #20200514-218C705 - [testnode] frontend for log access
      
      See merge request nexedi/erp5!1304
      0a2145dd
  4. 28 Oct, 2020 10 commits
  5. 27 Oct, 2020 5 commits
  6. 26 Oct, 2020 2 commits
  7. 22 Oct, 2020 3 commits
    • Jérome Perrin's avatar
      core: fix error when submitting "View Diff" dialog · 813d4942
      Jérome Perrin authored
      This action was working fine the first time displayed, but clicking
      again on "View Diff" button was causing an IndexError: list index out of range
      when used on one document.
      
      This was because in this case list_selection_name exists in REQUEST, but
      is an empty string. Instead of checking that this selection name is not
      None to detect if we are in module mode or in document mode, check that
      its true-ish to also tolerate an empty string.
      813d4942
    • Jérome Perrin's avatar
      e7c4e387
    • Jérome Perrin's avatar
      core: support Manager user in Base_getDialogSectionCategoryItemList · 99c1c6c0
      Jérome Perrin authored
      Base_getDialogSectionCategoryItemList was supporting the case of
      users from zodb_users plugin, but not the case of ERP5 users with
      roles set from zodb_roles.
      
      It's a more and more common case to make manager users using a
      "normal" ERP5 user as person (so that we can reset password etc)
      and to give Manager role by zodb_roles, but this was not supported
      by this script.
      99c1c6c0