Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

12.0 pad crm port #747

Merged
merged 4 commits into from May 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
47 changes: 47 additions & 0 deletions pad_crm/README.rst
@@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.png
:target: https://www.gnu.org/licenses/lgpl
:alt: License: LGPL-3

======================================
Pad support in Lead's Internal notes
======================================

This module allows collaborative editing with *html support* in Lead's Internal notes and maintains the versions history.

Credits
=======

Contributors
------------
* 'Ivan Yelizariev <https://it-projects.info/team/yelizariev>'__

Sponsors
--------
* `IT-Projects LLC <https://it-projects.info>`__

Maintainers
-----------
* `IT-Projects LLC <https://it-projects.info>`__

To get a guaranteed support
you are kindly requested to purchase the module
at `odoo apps store <https://apps.odoo.com/apps/modules/12.0/pad_crm/>`__.

Thank you for understanding!

`IT-Projects Team <https://www.it-projects.info/team>`__

Further information
===================

Demo: http://runbot.it-projects.info/demo/misc-addons/12.0

HTML Description: https://apps.odoo.com/apps/modules/12.0/pad_crm/

Usage instructions: `<doc/index.rst>`_

Changelog: `<doc/changelog.rst>`_

Notifications on updates: `via Atom <https://github.com/it-projects-llc/misc-addons/commits/12.0/pad_crm.atom>`_, `by Email <https://blogtrottr.com/?subscribe=https://github.com/it-projects-llc/misc-addons/commits/12.0/pad_crm.atom>`_

Tested on Odoo 12.0 a54b65bbb2f582136b0a358a4a576d3c38b0369e
2 changes: 2 additions & 0 deletions pad_crm/__init__.py
@@ -0,0 +1,2 @@
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from . import crm_lead
52 changes: 52 additions & 0 deletions pad_crm/__manifest__.py
@@ -0,0 +1,52 @@
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
{
"name": """Pad support in Lead's Internal notes""",
"summary": """This module allows collaborative editing with *html support* in Lead's Internal notes and maintains the versions history.""",
"category": "Project",
# "live_test_url": "http://apps.it-projects.info/shop/product/DEMO-URL?version=12.0",
"images": ['images/pad_crm_2.jpg'],
"version": "12.0.1.0.0",
"application": False,

"author": "IT-Projects LLC, Ivan Yelizariev",
"support": "apps@it-projects.info",
"website": "https://it-projects.info/",
"license": "LGPL-3",
"price": 90.00,
"currency": "EUR",

"depends": [
"crm",
"pad",
],
"external_dependencies": {"python": [], "bin": []},
"data": [
'crm_lead.xml',
'template.xml',
],
"demo": [
],
"qweb": [
],

"post_load": None,
"pre_init_hook": None,
"post_init_hook": None,
"uninstall_hook": None,

"auto_install": False,
"installable": True,

# "demo_title": "{MODULE_NAME}",
# "demo_addons": [
# ],
# "demo_addons_hidden": [
# ],
# "demo_url": "DEMO-URL",
# "demo_summary": "{SHORT_DESCRIPTION_OF_THE_MODULE}",
# "demo_images": [
# "images/MAIN_IMAGE",
# ]
}
11 changes: 11 additions & 0 deletions pad_crm/crm_lead.py
@@ -0,0 +1,11 @@
# Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html)
from odoo import fields, models


class lead(models.Model):
_name = "crm.lead"
_inherit = ["crm.lead", 'pad.common']
description = fields.Text('Notes', track_visibility=False)
description_pad = fields.Char('Description PAD', pad_content_field='description')
24 changes: 24 additions & 0 deletions pad_crm/crm_lead.xml
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2016 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).-->
<odoo>
<record id="crm_case_form_view_oppor" model="ir.ui.view">
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
<field name="arch" type="xml">
<field name="description" position="replace">
<field name="description_pad" widget="pad"/>
</field>
</field>
</record>
<record id="crm_case_form_view_leads" model="ir.ui.view">
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
<field name="arch" type="xml">
<field name="description" position="replace">
<field name="description_pad" widget="pad"/>
</field>
</field>
</record>
</odoo>
4 changes: 4 additions & 0 deletions pad_crm/doc/changelog.rst
@@ -0,0 +1,4 @@
`1.0.0`
-------

