Skip to content

Commit

Permalink
[MIG] crm_project_task: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mde-scopea committed Jun 11, 2024
1 parent b1f4b85 commit 063ea54
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 63 deletions.
2 changes: 1 addition & 1 deletion crm_project_task/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "CRM Project Task",
"summary": "Create tasks from lead or opportunity",
"version": "16.0.1.0.1",
"version": "17.0.1.0.0",
"development_status": "Alpha",
"category": "Sales/CRM",
"website": "https://github.com/OCA/crm",
Expand Down
14 changes: 3 additions & 11 deletions crm_project_task/i18n/crm_project_task.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-31 14:39+0000\n"
"PO-Revision-Date: 2024-01-31 14:39+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -63,11 +65,6 @@ msgstr ""
msgid "Crm Default Project"
msgstr ""

#. module: crm_project_task
#: model_terms:ir.ui.view,arch_db:crm_project_task.res_config_settings_view_form
msgid "Default project"
msgstr ""

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__description
msgid "Description"
Expand All @@ -83,11 +80,6 @@ msgstr ""
msgid "ID"
msgstr ""

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task____last_update
msgid "Last Modified on"
msgstr ""

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__write_uid
msgid "Last Updated by"
Expand Down
31 changes: 10 additions & 21 deletions crm_project_task/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-12-19 20:35+0000\n"
"Last-Translator: mde-spring <[email protected]>\n"
"Language-Team: none\n"
"Language: fr\n"
"POT-Creation-Date: 2024-01-31 14:40+0000\n"
"PO-Revision-Date: 2024-01-31 14: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"
"Plural-Forms: nplurals=2; plural=n > 1;\n"
"X-Generator: Weblate 4.17\n"
"Plural-Forms: \n"

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_lead__task_count
Expand All @@ -27,8 +26,8 @@ msgid ""
"By default this project will be selected to create task from lead / "
"opportunity"
msgstr ""
"Par défaut, ce projet sera sélectionné pour créer la tâche depuis la piste/"
"opportunité"
"Par défaut, ce projet sera sélectionné pour créer la tâche depuis la "
"piste/opportunité"

#. module: crm_project_task
#: model_terms:ir.ui.view,arch_db:crm_project_task.wizard_crm_create_task_view_form
Expand Down Expand Up @@ -68,15 +67,10 @@ msgstr "Créer le"
msgid "Crm Default Project"
msgstr "Projet par défaut CRM"

#. module: crm_project_task
#: model_terms:ir.ui.view,arch_db:crm_project_task.res_config_settings_view_form
msgid "Default project"
msgstr "Projet par défaut"

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__description
msgid "Description"
msgstr "Description"
msgstr ""

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__display_name
Expand All @@ -86,12 +80,7 @@ msgstr "Nom afficher"
#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__id
msgid "ID"
msgstr "ID"

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task____last_update
msgid "Last Modified on"
msgstr "Dernière modification le"
msgstr ""

#. module: crm_project_task
#: model:ir.model.fields,field_description:crm_project_task.field_crm_create_task__write_uid
Expand Down
2 changes: 0 additions & 2 deletions crm_project_task/static/description/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Expand Down
18 changes: 8 additions & 10 deletions crm_project_task/views/crm_lead.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,23 @@
<field name="arch" type="xml">
<xpath expr="header" position="inside">
<button
string="Create Task"
class="oe_highlight"
context="{'default_lead_id': id, 'default_task_name': name}"
invisible="active == False or task_count != 0"
name="%(wizard_crm_create_task_action)d"
string="Create Task"
type="action"
class="oe_highlight"
context="{'default_lead_id': active_id, 'default_task_name': name}"
attrs="{'invisible': ['|', ('active','=',False), ('task_count', '!=', 0)]}"
/>
</xpath>
<xpath expr="//div[hasclass('oe_button_box')]" position="inside">
<button
name="action_tasks"
type="object"
class="oe_stat_button"
icon="fa-tasks"
name="action_tasks"
type="object"
>
<field string="Task(s)" name="task_count" widget="statinfo" />
<field name="task_count" string="Task(s)" widget="statinfo" />
</button>
</xpath>
</field>
</xpath></field>
</record>

</odoo>
26 changes: 8 additions & 18 deletions crm_project_task/views/res_config_settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,15 @@
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="crm.res_config_settings_view_form" />
<field name="arch" type="xml">
<div data-string="CRM" position="inside">
<h2>Projects</h2>
<div class="row mt16 o_settings_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
</div>
<div class="o_setting_right_pane" id="crm_default_project_id">
<label
for="crm_default_project_id"
string="Default project"
/>
<div class="text-muted">
By default this project will be selected to create task from lead / opportunity
</div>
<xpath expr="//app[@name='crm']" position="inside">
<block title="Projects" name="o_settings_container">
<setting
help="By default this project will be selected to create task from lead / opportunity"
>
<field name="crm_default_project_id" />
</div>
</div>
</div>
</div>
</setting>
</block>
</xpath>
</field>
</record>
</odoo>

0 comments on commit 063ea54

Please sign in to comment.