[FIX][i18n]CRM Action few fixes from migration and base french translation

This commit is contained in:
Fabien BOURGEOIS 2017-08-09 15:50:25 +02:00
parent 507473b99d
commit e1385de5e0
7 changed files with 712 additions and 29 deletions

View File

@ -0,0 +1,333 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * yaltik_crm_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-09 13:40+0000\n"
"PO-Revision-Date: 2017-08-09 13:40+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Action Type"
msgstr "Type d'action"
#. module: yaltik_crm_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_type_action
#: model:ir.ui.menu,name:yaltik_crm_action.crm_action_type_menu
msgid "Action Types"
msgstr "Types d'action"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_action_count
msgid "Action count"
msgstr "Nombre d'actions"
#. module: yaltik_crm_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_simple_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_action_ids
#: model:ir.ui.menu,name:yaltik_crm_action.crm_action_menu
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_calendar
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_leads_inherit_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_oppor_inherit_crm_action
msgid "Actions"
msgstr "Actions"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Actions done by me"
msgstr "Actions faites par moi"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_active
msgid "Active"
msgstr "Actif"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_tree
msgid "Back to Todo"
msgstr "Retour vers \"à faire\""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_action
msgid "CRM Action"
msgstr "CRM Action"
#. module: yaltik_crm_action
#: model:res.groups,name:yaltik_crm_action.group_crm_action_manager
msgid "CRM Action Manager"
msgstr "CRM Action Manager"
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_action_type
msgid "CRM Action Type"
msgstr "CRM Action Type"
#. module: yaltik_crm_action
#: model:res.groups,name:yaltik_crm_action.group_crm_action_user
msgid "CRM Action User"
msgstr "CRM Action User"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_event_id
msgid "Calendar event"
msgstr "Calendar event"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Cancel"
msgstr "Annuler"
#. module: yaltik_crm_action
#: selection:crm.action,state:0
msgid "Canceled"
msgstr "Annulé"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Create linked event"
msgstr "Inclure l'action au calendrier"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_create_uid
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_create_uid
msgid "Created by"
msgstr "Créé par"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_create_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_create_date
msgid "Created on"
msgstr "Créé le"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_partner_id
msgid "Customer"
msgstr "Client"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_date
msgid "Date"
msgstr "Date"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_details
msgid "Details"
msgstr "Détails"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_display_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_display_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_title
msgid "Display Name"
msgstr "Nom affiché"
#. module: yaltik_crm_action
#: selection:crm.action,state:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Done"
msgstr "Terminé"
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_calendar_event
msgid "Event"
msgstr "Évènement"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Group By"
msgstr "Grouper par"
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "High"
msgstr "Haute"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_id
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_id
msgid "ID"
msgstr "ID"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action___last_update
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type___last_update
msgid "Last Modified on"
msgstr "Dernière modification le"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_write_uid
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_write_uid
msgid "Last Updated by"
msgstr "Dernière mise à jour par"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_write_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_write_date
msgid "Last Updated on"
msgstr "Dernière mise à jour le"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_lead_id
msgid "Lead"
msgstr "Piste/Opportunité"
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_lead
msgid "Lead/Opportunity"
msgstr "Piste/opportunité"
#. module: yaltik_crm_action
#: code:addons/yaltik_crm_action/models/crm_action.py:97
#, python-format
msgid "Linked event"
msgstr "Événement lié"
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Low"
msgstr "Faible"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_tree
msgid "Mark as Done"
msgstr "Marquer comme terminé"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_leads_inherit_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_oppor_inherit_crm_action
msgid "Mark next action as done"
msgstr "Marquer la prochaine action comme terminée"
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Medium"
msgstr "Moyen"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "My Actions"
msgstr "Mes Actions"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_action_type_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_name
msgid "Name"
msgstr "Nom"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_id
msgid "Next Action"
msgstr "Action suivante"
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Not evaluated"
msgstr "Non évalué"
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_res_partner
#: model:ir.ui.view,arch_db:yaltik_crm_action.view_crm_action_filter
msgid "Partner"
msgstr "Partenaire"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_calendar_event_partner_location_id
msgid "Partner location"
msgstr "Adresse du partenaire"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_priority
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_priority
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Priority"
msgstr "Priorité"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Remove linked event"
msgstr "Supprimer l'événement lié sur le calendrier"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_type_search
msgid "Search Action Types"
msgstr "Chercher des types d'action"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Search Actions"
msgstr "Cherher dans les actions"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "State"
msgstr "État"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_state
msgid "Status"
msgstr "État"
#. module: yaltik_crm_action
#: selection:crm.action,state:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo"
msgstr "À faire"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo Today"
msgstr "À faire aujourd'hui"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo within 30 days"
msgstr "À faire dans les 30 jours"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo within 7 days"
msgstr "À faire dans les 7 jours"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_action_type_id
msgid "Type"
msgstr "Type"
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Urgent"
msgstr "Urgent"
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_user_id
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "User"
msgstr "Utilisateur"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Week"
msgstr "Semaine"
#. module: crm
#: model:ir.actions.act_window,name:crm.crm_lead_action_activities
#: model:ir.ui.menu,name:crm.crm_lead_menu_activities
msgid "Next Activities"
msgstr "Actions"

