Browse Source

9.0 [mig] marketing_security_group

* Renaming module marketing_security_group to mass_mailing_security_group
 * Changes in README
 * Correct views
pull/128/head
cubells 8 years ago
committed by Pedro M. Baeza
parent
commit
648e7b2e22
  1. 5
      marketing_security_group/__init__.py
  2. 28
      marketing_security_group/security/mail_mass_mailing_security.xml
  3. 5
      marketing_security_group/wizards/__init__.py
  4. 24
      mass_mailing_security_group/README.rst
  5. 5
      mass_mailing_security_group/__init__.py
  6. 12
      mass_mailing_security_group/__openerp__.py
  7. 0
      mass_mailing_security_group/i18n/de.po
  8. 0
      mass_mailing_security_group/i18n/es.po
  9. 0
      mass_mailing_security_group/i18n/fr.po
  10. 0
      mass_mailing_security_group/i18n/sl.po
  11. 2
      mass_mailing_security_group/security/ir.model.access.csv
  12. 26
      mass_mailing_security_group/security/mail_mass_mailing_security.xml
  13. 0
      mass_mailing_security_group/static/description/icon.png
  14. 5
      mass_mailing_security_group/wizards/__init__.py
  15. 4
      mass_mailing_security_group/wizards/test_mailing.py

5
marketing_security_group/__init__.py

@ -1,5 +0,0 @@
# -*- coding: utf-8 -*-
# License AGPL-3: Antiun Ingenieria S.L. - Antonio Espinosa
# See README.rst file on addon root folder for more details
from . import wizards

28
marketing_security_group/security/mail_mass_mailing_security.xml

@ -1,28 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="mass_mailing_marketing_user_access" model="ir.rule">
<field name="name">Marketing user - Delete own unsent mass mailings</field>
<field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
<field name="domain_force">[('create_uid', '=', user.id), ('state', 'in', ('draft', 'test'))]</field>
<field name="groups" eval="[(4, ref('marketing.group_marketing_user'))]"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_create"/>
<field eval="1" name="perm_unlink"/>
</record>
<record id="mass_mailing_marketing_manager_access" model="ir.rule">
<field name="name">Marketing manager - Delete all unsent mass mailings</field>
<field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
<field name="domain_force">[('state', 'in', ('draft', 'test'))]</field>
<field name="groups" eval="[(4, ref('marketing.group_marketing_manager'))]"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_create"/>
<field eval="1" name="perm_unlink"/>
</record>
</data>
</openerp>

5
marketing_security_group/wizards/__init__.py

@ -1,5 +0,0 @@
# -*- coding: utf-8 -*-
# License AGPL-3: Antiun Ingenieria S.L. - Antonio Espinosa
# See README.rst file on addon root folder for more details
from . import test_mailing

24
marketing_security_group/README.rst → mass_mailing_security_group/README.rst

@ -2,18 +2,18 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
==============================
Marketing extra security rules
==============================
===========================
Mass mailing security group
===========================
This module add a these security features:
This module adds these security features:
* ACL for allowing marketing user group to remove mass.mailing objects
* Security rule to allow marketing user to delete only his unsent mail.mass_mailing objects
* Security rule to allow marketing manager to delete all unsent mail.mass_mailing objects
For sent mail.mass_mailing objects, only an user in Administration / Settings group
could remove them, like Odoo standard defines
For sent mail.mass_mailing objects, only a user in Administration / Settings group
could remove them, like standard Odoo defines.
Usage
@ -21,11 +21,7 @@ Usage
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/205/8.0
For further information, please visit:
* https://www.odoo.com/forum/help-1
:target: https://runbot.odoo-community.org/runbot/205/9.0
Bug Tracker
@ -33,9 +29,8 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
`here <https://github.com/OCA/social/issues/new?body=module:%20marketing_security_group%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
If you spotted it first, help us smashing it by providing a detailed and
welcomed feedback.
Credits
=======
@ -45,6 +40,7 @@ Contributors
* Rafael Blasco <rafabn@antiun.com>
* Antonio Espinosa <antonioea@antiun.com>
* Vicent Cubells <vicent.cubells@tecnativa.com>
Maintainer
----------

5
mass_mailing_security_group/__init__.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import wizards

12
marketing_security_group/__openerp__.py → mass_mailing_security_group/__openerp__.py

@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
# License AGPL-3: Antiun Ingenieria S.L. - Antonio Espinosa
# See README.rst file on addon root folder for more details
# © 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': "Marketing extra security rules",
'name': "Mass mailing security group",
'category': 'Marketing',
'version': '8.0.1.0.0',
'version': '9.0.1.0.0',
'depends': [
'mass_mailing',
],
@ -14,9 +14,9 @@
'security/ir.model.access.csv',
'security/mail_mass_mailing_security.xml',
],
'author': 'Antiun Ingeniería S.L., '
'author': 'Tecnativa, '
'Odoo Community Association (OCA)',
'website': 'http://www.antiun.com',
'website': 'http://www.tecnativa.com',
'license': 'AGPL-3',
'installable': True,
}

0
marketing_security_group/i18n/de.po → mass_mailing_security_group/i18n/de.po

0
marketing_security_group/i18n/es.po → mass_mailing_security_group/i18n/es.po

0
marketing_security_group/i18n/fr.po → mass_mailing_security_group/i18n/fr.po

0
marketing_security_group/i18n/sl.po → mass_mailing_security_group/i18n/sl.po

2
marketing_security_group/security/ir.model.access.csv → mass_mailing_security_group/security/ir.model.access.csv

@ -1,2 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_mass_mailing_user,mail.mass_mailing.user,mass_mailing.model_mail_mass_mailing,marketing.group_marketing_user,1,1,1,1
access_mass_mailing_user,mail.mass_mailing.user,mass_mailing.model_mail_mass_mailing,marketing.group_lead_automation_user,1,1,1,1

26
mass_mailing_security_group/security/mail_mass_mailing_security.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="mass_mailing_marketing_user_access" model="ir.rule">
<field name="name">Marketing user - Delete own unsent mass mailings</field>
<field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
<field name="domain_force">[('create_uid', '=', user.id), ('state', 'in', ('draft', 'test'))]</field>
<field name="groups" eval="[(4, ref('marketing.group_lead_automation_user'))]"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_create"/>
<field eval="1" name="perm_unlink"/>
</record>
<record id="mass_mailing_marketing_manager_access" model="ir.rule">
<field name="name">Marketing manager - Delete all unsent mass mailings</field>
<field name="model_id" ref="mass_mailing.model_mail_mass_mailing"/>
<field name="domain_force">[('state', 'in', ('draft', 'test'))]</field>
<field name="groups" eval="[(4, ref('marketing.group_lead_automation_manager'))]"/>
<field eval="0" name="perm_read"/>
<field eval="0" name="perm_write"/>
<field eval="0" name="perm_create"/>
<field eval="1" name="perm_unlink"/>
</record>
</odoo>

0
marketing_security_group/static/description/icon.png → mass_mailing_security_group/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

5
mass_mailing_security_group/wizards/__init__.py

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# © 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import test_mailing

4
marketing_security_group/wizards/test_mailing.py → mass_mailing_security_group/wizards/test_mailing.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# License AGPL-3: Antiun Ingenieria S.L. - Antonio Espinosa
# See README.rst file on addon root folder for more details
# © 2016 Tecnativa S.L. - Vicent Cubells
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, fields
Loading…
Cancel
Save