From 6ccc9c7e9c79eb165b5fd92ff89611e8d1e8951b Mon Sep 17 00:00:00 2001 From: houssine Date: Tue, 28 May 2019 15:08:38 +0200 Subject: [PATCH] [IMP] add description to models --- easy_my_coop/models/coop.py | 2 ++ easy_my_coop/models/operation_request.py | 1 + easy_my_coop/wizard/update_share_line.py | 1 + easy_my_coop/wizard/validate_subscription_request.py | 2 +- 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index e0932d1..7218954 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -569,6 +569,7 @@ class SubscriptionRequest(models.Model): class ShareLine(models.Model): _name = 'share.line' + _description = "Share line" @api.multi def _compute_total_line(self): @@ -602,6 +603,7 @@ class ShareLine(models.Model): class SubscriptionRegister(models.Model): _name = 'subscription.register' + _description = "Subscription register" @api.multi def _compute_total_line(self): diff --git a/easy_my_coop/models/operation_request.py b/easy_my_coop/models/operation_request.py index 19c1e6d..71cb4b8 100644 --- a/easy_my_coop/models/operation_request.py +++ b/easy_my_coop/models/operation_request.py @@ -7,6 +7,7 @@ from odoo.exceptions import ValidationError class operation_request(models.Model): _name = 'operation.request' + _description = "Operation request" def get_date_now(self): return datetime.strftime(datetime.now(), '%Y-%m-%d') diff --git a/easy_my_coop/wizard/update_share_line.py b/easy_my_coop/wizard/update_share_line.py index f86acab..f48ec58 100644 --- a/easy_my_coop/wizard/update_share_line.py +++ b/easy_my_coop/wizard/update_share_line.py @@ -4,6 +4,7 @@ from odoo.exceptions import UserError class ShareLineUpdateInfo(models.TransientModel): _name = "share.line.update.info" + _description = "Share line update info" @api.model def _get_share_line(self): diff --git a/easy_my_coop/wizard/validate_subscription_request.py b/easy_my_coop/wizard/validate_subscription_request.py index dac3af6..21131de 100644 --- a/easy_my_coop/wizard/validate_subscription_request.py +++ b/easy_my_coop/wizard/validate_subscription_request.py @@ -3,7 +3,7 @@ from odoo import api, models class ValidateSubscriptionRequest(models.TransientModel): _name = "validate.subscription.request" - _description = "Update Partner Info" + _description = "Validate subscription request" @api.multi def validate(self):