View File

@ -0,0 +1,326 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * yaltik_crm_action
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-08-09 13:39+0000\n"
"PO-Revision-Date: 2017-08-09 13:39+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Action Type"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_type_action
#: model:ir.ui.menu,name:yaltik_crm_action.crm_action_type_menu
msgid "Action Types"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_action_count
msgid "Action count"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_action
#: model:ir.actions.act_window,name:yaltik_crm_action.crm_action_simple_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_action_ids
#: model:ir.ui.menu,name:yaltik_crm_action.crm_action_menu
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_calendar
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_leads_inherit_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_oppor_inherit_crm_action
msgid "Actions"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Actions done by me"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_active
msgid "Active"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_tree
msgid "Back to Todo"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_action
msgid "CRM Action"
msgstr ""
#. module: yaltik_crm_action
#: model:res.groups,name:yaltik_crm_action.group_crm_action_manager
msgid "CRM Action Manager"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_action_type
msgid "CRM Action Type"
msgstr ""
#. module: yaltik_crm_action
#: model:res.groups,name:yaltik_crm_action.group_crm_action_user
msgid "CRM Action User"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_event_id
msgid "Calendar event"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Cancel"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,state:0
msgid "Canceled"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Create linked event"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_create_uid
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_create_uid
msgid "Created by"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_create_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_create_date
msgid "Created on"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_partner_id
msgid "Customer"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_date
msgid "Date"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_details
msgid "Details"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_display_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_display_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_title
msgid "Display Name"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,state:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Done"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_calendar_event
msgid "Event"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Group By"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "High"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_id
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_id
msgid "ID"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action___last_update
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type___last_update
msgid "Last Modified on"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_write_uid
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_write_uid
msgid "Last Updated by"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_write_date
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_write_date
msgid "Last Updated on"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_lead_id
msgid "Lead"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_crm_lead
msgid "Lead/Opportunity"
msgstr ""
#. module: yaltik_crm_action
#: code:addons/yaltik_crm_action/models/crm_action.py:97
#, python-format
msgid "Linked event"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Low"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_tree
msgid "Mark as Done"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_leads_inherit_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_case_form_view_oppor_inherit_crm_action
msgid "Mark next action as done"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Medium"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "My Actions"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_action_type_name
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_name
msgid "Name"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_lead_next_action_id
msgid "Next Action"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
msgid "Not evaluated"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model,name:yaltik_crm_action.model_res_partner
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Partner"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_calendar_event_partner_location_id
msgid "Partner location"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_priority
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_type_priority
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Priority"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_form
msgid "Remove linked event"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_type_search
msgid "Search Action Types"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Search Actions"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "State"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_state
msgid "Status"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,state:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo Today"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo within 30 days"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Todo within 7 days"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_action_type_id
msgid "Type"
msgstr ""
#. module: yaltik_crm_action
#: selection:crm.action,priority:0
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Urgent"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.model.fields,field_description:yaltik_crm_action.field_crm_action_user_id
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "User"
msgstr ""
#. module: yaltik_crm_action
#: model:ir.ui.view,arch_db:yaltik_crm_action.crm_action_search
msgid "Week"
msgstr ""

View File

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
# Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# 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/>.
from . import crm_action, crm_lead, res_partner, calendar_event

View File

