~unifield-team/unifield-wm/us-927

« back to all changes in this revision

Viewing changes to delete_button/__openerp__.py

  • Committer: matthieu.choplin at msf
  • Date: 2012-08-17 14:50:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1116.
  • Revision ID: matthieu.choplin@geneva.msf.org-20120817145002-kuhewnsw7njvjapd
uf-1346: hide the delete button when the doc are not in draft state and remove the method allow_cancel of picking because the method was already done by PMA. The delete button is now a button of type 'object' for the modified doc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*- 
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Management Solution
 
5
#    Copyright (C) 2011 TeMPO Consulting, MSF, Smile
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU Affero General Public License as
 
9
#    published by the Free Software Foundation, either version 3 of the
 
10
#    License, or (at your option) any later version.
 
11
#
 
12
#    This program is distributed in the hope that it will be useful,
 
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#    GNU Affero General Public License for more details.
 
16
#
 
17
#    You should have received a copy of the GNU Affero General Public License
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
#
 
20
##############################################################################
 
21
 
 
22
{
 
23
    "name": "MSF Delete Button",
 
24
    "version": "1.0",
 
25
    "depends": [
 
26
                "stock",
 
27
                "purchase",
 
28
                "tender_flow",
 
29
                "procurement_request",
 
30
                "kit",
 
31
                ],
 
32
    "author": "MSF, TeMPO Consulting, Smile",
 
33
    "website": "",
 
34
    "category": "Specific Modules",
 
35
    "description": """
 
36
        Hide delete buttons according to the state.
 
37
    """,
 
38
    "init_xml": [
 
39
    ],
 
40
    'update_xml': ['view/picking_view.xml',
 
41
                   'view/purchase_view.xml',
 
42
                   'view/sale_view.xml',
 
43
                   'view/tender_view.xml',
 
44
                   'view/kit_view.xml',
 
45
                   ],
 
46
    'demo_xml': [
 
47
    ],
 
48
    'test': [
 
49
             ],
 
50
    'installable': True,
 
51
    'active': False,
 
52
}
 
53