Browse Source

[IMP] add description to models

pull/7/head
houssine 6 years ago
parent
commit
6ccc9c7e9c
  1. 2
      easy_my_coop/models/coop.py
  2. 1
      easy_my_coop/models/operation_request.py
  3. 1
      easy_my_coop/wizard/update_share_line.py
  4. 2
      easy_my_coop/wizard/validate_subscription_request.py

2
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):

1
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')

1
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):

2
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):

Loading…
Cancel
Save