Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️1️⃣2️⃣ res_users_signature, res_users_signature (hr)
- Loading branch information
fedoranvar
authored and
FedorAnvar
committed
Aug 16, 2019
1 parent
de9408d
commit 858c76d
Showing
15 changed files
with
174 additions
and
72 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/fedoranvar>`__ | ||
|
||
% 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,4 @@ | ||
from . import res_users_signature_models | ||
# Copyright 2014 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Anvar Kildebekov <https://it-projects.info/team/fedoranvar> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
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,25 @@ | ||
# Copyright 2014 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Anvar Kildebekov <https://it-projects.info/team/fedoranvar> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
'name': 'Signature templates for user emails', | ||
'version': '1.0.0', | ||
'external_dependencies': { | ||
'python': [ | ||
'html2text', | ||
], | ||
}, | ||
'version': '12.0.1.0.0', | ||
'author': 'IT-Projects LLC, Ivan Yelizariev', | ||
'license': 'LGPL-3', | ||
'category': 'Social Network', | ||
'images': ["images/main.png"], | ||
'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 | ||
|
||
'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,43 @@ | ||
===================================== | ||
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 signatures ``[ Settings ]>> [ Users and Companies ]>>[ Signatures ]`` | ||
* Click ``[ Create ]`` | ||
* Fill the fields | ||
|
||
Template 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> |
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,4 @@ | ||
# Copyright 2014 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Anvar Kildebekov <https://it-projects.info/team/fedoranvar> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
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
12 changes: 6 additions & 6 deletions
12
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,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<!--# Copyright 2014 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Anvar kildebekov <https://it-projects.info/team/fedoranvar> | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).--> | ||
<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> | ||
|
||
</data> | ||
</openerp> | ||
</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
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,42 @@ | ||
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>`__ | ||
|
||
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/res_users_signature_hr/>`__. | ||
|
||
Thank you for understanding! | ||
|
||
`IT-Projects Team <https://www.it-projects.info/team>`__ | ||
|
||
Further information | ||
=================== | ||
|
||
Demo: http://runbot.it-projects.info/demo/12.0/res_users_signature_hr | ||
|
||
HTML Description: https://apps.odoo.com/apps/modules/12.0/res_users_signature_hr/ | ||
|
||
Usage instructions: `<doc/index.rst>`_ | ||
|
||
Changelog: `<doc/changelog.rst>`_ | ||
|
||
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,14 +1,16 @@ | ||
# Copyright 2014 Ivan Yelizariev <https://it-projects.info/team/yelizariev> | ||
# Copyright 2019 Anvar Kildebekov <https://it-projects.info/team/fedoranvar> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). | ||
{ | ||
'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', | ||
'images': ["images/main.png"], | ||
'website': 'https://yelizariev.github.io', | ||
'depends': ['res_users_signature', 'hr'], | ||
'data': [ | ||
'views.xml', | ||
], | ||
'installable': False, | ||
'data': [], | ||
'installable': True, | ||
'auto_install': 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** |
6 changes: 4 additions & 2 deletions
6
res_users_signature_hr/models.py → ...e_hr/models/res_users_signature_models.py
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 was deleted.
Oops, something went wrong.