1. 26 Jan, 2024 36 commits
    • Romain Courteaud's avatar
      229a34f6
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      119953c9
    • Romain Courteaud's avatar
      slapos_subscription_request: · 1fe054da
      Romain Courteaud authored
      * subscription scenario needs project now
      * project is needed when requesting an instance
      * hardcode automated ledger category for the newly created sale packing list
      * hardcode automated ledger category for the newly created accounting transactions
      1fe054da
    • Romain Courteaud's avatar
      slapos_category: export edger category · cbb4b935
      Romain Courteaud authored
      cbb4b935
    • Romain Courteaud's avatar
      slapos_accounting: · 06801e83
      Romain Courteaud authored
      * add SlapOSLedgerConstraint
      * add SlapOSLedgerConstraint on all * Transaction
        XXX FOrces tests to fail as much as possible if ledger is not configured.
        Add test to ensure constraint is configured
      * hardcode automated ledger category for the newly created sale packing list
      * propagate ledger in the simulation tree
      * build ledger category from delivery builders
      * aggregate ledger from order builder
      * ensure ledger category is allowed on the portal type when using the constraint
      * requires ledger on Hosting Subscription, Open Sale Order and Sale Packing List
      * hardcode ledger value on Open Sale Order and Hosting Subscription
      * open order must propagate the ledger value
      * automated ledger path
      * add ledger to the accounting template
      * source_administration is not used anymore on Compute Node
      * source_administration is not used anymore on Compute Node
      06801e83
    • Romain Courteaud's avatar
      slapos_erp5: · 73aff586
      Romain Courteaud authored
      * slapos member user are not allowed anymore to create compute node
      * no need to create a dedicated local_roles from compute node source_administration
        Only slapos manager will handle compute nodes
      * duplicate test_default_scenario to happily break it
      * drop friend/personal in new scenario test
      * all members can allocation on all compute nodes
      * give user security group based on function (to access some module) and project/function (to access documents)
      * only a project computer manager can create compute nodes
      * only project computer manager is assignor on compute node
      * need a project assignment to create a compute node
      * drop group security on Instance Tree
      * drop group security from Software Instance
      * project member only need Auditor role on it
      * add customer project assignment
      * remove source_administration interaction workflow on Compute Node and add follow_up instead
      * Software Installation: move interaction workflow from destination_section to follow_up
      * give role on Software Installation to Project Compute Node Manager
      * shadow user do not need access to Compute Node anymore
      * only project comp manager can create SOftware Installation
      * project customer can create software instance
      * project customer can create instance tree
      * project people can only view the project module
      * also check PAS plugins which are not supposed to be activated
      * drop PAS shadow user plugins
      * drop shadow access from compute node module
      * drop shadow from compute node module
      * drop shadow role from computer module
      * drop shadow role from person* portal types
      * drop shadow role on project module
      * Revert "slapos_erp5: drop PAS shadow user plugins"
        Needed for accounting
      * Revert "slapos_erp5: drop shadow role from person* portal types"
      73aff586
    • Romain Courteaud's avatar
      slapos_cloud: · 4fdb95a2
      Romain Courteaud authored
      * open personal
      * allocation scope is meaningless to restrict allocation permission
      * add follow_up category on Compute Node
        To attach to a project
      * require a project reference when requesting a compute node
      * requesting a compute node requires a project
      * increase error verbosity
      * stop using shadow to allocate instance
        Use project only
      * set follow up on Instance Tree and Software Instance portal type
      * requesting an instance tree requires a project
      * assert project reference is provided
      * propagate follow up when requesting instance
      * requesting an instance requires a project
      * add follow_up accessor on compute partition
      * no need for follow_up on Compute Partition
      * directly search follow_up value on parent Compute Node
      * use new related key format
      * drop source_administration from Compute Node
      * drop source_administration on Compute Node
      * drop source_administration from Compute Node
      * Software Installation drop destination_section and use follow_up
      * stop setting role/member on Assignment by default
      * requesting an instance tree need a project reference
      * add SlapOSVirtualMasterConstraint
        XXX TODO fix broken TALES expression which prevent entering invaludated/suspended
      * configure SlapOSVirtualMasterConstraint on most slapos cloud portal types
        XXX TODO check if some are missing
      * SlapOSVirtualMasterConstraint need f#+=!$ TALES expression
      4fdb95a2
    • Romain Courteaud's avatar
      slapos_slap_tool: · 7a28f6ad
      Romain Courteaud authored
      * project reference is required for compute node
      * require a project when requesting an instance tree
      7a28f6ad
    • Romain Courteaud's avatar
      69e2b9a4
    • Romain Courteaud's avatar
      Revert "slapos_cloud: XXX do not approve computer by default" · b39b8ca5
      Romain Courteaud authored
      This reverts commit 53f61021.
      b39b8ca5
    • Romain Courteaud's avatar
      f033805d
    • Romain Courteaud's avatar
      ef7b93d1
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      EXPAND · 4ea0768a
      Romain Courteaud authored
      slapos_accounting:
      
      * no need to create open order slowly
      * trade condition has more than one supply line
      * WIP create open order for compute node
      * alarm to create compute node open order
      * categrory
      * define comp node subscription price
      
      slapos_cloud:
      
      * approve computer again
      
      slapos_subscription_request:
      
      * trigger compute node open order creation
      4ea0768a
    • Romain Courteaud's avatar
      slapos_cloud: · 047499fb
      Romain Courteaud authored
      * XXX do not approve computer by default
        TODO: create open order related to the computer usage
      * drop useless requestComputeNodeRegistration workflow transition
        This transition does nothing.
      047499fb
    • Romain Courteaud's avatar
      slapos_accounting: · f18e123e
      Romain Courteaud authored
      * restore previous price setting
      * set round price
      * disable invoice generation for consumption to see test impacted
      * XXX consumption price must be set to 0
        XXX migrate existing packing list
      f18e123e
    • Romain Courteaud's avatar
      slapos_*: change subscription price. Do not defined it as ttc · e28f33ae
      Romain Courteaud authored
      Try to understand why price is not always copied
      
      slapos_accounting: restore original price
      e28f33ae
    • Romain Courteaud's avatar
      TO SQUASH slapos_*: remove zh templates · beaa9cd8
      Romain Courteaud authored
      beaa9cd8
    • Romain Courteaud's avatar
      5ce56bfd
    • Romain Courteaud's avatar
      slapos_*: add new trade condition versions · bd4cbdd9
      Romain Courteaud authored
      The new versions do not include any price informations.
      It is needed to create new Trade Condition which inherite from those versions.
      
      Update preference to use those latest trade conditions.
      bd4cbdd9
    • Romain Courteaud's avatar
      TOSQUASH? slapos_accounting: no need to rely on the catalog to validate the trade condition · db13ae9d
      Romain Courteaud authored
      slapos_accounting: factorise code
      
      slapos_wechat: use reference sale trade condition
      
      slapos_erp5: check sale trade condition reference
      db13ae9d
    • Romain Courteaud's avatar
      slapos_accounting: use the trade condition reference instead of the id · 2df1eb7c
      Romain Courteaud authored
      sale trade condition are versionned.
      2df1eb7c
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_*: use explicit id to improve understanding of all paths · 6f6d6b3d
      Romain Courteaud authored
      Clarify trade condition title
      6f6d6b3d
    • Romain Courteaud's avatar
      ece9af93
    • Romain Courteaud's avatar
      slapos_*: define subscription prices on Sale Trade Condition · 4b57f55b
      Romain Courteaud authored
      Prices are defined on Supply Line inside Sale Trade Condition.
      
      Drop prices from Subscription Condition.
      Instead, link the Subscription Condition to a Sale Trade Condition.
      
      Apply the Sale Trade Condition on the created Open Sale Order.
      
      Stop duplicating properties from the Subscription Condition to the created Subscription Request.
      
      Payment is managed by the 'payment' category, and not the language.
      
      This allows to remove all '==zh' conditions.
      Instead, use custom Sale Trade Condition.
      4b57f55b
    • Romain Courteaud's avatar
      slapos_accounting: XXX break instance tree periodicity. Must move to hosting subscription · 9f225538
      Romain Courteaud authored
      slapos_accounting: rename script for hosting subscription
      
      slapos_accounting: revert failure error
      
      slapos_accounting: force open order line to have an Instance tree and a hosting subscription
      
      slapos_accounting: hosting subscript will host the date info
      
      slapos_accounting: set open order periodicity on the hosting subscription
      
      slapos_accounting: typo
      
      slapos_accounting: hosting subscription will contain the periodicity
      
      slapos_accounting: create hosting subscription
      
      slapos_accounting: fixup start/stop date confusion
      
      slapos_accounting: fixup
      
      slapos_cloud: add hosting subscription workflow
      
      slapos_cloud: stop using Instance Tree as Subscription Item
      
      slapos_accounting: move periodicity view on hosting subscription
      
      slapos_erp5: open order line have 2 items now
      
      slapos_cloud: open order line has 2 items now
      
      slapos_accounting: simulation is expanded from Hosting Subscription
      
      slapos_accounting: validate hosting subscription
      
      slapos_accounting: check all aggregate value
      
      slapos_accounting: revert aggregate tester
      
      slapos_accounting: simulate from hosting subscription
      
      slapos_accounting: constraint is on hosting subscription
      
      slapos_accounting: interaction are on hosting subscription
      
      slapos_subscription_request: periodicity is on hosting subscription
      
      slapos_accounting: open order line has 2 aggregate
      
      slapos_cloud: hosting subscription have a workflow again
      
      slapos_cloud: add hosting subscription template
      
      slapos_accounting: do not create open order if it was not allocated
      
      slapos_accounting: script renamed
      
      slapos_cloud: update HS_view
      9f225538
    • Romain Courteaud's avatar
      slapos_accounting: · 7056dbed
      Romain Courteaud authored
      * create empty contraint property sheet for open order
      * only one line per open order
      * workaround wrong select returning a result multiple times
      7056dbed
    • Romain Courteaud's avatar
      slapos_cloud: · afd52464
      Romain Courteaud authored
      * force open order to be created to allocate
      * only check validated open order
      * check open order consistency before allocating
      * call script on the real web section
      afd52464
    • Romain Courteaud's avatar
    • Romain Courteaud's avatar
      slapos_accounting: · 90aa47e4
      Romain Courteaud authored
      * generate one open order per instance tree
      90aa47e4
    • Romain Courteaud's avatar
      slapos_subscription_request: · 5d9126e5
      Romain Courteaud authored
      * drop not needed condition
      * factorize some code
      5d9126e5
    • Romain Courteaud's avatar
      slapos_mysql_innodb_catalog: configure title column as a keyword key · 7c920e2f
      Romain Courteaud authored
      This make usage of the relationfield nicer.
      7c920e2f
  2. 23 Jan, 2024 4 commits