Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
fedoranvar
committed
Aug 12, 2019
1 parent
de9408d
commit 12d6270
Showing
17 changed files
with
263 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
Allows create signature templates for users. For example, | ||
=================================== | ||
Signature templates for user email | ||
=================================== | ||
|
||
--- | ||
Add templated signature for users | ||
|
||
<p>${user.name}, ${user.function} of ${user.partner_id.company_id.name}</p> | ||
Credits | ||
======= | ||
|
||
<p>${user.phone}, | ||
Contributors | ||
------------ | ||
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__ | ||
* `Anvar Kildebekov <https://it-projects.info/team/kildebekov>`__ | ||
|
||
% if user.mobile | ||
Sponsors | ||
-------- | ||
* `IT-Projects LLC <https://it-projects.info>`__ | ||
|
||
${user.mobile}, | ||
Maintainers | ||
----------- | ||
* `IT-Projects LLC <https://it-projects.info>`__ | ||
|
||
% endif | ||
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/res_users_signature/>`__. | ||
|
||
${user.email}</p> | ||
Thank you for understanding! | ||
|
||
<p><img src="data:image/png;base64,${user.company_id.logo_web}"/></p> | ||
`IT-Projects Team <https://www.it-projects.info/team>`__ | ||
|
||
Will be converted to | ||
Further information | ||
=================== | ||
|
||
--- | ||
Demo: http://runbot.it-projects.info/demo/12.0/misc-addons | ||
|
||
<p>Bob, sale manager of You Company</p> | ||
HTML Description: https://apps.odoo.com/apps/modules/12.0/res_users_signature/ | ||
|
||
<p>+123456789, sales@example.com</p> | ||
Usage instructions: `<doc/index.rst>`_ | ||
|
||
<p><img src="data:image/png;base64,ABCDE....12345="/></p> | ||
Changelog: `<doc/changelog.rst>`_ | ||
|
||
Tested on 8.0 ab7b5d7732a7c222a0aea45bd173742acd47242d | ||
|
||
Further information and discussion: https://yelizariev.github.io/odoo/module/2015/03/17/email-signature-template.html | ||
Tested on Odoo 12.0 32c2666d189047db66eb7b1392ea34b086fd341e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from . import res_users_signature_models | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
{ | ||
'name': 'Signature templates for user emails', | ||
'version': '1.0.0', | ||
'version': '12.0.1.0.0', | ||
'author': 'IT-Projects LLC, Ivan Yelizariev', | ||
'license': 'LGPL-3', | ||
'category': 'Social Network', | ||
"images": ["images/main.jpg"], | ||
'website': 'https://yelizariev.github.io', | ||
'depends': ['base'], | ||
'data': [ | ||
'res_users_signature_views.xml', | ||
'views/res_users_signature_views.xml', | ||
'security/res_users_signature_security.xml', | ||
'security/ir.model.access.csv', | ||
], | ||
'installable': False | ||
'python': [ | ||
'html2text', | ||
], | ||
'installable': True | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
`1.0.0` | ||
------- | ||
|
||
- **Init version** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
=================================== | ||
Signature templates for user emails | ||
=================================== | ||
|
||
Installation | ||
============ | ||
|
||
* `Install <https://odoo-development.readthedocs.io/en/latest/odoo/usage/install-module.html>`__ this module in a usual way | ||
|
||
Usage | ||
===== | ||
|
||
* Open menu ``[[ {Menu} ]]>> {Submenu} >> {Subsubmenu}`` | ||
* Click ``[{Button Name}]`` | ||
|
||
Allows create signature templates for users. For example, | ||
|
||
--- | ||
|
||
<p>${user.name}, ${user.function} of ${user.partner_id.company_id.name}</p> | ||
|
||
<p>${user.phone}, | ||
|
||
% if user.mobile | ||
|
||
${user.mobile}, | ||
|
||
% endif | ||
|
||
${user.email}</p> | ||
|
||
<p><img src="data:image/png;base64,${user.company_id.logo_web}"/></p> | ||
|
||
Will be converted to | ||
|
||
--- | ||
|
||
<p>Bob, sale manager of You Company</p> | ||
|
||
<p>+123456789, sales@example.com</p> | ||
|
||
<p><img src="data:image/png;base64,ABCDE....12345="/></p> | ||
|
||
* RESULT: {what user gets, how the modules changes default behaviour} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import res_users_signature_models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 7 additions & 9 deletions
16
res_users_signature/security/res_users_signature_security.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<record id="administrator" model="res.groups"> | ||
<field name="name">Signature administrator</field> | ||
<field name="comment">the user will have access to edit signatures</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> | ||
<odoo> | ||
<record id="administrator" model="res.groups"> | ||
<field name="name">Signature administrator</field> | ||
<field name="comment">the user will have access to edit signatures</field> | ||
<field name="users" eval="[(4, ref('base.user_admin'))]"/> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<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/>12.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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,43 @@ | ||
Signature templates for user emails (HR) | ||
======================================== | ||
Signature templates for user email (HR) | ||
======================================== | ||
|
||
Connector for modules: | ||
|
||
* Signature templates for user emails | ||
* HR | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
* `Ivan Yelizariev <https://it-projects.info/team/yelizariev>`__ | ||
* `Anvar Kildebekov <https://it-projects.info/team/kildebekov>`__ | ||
|
||
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/pos_menu/>`__. | ||
|
||
Thank you for understanding! | ||
|
||
`IT-Projects Team <https://www.it-projects.info/team>`__ | ||
|
||
Further information | ||
=================== | ||
|
||
Demo: http://runbot.it-projects.info/demo/12.0/pos-addons | ||
|
||
HTML Description: https://apps.odoo.com/apps/modules/12.0/pos_menu/ | ||
|
||
Usage instructions: `<doc/index.rst>`_ | ||
|
||
Changelog: `<doc/changelog.rst>`_ | ||
|
||
Tested on 12.0 32c2666d189047db66eb7b1392ea34b086fd341e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
'name': "Signature templates for user emails (HR)", | ||
'version': '1.0.0', | ||
'version': '12.0.1.0.0', | ||
'author': 'IT-Projects LLC, Ivan Yelizariev', | ||
'license': 'LGPL-3', | ||
'category': 'Custom', | ||
'website': 'https://yelizariev.github.io', | ||
'depends': ['res_users_signature', 'hr'], | ||
'data': [ | ||
'views.xml', | ||
'views/res_users_signature_hr_views.xml', | ||
], | ||
'installable': False, | ||
'installable': True, | ||
'auto_install': True, | ||
} |
Oops, something went wrong.