Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions setup/website_mailing_to_blogpost/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
79 changes: 79 additions & 0 deletions website_mailing_to_blogpost/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
==================================
Website - Mass Mailing to Blogpost
==================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:23a352a8c9bc39c392c1137a180efbbe7b5e20fcb883e06da91d7d9f3cccc9b6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
:target: https://github.com/OCA/website/tree/16.0/website_mailing_to_blogpost
:alt: OCA/website
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_mailing_to_blogpost
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This modules adds a button to the newsletter view to convert the letter to a blogpost, which will be visible at the frontend (website).

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_mailing_to_blogpost%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Onestein

Contributors
~~~~~~~~~~~~

* `Onestein <https://www.onestein.nl>`__:
* Antonio Esposito <[email protected]>
* Renée Duijzers <[email protected]>
* Anjeel Haria <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/website <https://github.com/OCA/website/tree/16.0/website_mailing_to_blogpost>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions website_mailing_to_blogpost/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizards
23 changes: 23 additions & 0 deletions website_mailing_to_blogpost/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright 2025 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Website - Mass Mailing to Blogpost",
"category": "Email Marketing",
"summary": "Converts (marketing) newsletter to blogpost",
"license": "AGPL-3",
"version": "16.0.1.0.0",
"author": "Onestein, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/website",
"depends": [
"mass_mailing",
"website",
"website_blog",
],
"data": [
"security/ir.model.access.csv",
"data/general_newsletter_tag.xml",
"wizards/newsletter_to_blogpost_wizard.xml",
"views/mailing_mailing.xml",
],
}
11 changes: 11 additions & 0 deletions website_mailing_to_blogpost/data/general_newsletter_tag.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Copyright 2025 Onestein
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">

<!-- add general newsletter tag-->
<record id="general_newsletter_tag" model="blog.tag">
<field name="name">General Newsletter</field>
</record>

</odoo>
1 change: 1 addition & 0 deletions website_mailing_to_blogpost/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import mailing_mailing
9 changes: 9 additions & 0 deletions website_mailing_to_blogpost/models/mailing_mailing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright 2025 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models


class MailingMailing(models.Model):
_inherit = "mailing.mailing"

blog_post_id = fields.Many2one("blog.post")
4 changes: 4 additions & 0 deletions website_mailing_to_blogpost/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* `Onestein <https://www.onestein.nl>`__:
* Antonio Esposito <[email protected]>
* Renée Duijzers <[email protected]>
* Anjeel Haria <[email protected]>
1 change: 1 addition & 0 deletions website_mailing_to_blogpost/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This modules adds a button to the newsletter view to convert the letter to a blogpost, which will be visible at the frontend (website).
2 changes: 2 additions & 0 deletions website_mailing_to_blogpost/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_newsletter_to_blogpost_wizard,access_newsletter_to_blogpost_wizard,model_newsletter_to_blogpost_wizard,,1,1,1,1
Loading