[IMP]CRM action : removals of redondent buttons for cancel and done actions (because of statusbar)

This commit is contained in:
Fabien BOURGEOIS 2017-11-13 08:19:08 +01:00
parent 85408448e5
commit b048d5d02b
4 changed files with 5 additions and 26 deletions

View File

@ -18,7 +18,7 @@
{
'name': 'CRM Actions',
'summary': 'Action management, instead of new activity, in CRM',
'version': '10.0.1.1.0',
'version': '10.0.1.2.0',
'category': 'Sales',
'author': 'Fabien BOURGEOIS - Yaltik',
'license': 'AGPL-3',

View File

@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-10-29 10:01+0000\n"
"PO-Revision-Date: 2017-10-29 10:01+0000\n"
"POT-Creation-Date: 2017-11-13 10:01+0000\n"
"PO-Revision-Date: 2017-11-13 10:01+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@ -93,7 +93,7 @@ msgstr "Retirer"
#. module: yaltik_crm_action
#: selection:crm.action,state:0
msgid "Canceled"
msgstr "Retiré"
msgstr "Annulée"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
@ -144,7 +144,7 @@ msgstr "Nom affiché"
#: selection:crm.action,state:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Done"
msgstr "Terminé"
msgstr "Terminée"
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_calendar_event

View File

@ -75,21 +75,6 @@ class CrmAction(models.Model):
action.display_name = u'[{}]{}'.format(action.action_type_name,
details)
@api.multi
def confirm(self):
""" Changes state to done """
self.write({'state': 'done'})
@api.multi
def set_to_draft(self):
""" Changes state to draft """
self.write({'state': 'draft'})
@api.multi
def cancel(self):
""" Cancel action """
self.write({'state': 'cancel'})
@api.multi
def create_linked_event(self):
""" Creates a linked event """

View File

@ -27,12 +27,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="arch" type="xml">
<form string="Actions">
<header>
<button string="Mark as Done" name="confirm" type="object"
states="draft" class="oe_highlight"/>
<button string="Back to Todo" name="set_to_draft"
type="object" states="done,cancel"/>
<button name="cancel" string="Cancel" type="object"
attrs="{'invisible': [('state', '=', 'cancel')]}" />
<button name="create_linked_event" string="Create linked event"
type="object" class="oe_highlight"
attrs="{'invisible': ['|', (['event_id', '!=', False]),