1. 05 Feb, 2025 30 commits
  2. 04 Feb, 2025 1 commit
  3. 03 Feb, 2025 3 commits
    • Xiaowu Zhang's avatar
      erp5_mes_quality_assurance_test: add tests · 84c7c0ee
      Xiaowu Zhang authored
      84c7c0ee
    • Xiaowu Zhang's avatar
      erp5_mes_quality_assurance: add quality operation · d493113a
      Xiaowu Zhang authored
      we mainly add a Quality Assurance Module, which mainly contains: Quality Control, Gate, Traceability, SMON, ACOM
      
      Quality Control: Present a quality control, such as validate document
      Gate: when a gate is posted, the quality element which's int index is greater than this one and smaller than next gate will change to Expected state
      Traceability: used to record the informations of products used
      SMON: it's like a Gate, when validate, the product is off of fabrication line
      ACOM: all controls are finished, manufacturing execution is finished
      
      The Quality Element has a Quality Assurance Workflow workflow described as blow
      Draft -> Creation State
      Queued -> Document is planned, wait to show to the user
      Expected -> Document is shown to the user for it to be completed
      Pending Update -> A version of this document has been posted that doesn't satisfy Quality Assurance. A New version is needed. (useful for Quality Operation that needs to be redone). Document is shown to the user for it to be completed.
      Posted -> Document has been completed by the user.
      Archived -> A new version of the document has been posted, the old one become archived
      it has also a Quality Assurance Interaction Workflow which is used to show next /archive previous  quality element
      d493113a
    • Xiaowu Zhang's avatar
      erp5_corporate_identity&test: fix UnicodeEncodeError when export page · 1f86d1e2
      Xiaowu Zhang authored
      it's a regression introduced by 1b555dbf
      1f86d1e2
  4. 31 Jan, 2025 4 commits
  5. 29 Jan, 2025 2 commits
    • Jérome Perrin's avatar
      *: replace erp5_site_global_id by a mechanism in test framework · dfd1873b
      Jérome Perrin authored
      erp5_site_global_id was from the tiolive time, when we were using ERP5
      with mariadb and memcached instances shared by many zope instances, this
      was used as a way to implement namespaces in memcached, to prevent
      conflicts such as two different zope using the same cache keys.
      
      Nowadays, we no longer share memcached, each ERP5 instance has its own
      memcached and this prefixing is no longer needed, but there is still one
      exception, when we run test using runTestSuite with --node_quantity
      higher than 1, we have multiple running test instances sharing the same
      mariadb and the same memcached. In that case, each test instance
      uses a different mariadb database, but the risk of conflict remain for
      memcached.
      
      To solve this, we introduce a prefix for keys, choosen randomly at test
      startup.
      
      This was more or less what the current implementation was trying to do,
      but we were setting erp5_site_global_id on the wrong object, so it was
      not working since 4889d523 (Define property's default value at class
      level., 2012-12-31). Also, this was only done at the level of SharedDict,
      but some APIs such as CacheTool or SessionTool use MemcachedDict
      directly. There was other problems that using the sql connection string
      encoded in base64 was a too long prefix, because memcached are limited
      in size. Also it was not preventing collisions when running tests on
      the same test node, each runUnitTest execution was still having
      pollution from the previous runUnitTest.
      dfd1873b
    • Jérome Perrin's avatar
      accounting_l10n_fr: do not export transactions with no lines in FEC · a51637b5
      Jérome Perrin authored
      This does not validate against the schema:
      
         Element 'ecriture': Missing child element(s). Expected is ( ligne ).
      a51637b5