From 0ea59cc8549a87daa01750ebccb7d5683b59108c Mon Sep 17 00:00:00 2001 From: houssine Date: Mon, 16 Jul 2018 15:20:12 +0200 Subject: [PATCH] [IMP] add status and source field and default value to trace from where a subscription request has been created --- easy_my_coop/models/coop.py | 4 +++- easy_my_coop/view/operation_request_view.xml | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/easy_my_coop/models/coop.py b/easy_my_coop/models/coop.py index d7ad24a..6bef656 100644 --- a/easy_my_coop/models/coop.py +++ b/easy_my_coop/models/coop.py @@ -125,6 +125,7 @@ class subscription_request(models.Model): state = fields.Selection([('draft','Draft'), ('block','Blocked'), ('done','Done'), + ('transfer','Transfer'), ('cancelled','Cancelled'), ('paid','paid')], string='State',required=True, default="draft") @@ -175,7 +176,8 @@ class subscription_request(models.Model): help="Keep empty to use the current date", copy=False) source = fields.Selection([('website','Website'), ('crm','CRM'), - ('manual','Manual')], string="Source", default="website") + ('manual','Manual'), + ('operation','Operation')], string="Source", default="website") _order = "id desc" # declare this function in order to be overriden diff --git a/easy_my_coop/view/operation_request_view.xml b/easy_my_coop/view/operation_request_view.xml index edecc3b..7c19e34 100644 --- a/easy_my_coop/view/operation_request_view.xml +++ b/easy_my_coop/view/operation_request_view.xml @@ -48,7 +48,7 @@ - + @@ -79,6 +79,10 @@ + + + +