Add custom fields to invoice, odergroup, supplier and user

This commit is contained in:
Patrick Gansterer 2017-10-12 20:50:40 +02:00
parent 72b5a5ca82
commit 75deec9f06
13 changed files with 48 additions and 7 deletions

View file

@ -1,6 +1,7 @@
# encoding: utf-8
class Workgroup < Group
include CustomFields
has_many :tasks
# returns all non-finished tasks
has_many :open_tasks, -> { where(:done => false).order('due_date', 'name') }, :class_name => 'Task'
@ -25,6 +26,5 @@ class Workgroup < Group
errors.add(:role_admin, I18n.t('workgroups.error_last_admin_role'))
end
end
end
end