From 09ec25e3facae44a3605fb9b7124ddd920afb7c1 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Fri, 27 Aug 2021 15:09:26 +0200 Subject: [PATCH] gnu: Add trytond-product-cost-history. * gnu/packages/tryton.scm (trytond-product-cost-history): New variable. --- gnu/packages/tryton.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index e9b7c8a984..28adde6eeb 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -2217,6 +2217,33 @@ (define-public trytond-product-cost-fifo first-in-first-out option in the `Cost Method` field of the product form.") (license license:gpl3+))) +(define-public trytond-product-cost-history + (package + (name "trytond-product-cost-history") + (version "6.0.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_product_cost_history" version)) + (sha256 + (base32 "01cxx1lmcxwangk3q8lhbkd97w208qxpk96mqxv2hgds77xr42cj")))) + (build-system python-build-system) + (arguments (tryton-arguments "product_cost_history")) + (native-inputs `(,@%standard-trytond-native-inputs)) + (propagated-inputs + `(("trytond" ,trytond) + ("trytond-product" ,trytond-product) + ("trytond-stock" ,trytond-stock))) + (home-page "https://docs.tryton.org/projects/modules-product-cost-history") + (synopsis "Tryton module to historize product cost") + (description "The @emph{Product Cost History} Tryton module adds a `Cost +History` relate on the product form, showing the cost price evolution of the +product. The history is based on the cost price stored on the incoming stock +moves for goods and assets and based on the history table for service. When a +historic cost price is needed, the value is taken from this history for goods +and assets.") + (license license:gpl3+))) + (define-public trytond-purchase (package (name "trytond-purchase")