Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add `derived_done_ratio` to the work package base contract

Aaron Contrerasadeafdf911a3
diff --git a/app/contracts/work_packages/base_contract.rb b/app/contracts/work_packages/base_contract.rb
index a5e488c562b..daf636c16b3 100644
--- a/app/contracts/work_packages/base_contract.rb
+++ b/app/contracts/work_packages/base_contract.rb
@@ -56,6 +56,8 @@ module WorkPackages
writable: ->(*) {
model.leaf? && Setting.work_package_done_ratio == 'field'
}
+ attribute :derived_done_ratio,
+ writable: false
attribute :estimated_hours
attribute :derived_estimated_hours,