- Init version
16 changes: 16 additions & 0 deletions pad_crm/doc/index.rst
@@ -0,0 +1,16 @@
======================================
Pad support in Lead's Internal notes
======================================

Installation
============

* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way

Usage
=====

* Open ``[CRM]``
* Click on any lead
* Click on the ``[Edit]`` button
* RESULT: now in the ``[Internal Notes]`` tab you can use the Pad.
Binary file added pad_crm/images/pad_crm_2.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pad_crm/static/description/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions pad_crm/static/description/index.html
@@ -0,0 +1,91 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<h2 class="oe_slogan" style="color:#875A7B;">Pad support in Lead's Internal notes</h2>
<h3 class="oe_slogan">This module allows collaborative editing with <i>html support</i>i> in Lead's Internal notes and maintains the versions history.</h3>
</div>
</div>
</section>

<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span12">
<p class="oe_mt32">
<div class="alert alert-warning" style="padding:0.3em 0.6em; font-size: 150%;">
The Pad is very useful collaborative text-tool for producing nicely formatted text, good-looking notes, and so on.
</div>
</div>
</div>
</section>

<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<h3 class="oe_slogan">How It Works</h3>
<div class="oe_span12">
<p class="oe_mt32">
<font style="font-size: 120%;">
<ul>
<li>Open <b>CRM</b> and click the <i>Edit</i> button on any lead</li>
<li>Create nicely formatted text</li>
</ul>
</font>
</p>
</div>
<div class="oe_screenshot" align="center">
<img style="max-width: 60%" src="pad_crm.png"/>
</div>
</div>
</section>

<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span8">
<h2>Need our service?</h2>
<p class="oe_mt32">Contact us by <a href="mailto:apps@it-projects.info">email</a> or fill out <a href="https://www.it-projects.info/page/website.contactus " target="_blank">request form</a></p>
<ul>
<li><a href="mailto:apps@it-projects.info">apps@it-projects.info <i class="fa fa-envelope-o"></i></a></li>
<li><a href="https://www.it-projects.info/page/website.contactus " target="_blank">https://www.it-projects.info/page/website.contactus <i class="fa fa-list-alt"></i></a></li>
<li><a href="https://m.me/itprojectsllc" target="_blank">https://m.me/itprojectsllc <i class="fa fa-facebook-square"></i></a></li>
<li>skype@it-projects.info <i class="fa fa-skype"></i></li>
</ul>
</div>
<div class="oe_span4">
<div class="stamp" style="width:200px;">
<div style="margin-top: 15px;
position: relative;
font-family:'Vollkorn', serif;
font-size: 16px;
line-height: 25px;
text-transform: uppercase;
font-weight: bold;
color: #75526b;
border: 3px dashed #75526b;
float: left;
padding: 4px 12px;
-webkit-transform: rotate(8deg);
-o-transform: rotate(8deg);
-moz-transform: rotate(8deg);
-ms-transform: rotate(8deg);">
Tested on Odoo<br/>10.0 community
</div>
<!--<div style="margin-top: 15px;
position: relative;
font-family:'Vollkorn', serif;
font-size: 16px;
line-height: 25px;
text-transform: uppercase;
font-weight: bold;
color: #75526b;
border: 3px dashed #75526b;
float: left;
padding: 4px 12px;
-webkit-transform: rotate(6deg);
-o-transform: rotate(6deg);
-moz-transform: rotate(6deg);
-ms-transform: rotate(6deg);">
Tested on Odoo<br/>10.0 enterprise
</div>-->
</div>
</div>
</div>
</section>
Binary file added pad_crm/static/description/pad_crm.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions pad_crm/static/src/css/pad_crm.css
@@ -0,0 +1,4 @@
.oe_pad_readonly {
margin-top: 10px;
margin-left: 10px;
}
13 changes: 13 additions & 0 deletions pad_crm/template.xml
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright 2019 Artem Rafailov <https://it-projects.info/team/Ommo73/>
License LGPL-3.0 (https://www.gnu.org/licenses/lgpl.html).-->
<odoo>
<template
id="assets_backend"
name="pad_crm_assets_backend"
inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/pad_crm/static/src/css/pad_crm.css"/>
</xpath>
</template>
</odoo>