[FIX]: base module :Request menu - closed state (it desappears)
bzr revid: ron@tinyerp.com-20100930054529-a1e2cnlc27n4mdty
This commit is contained in:
@@ -299,7 +299,7 @@
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Workflow Instances">
|
||||
<filter icon="terp-camera_test" string="Active" domain="[]" context="{'search_default_active': 1}"/>
|
||||
<filter icon="terp-camera_test" string="Active" domain="[]" context="{'search_default_active': 1}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="wkf_id"/>
|
||||
<field name="uid"/>
|
||||
@@ -357,7 +357,7 @@
|
||||
<field name="type">search</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Workflow Workitems">
|
||||
<filter icon="terp-camera_test" string="Active" domain="[]" context="{'search_default_active': 1}"/>
|
||||
<filter icon="terp-camera_test" string="Active" domain="[]" context="{'search_default_active': 1}"/>
|
||||
<separator orientation="vertical"/>
|
||||
<field name="act_id"/>
|
||||
<field name="subflow_id"/>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
#
|
||||
# OpenERP, Open Source Management Solution
|
||||
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
|
||||
#
|
||||
@@ -15,7 +15,7 @@
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# 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/>.
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
@@ -50,7 +50,7 @@ class res_request(osv.osv):
|
||||
return True
|
||||
|
||||
def request_close(self, cr, uid, ids, *args):
|
||||
self.write(cr, uid, ids, {'state':'closed', 'active':False})
|
||||
self.write(cr, uid, ids, {'state':'closed'})
|
||||
return True
|
||||
|
||||
def request_get(self, cr, uid):
|
||||
@@ -113,7 +113,7 @@ class res_request_history(osv.osv):
|
||||
'name': lambda *a: 'NoName',
|
||||
'act_from': lambda obj,cr,uid,context={}: uid,
|
||||
'act_to': lambda obj,cr,uid,context={}: uid,
|
||||
'date_sent': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'date_sent': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
}
|
||||
res_request_history()
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<field name="model">res.request</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Requests" colors="blue:state in ('draft');gray:state in ('closed')">
|
||||
<tree string="Requests" colors="blue:state in ('waiting');gray:state in ('closed')">
|
||||
<field name="create_date"/>
|
||||
<field name="act_from"/>
|
||||
<field name="act_to"/>
|
||||
|
||||
Reference in New Issue
Block a user