Initialize v18 branch
Rename *_usability modules to *_usability_akretion
This commit is contained in:
1
crm_usability_akretion/__init__.py
Normal file
1
crm_usability_akretion/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
25
crm_usability_akretion/__manifest__.py
Normal file
25
crm_usability_akretion/__manifest__.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Copyright 2016-2022 Akretion (http://www.akretion.com)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
|
||||
{
|
||||
'name': 'CRM Usability',
|
||||
'version': '16.0.1.0.0',
|
||||
'category': 'Customer Relationship Management',
|
||||
'license': 'AGPL-3',
|
||||
'summary': 'CRM usability enhancements',
|
||||
'description': """
|
||||
CRM Usability
|
||||
=============
|
||||
|
||||
This module has been written by Alexis de Lattre from Akretion
|
||||
<alexis.delattre@akretion.com>.
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': ['crm'],
|
||||
'data': [
|
||||
'views/crm_lead.xml',
|
||||
],
|
||||
'installable': False,
|
||||
}
|
||||
66
crm_usability_akretion/i18n/fr.po
Normal file
66
crm_usability_akretion/i18n/fr.po
Normal file
@@ -0,0 +1,66 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * crm_usability
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 16.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2024-07-07 14:23+0000\n"
|
||||
"PO-Revision-Date: 2024-07-07 14:23+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: crm_usability
|
||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
||||
msgid "CRM"
|
||||
msgstr "CRM"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_crm_case_opportunities_filter
|
||||
msgid "Customer"
|
||||
msgstr "Client"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
||||
msgid "Discard"
|
||||
msgstr "Ne pas sauvegarder"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model:ir.model.fields,help:crm_usability.field_crm_lead__date_deadline
|
||||
msgid "Estimate of the date on which the opportunity will be won."
|
||||
msgstr "Estimation de la date à laquelle l'opportunité sera gagnée."
|
||||
|
||||
#. module: crm_usability
|
||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__date_deadline
|
||||
msgid "Expected Closing"
|
||||
msgstr "Date estimée"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model:ir.model,name:crm_usability.model_crm_lead
|
||||
msgid "Lead/Opportunity"
|
||||
msgstr "Piste/Opportunité"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__name
|
||||
msgid "Opportunity"
|
||||
msgstr "Opportunité"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model:ir.model.fields,field_description:crm_usability.field_crm_lead__probability
|
||||
msgid "Probability"
|
||||
msgstr "Probabilité"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
||||
msgid "Save & Close"
|
||||
msgstr "Sauvegarder et fermer"
|
||||
|
||||
#. module: crm_usability
|
||||
#: model_terms:ir.ui.view,arch_db:crm_usability.view_calendar_event_form
|
||||
msgid "Save & Send"
|
||||
msgstr "Sauvegarder et envoyer"
|
||||
1
crm_usability_akretion/models/__init__.py
Normal file
1
crm_usability_akretion/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import crm_lead
|
||||
13
crm_usability_akretion/models/crm_lead.py
Normal file
13
crm_usability_akretion/models/crm_lead.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# Copyright 2017-2022 Akretion (http://www.akretion.com)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class CrmLead(models.Model):
|
||||
_inherit = 'crm.lead'
|
||||
|
||||
probability = fields.Float(tracking=100)
|
||||
date_deadline = fields.Date(tracking=110)
|
||||
name = fields.Char(tracking=1)
|
||||
BIN
crm_usability_akretion/static/description/icon.png
Normal file
BIN
crm_usability_akretion/static/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.5 KiB |
47
crm_usability_akretion/views/crm_lead.xml
Normal file
47
crm_usability_akretion/views/crm_lead.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2017-2022 Akretion (http://www.akretion.com/)
|
||||
@author: Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
|
||||
<!-- SEARCH OPPOR -->
|
||||
<record id="view_crm_case_opportunities_filter" model="ir.ui.view">
|
||||
<field name="name">usability.crm.lead.opportunity.search</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.view_crm_case_opportunities_filter"/>
|
||||
<field name="arch" type="xml">
|
||||
<filter name="saleschannel" position="after">
|
||||
<filter name="partner_groupby" string="Customer" context="{'group_by': 'partner_id'}"/>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="view_calendar_event_form" model="ir.ui.view">
|
||||
<field name="name">calendar.event.form.usability</field>
|
||||
<field name="model">calendar.event</field>
|
||||
<field name="inherit_id" ref="calendar.view_calendar_event_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- Add "Opportunity" field on calendar event -->
|
||||
<notebook position="inside">
|
||||
<page name="crm" string="CRM">
|
||||
<group>
|
||||
<field name="opportunity_id" />
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
|
||||
<!-- Add "send & save" button next to "save & close" -->
|
||||
<form position="inside">
|
||||
<footer>
|
||||
<button name="action_open_composer" type="object" string="Save & Send" class="btn btn-primary" />
|
||||
<button string="Save & Close" special="save" />
|
||||
<button string="Discard" special="cancel"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user