small refactorings

This commit is contained in:
Youssef Elouahby 2018-11-02 02:00:57 +01:00
parent f4bfa8afe9
commit 8ceb95f3f3
2 changed files with 3 additions and 1 deletions

View File

@ -16,4 +16,4 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from . import golem_activity, golem_activity_registration_slot
from . import golem_activity, golem_activity_registration_slot, golem_activity_registration

View File

@ -29,3 +29,5 @@ class GolemActivity(models.Model):
slots_duration = fields.Float(string='Registration Slot Duration')
registration_slot_ids = fields.One2many('golem.activity.registration.slot', 'activity_id',
string='Registration Slots')
#@api.constrains('slots_number', 'slots_duration')