@ -29,11 +29,14 @@ class CrmAction(models.Model):
display_name = fields.Char(compute='_compute_display_name', store=True)
state = fields.Selection(selection_add=[('cancel', 'Canceled')])
state = fields.Selection([('draft', 'Todo'), ('done', 'Done'),
('cancel', 'Canceled')], string='Status',
required=True, readonly=True, default='draft')
priority = fields.Selection([('0', 'Not evaluated'), ('1', 'Low'),
('2', 'Medium'), ('3', 'High'),
('4', 'Urgent')],
string='Priority', default='0', index=True)
details = fields.Text()
partner_id = fields.Many2one('res.partner', string='Customer', index=True)
date = fields.Date('Date', required=True, default=fields.Date.context_today)
@ -60,25 +63,17 @@ class CrmAction(models.Model):
@api.multi
def confirm(self):
""" Changes state to done """
self.state = 'done'
self.write({'state': 'done'})
@api.multi
def set_to_draft(self):
""" Changes state to draft """
self.state = 'draft'
self.write({'state': 'draft'})
@api.multi
def cancel(self):
""" Cancel action """
self.ensure_one()
action = self[0]
return {'type': 'ir.actions.act_window',
'name': _('Cancel action'),
'res_model': 'dalby.crm.action.cancel.reason',
'view_mode': 'form',
'view_type': 'form',
'target': 'new',
'context': {'default_action_id': action.id}}
self.write({'state': 'cancel'})
@api.multi
def create_linked_event(self):
@ -88,13 +83,11 @@ class CrmAction(models.Model):
attendees = [action.user_id.partner_id.id]
if action.partner_id:
attendees.append(action.partner_id.id)
title = u'{} : {}'.format(action.action_type_name,
action.open_reason)
data = {'start': action.date,
'stop': action.date,
'duration': 1.0,
'allday': False,
'name': title,
'name': action.display_name,
'description': action.details,
'privacy': 'confidential',
'partner_ids': [(6, False, attendees)],

View File

@ -36,7 +36,7 @@ class CrmLead(models.Model):
def _compute_action_count(self):
""" Count actions """
for lead in self:
lead.actions_count = len(lead.action_ids)
lead.action_count = len(lead.action_ids)
@api.depends('action_ids.date', 'action_ids.display_name', 'action_ids.state')
def compute_next_action(self):

View File

@ -27,10 +27,10 @@ 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="button_confirm" type="object"
<button string="Mark as Done" name="confirm" type="object"
states="draft" class="oe_highlight"/>
<button string="Back to Todo" name="button_set_to_draft"
type="object" states="done"/>
<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"
@ -67,7 +67,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<group>
<field name="name" />
<field name="priority" />
<field name="active "/>
<field name="active" />
</group>
</sheet>
</form>
@ -86,9 +86,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="lead_id" />
<field name="partner_id" />
<field name="user_id" />
<button icon="fa-check" name="button_confirm" type="object"
<button icon="fa-check" name="confirm" type="object"
string="Mark as Done" states="draft" />
<button icon="fa-undo" name="button_set_to_draft" type="object"
<button icon="fa-undo" name="set_to_draft" type="object"
string="Back to Todo" states="done" />
<field name="state" />
</tree>
@ -106,6 +106,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field>
</record>
<!-- Calendars -->
<record id="crm_action_calendar" model="ir.ui.view">
<field name="name">CRM Action Calendar</field>
<field name="model">crm.action</field>
<field name="arch" type="xml">
<calendar string="Actions" color="user_id" date_start="date">
<field name="partner_id" />
<field name="details" />
</calendar>
</field>
</record>
<!-- Searches -->
<record model="ir.ui.view" id="crm_action_search">
<field name="name">Search adaptations</field>

View File

@ -20,6 +20,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<odoo>
<data>
<!-- Actions -->
<act_window id="crm_action_simple_action" name="Actions"
res_model="crm.action" view_mode="tree,form,calendar" />
<!-- Form -->
<!-- Lead and opp only : next action creation... -->
<record model="ir.ui.view" id="crm_case_form_view_leads_inherit_crm_action">
@ -30,9 +34,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<!-- Actions in button box -->
<div class="oe_button_box" position="inside">
<button class="oe_inline oe_stat_button" type="action" icon="fa-list"
name="%(yaltik_crm_action.crm_action_simple_action)d"
name="%(crm_action_simple_action)d"
context="{'search_default_lead_id': active_id, 'search_default_user_me': 0}">
<field string="Actions" name="actions_count" widget="statinfo" />
<field string="Actions" name="action_count" widget="statinfo" />
</button>
</div>
<!-- Next action -->
@ -59,7 +63,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<button class="oe_inline oe_stat_button" icon="fa-list" type="action"
name="%(crm_action_simple_action)d"
context="{'search_default_lead_id': active_id, 'search_default_user_me': 0}">
<field string="Actions" name="actions_count" widget="statinfo" />
<field string="Actions" name="action_count" widget="statinfo" />
</button>
</div>
<!-- Replace group of native activities -->
@ -127,9 +131,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</field>
</record>
<!-- Actions -->
<act_window id="crm_action_simple_action" name="Actions"
res_model="crm.action" view_mode="tree,form,calendar" />
</data>
</odoo>