@ -0,0 +1,51 @@ |
|||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
|||
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
All in One Multi Followers |
|||
========================== |
|||
The module is used to add or remove the multi followers in the whole odoo model |
|||
by dynamic actions. If you want to set multiple followers in your model, |
|||
it is helpful to select multiple followers when clicking the action. |
|||
After adding or removing the followers, it will affect the model. |
|||
So in this way, you can add or remove multiple followers |
|||
from the whole odoo quickly. |
|||
|
|||
Configuration |
|||
============= |
|||
* No additional configurations needed |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
Affero General Public License v3.0 (AGPL v3) |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
------- |
|||
* Developer : (V17) Ajith V , |
|||
(V16) Junaidul Ansar M , Contact: odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import models |
|||
from . import wizard |
@ -0,0 +1,51 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
{ |
|||
'name': 'All in One Multi Followers', |
|||
'version': '17.0.1.0.0', |
|||
'category': 'Extra Tools', |
|||
'summary': 'The module used to add or remove the multi followers in the ' |
|||
'whole odoo models by dynamic actions.', |
|||
'description': ' The module used to add or remove the multi followers in ' |
|||
'the whole odoo models by dynamic actions.If you want to set' |
|||
' a multi followers in your model this is helpful you to ' |
|||
'select the multi followers when clicking the action. ' |
|||
'After adding or removing the followers it will affect' |
|||
' the model. So in this way you can add or remove multiple' |
|||
' followers in the whole odoo quickly.', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['base'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/multi_follower_views.xml', |
|||
'views/res_config_settings_views.xml', |
|||
'wizard/follower_adding_removing_views.xml', |
|||
], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'application': False, |
|||
'auto_install': False |
|||
} |
@ -0,0 +1,7 @@ |
|||
## Module <all_in_one_multi_followers> |
|||
|
|||
#### 15.05.2025 |
|||
#### Version 17.0.1.0.0 |
|||
#### ADD |
|||
|
|||
- Initial Commit All in One Multi Followers. |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import multi_follower |
@ -0,0 +1,205 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class MultiFollower(models.Model): |
|||
"""Creating multi follower creation model""" |
|||
_name = 'multi.follower' |
|||
_description = 'Multi Follower' |
|||
_rec_name = 'action_name' |
|||
|
|||
action_name = fields.Char(string="Action Name", |
|||
help='This is the action name. So this name is ' |
|||
'visible under the the appropriate' |
|||
' model action.', |
|||
required=True) |
|||
applied_to_ids = fields.Many2many('ir.model', |
|||
string='Applied To', |
|||
help='Select the model in which you ' |
|||
'want to apply this action.', |
|||
required=True) |
|||
enabled_value = fields.Boolean(string="Create Action", |
|||
help="Enabling and hiding the " |
|||
"create action button.", |
|||
default=True, |
|||
copy=False) |
|||
created_action_names = fields.Char(string="Created Action Names", |
|||
compute="_compute_created_action_names", |
|||
help='If the name is visible to the line' |
|||
' its created the action. If its ' |
|||
'not its deleted the action.') |
|||
states = fields.Selection([('draft', 'Draft'), |
|||
('running', 'Running'), ('cancel', 'Cancelled')], |
|||
string='State', help='State of the action', |
|||
default="draft", copy=False) |
|||
window_action_ids = fields.Many2many('ir.actions.act_window', |
|||
string="Window Actions", |
|||
helps="Related Window Actions") |
|||
|
|||
@api.depends('action_name') |
|||
def _compute_created_action_names(self): |
|||
""" |
|||
Computes and updates the `created_action_names` field with the names |
|||
of the actions that have been created for the current follower. |
|||
|
|||
This method depends on the `action_name` field and is triggered when |
|||
the `action_name` is modified. It retrieves the window actions associated |
|||
with the current follower and stores their names as a comma-separated |
|||
string in the `created_action_names` field. |
|||
|
|||
Key Steps: |
|||
1. For each follower record, it searches for window actions (`ir.actions.act_window`) |
|||
that match the action IDs in `follower.window_action_ids`. |
|||
2. The names of the found actions are extracted using `mapped('name')` |
|||
and joined into a single string, separated by commas. |
|||
3. The resulting string is stored in the `created_action_names` field |
|||
for display purposes. |
|||
|
|||
Returns: |
|||
None |
|||
""" |
|||
for follower in self: |
|||
actions = self.env['ir.actions.act_window'].search( |
|||
[('id', 'in', follower.window_action_ids.ids)]) |
|||
follower.created_action_names = ', '.join(actions.mapped('name')) |
|||
|
|||
def action_create(self): |
|||
""" |
|||
Creates a new action in the selected model when the 'Add Action' button |
|||
is clicked. |
|||
|
|||
This method performs the following tasks: |
|||
1. Disables the `enabled_value` field and sets the `states` field to 'running'. |
|||
2. Loops through the `applied_to_ids` (the models to which the action will |
|||
be applied) and creates a new window action (`ir.actions.act_window`) |
|||
for each model. |
|||
3. The newly created window action is associated with the |
|||
'follower.adding.removing' model and its corresponding form view. |
|||
4. The created window action is linked to the current record by adding it |
|||
to the `window_action_ids` field. |
|||
5. Once the actions are created, it reloads the client interface to reflect |
|||
the changes. |
|||
|
|||
Returns: |
|||
dict: A dictionary to trigger a client action that reloads the current view |
|||
to reflect the newly created actions. |
|||
|
|||
Key Fields: |
|||
- `enabled_value`: Set to `False` to indicate the action creation process is |
|||
ongoing. |
|||
- `states`: Updated to 'running' to show the action is in progress. |
|||
- `action_name`: The name used for the new actions. |
|||
- `applied_to_ids`: The models to which the new actions are applied. |
|||
- `window_action_ids`: Updated to include the newly created window actions. |
|||
|
|||
Returns: |
|||
A reload action to refresh the view. |
|||
""" |
|||
self.enabled_value = False |
|||
self.states = 'running' |
|||
# Check if action_name has changed and update existing actions |
|||
for model_id in self.applied_to_ids: |
|||
res = self.env['ir.actions.act_window'].create({ |
|||
'name': self.action_name, |
|||
'res_model': 'follower.adding.removing', |
|||
'type': 'ir.actions.act_window', |
|||
'view_mode': 'form', |
|||
'binding_model_id': model_id.id, |
|||
'target': 'new', |
|||
'view_id': self.env.ref( |
|||
'all_in_one_multi_followers.' |
|||
'follower_adding_removing_view_form').id, |
|||
'binding_view_types': 'list' |
|||
}) |
|||
self.window_action_ids += res |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'reload', |
|||
} |
|||
|
|||
def action_unlink(self): |
|||
""" |
|||
Removes the contextual actions created for server actions. |
|||
|
|||
This method performs the following tasks: |
|||
1. Sets the `states` field to 'cancel', indicating that the action removal |
|||
process is in progress or has been completed. |
|||
2. Deletes all window actions associated with the current record by unlinking |
|||
them through the `window_action_ids` field. |
|||
3. Clears the `window_action_ids` field by setting it to `False`. |
|||
4. Resets the `enabled_value` field to `True`, enabling the functionality for |
|||
future use. |
|||
5. Returns an action to reload the client interface to reflect the removal of |
|||
the actions. |
|||
|
|||
Returns: |
|||
dict: A dictionary to trigger a client action that reloads the current view |
|||
to reflect the removal of the actions. |
|||
|
|||
Key Fields: |
|||
- `states`: Updated to 'cancel' to indicate that the action removal is |
|||
completed or in progress. |
|||
- `window_action_ids`: Unlinked (deleted) to remove the associated actions. |
|||
- `enabled_value`: Set to `True` to re-enable the functionality for adding |
|||
actions in the future. |
|||
|
|||
Returns: |
|||
A reload action to refresh the view. |
|||
""" |
|||
self.states = 'cancel' |
|||
self.window_action_ids.unlink() |
|||
self.window_action_ids = False |
|||
self.enabled_value = True |
|||
return { |
|||
'type': 'ir.actions.client', |
|||
'tag': 'reload', |
|||
} |
|||
|
|||
def unlink(self): |
|||
""" |
|||
Overrides the unlink method to remove associated active actions before |
|||
deleting the record. |
|||
|
|||
This method performs the following tasks: |
|||
1. Iterates over each record in the current recordset (`self`). |
|||
2. For each record, it calls the `action_unlink` method to remove any |
|||
active actions associated with that record. |
|||
3. After removing the active actions, it proceeds to call the original |
|||
`unlink` method from the parent class to delete the record itself. |
|||
|
|||
Key Steps: |
|||
- Ensures that all associated active actions are properly cleaned up |
|||
before the record is deleted. |
|||
- Maintains the integrity of related actions by explicitly handling their |
|||
removal. |
|||
|
|||
Returns: |
|||
None |
|||
|
|||
Note: |
|||
- This method should be used when you want to ensure that any associated |
|||
actions are removed before the record is deleted from the database. |
|||
""" |
|||
for rec in self: |
|||
rec.action_unlink() |
|||
super().unlink() |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 119 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 37 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 99 KiB |
After Width: | Height: | Size: 525 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 54 KiB |
@ -0,0 +1,851 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
|
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Odoo App 3 Index</title> |
|||
<!-- Bootstrap CSS --> |
|||
<link rel="stylesheet" |
|||
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
|||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
|||
crossorigin="anonymous"> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
|||
rel="stylesheet"> |
|||
</head> |
|||
<body> |
|||
<section> |
|||
<div class="container" |
|||
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
|||
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
|||
<div class="my-3"> |
|||
<img src="assets/misc/Cybrosys R.png" |
|||
style="width:auto !important; height:40px !important"> |
|||
</div> |
|||
<div class="my-3 d-flex align-items-center"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Community |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
|||
Enterprise |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
|||
Odoo.sh |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
|||
style="margin: 80px 0px !important;"> |
|||
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
|||
#1A202C;"> |
|||
All in One Multi Followers </h1> |
|||
<p class="my-3 mb-4" |
|||
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
|||
Setting Multi-Followers in the Whole Odoo Model by Using |
|||
Dynamic Actions |
|||
</p> |
|||
<div style="width: 80%; margin-top: 3rem;"> |
|||
<img src="assets/screenshots/Gif.gif" |
|||
class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5 mb-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
|||
Key Highlights |
|||
</p> |
|||
</div> |
|||
<div class="row py-4"> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Community & Enterprise Support. </p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
You can Add/Remove Multiple Followers using |
|||
Dynamic Action. </p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
You can Add/Remove Multiple Followers in any |
|||
odoo model. </p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " |
|||
style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
You can apply Dynamic Action in the particular |
|||
models. </p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container rounded"> |
|||
<ul class="nav nav-tabs d-flex" |
|||
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a class="active show" data-toggle="tab" href="#tab1" |
|||
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
|||
<i class="fa-regular fa-image pr-2" |
|||
style="color: #fff;"></i> |
|||
Screenshots</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a data-toggle="tab" href="#tab2" |
|||
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
|||
class="fa-solid fa-star pr-2" |
|||
style="color: #fff;"></i>Features</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
|||
<a data-toggle="tab" href="#tab3" |
|||
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
|||
class="fa-solid fa-book-open pr-2" |
|||
style="color: #fff;"></i>Released Notes</a></li> |
|||
</ul> |
|||
<div class="tab-content" |
|||
style="background-color: rgba(121, 113, 119, 0.04);"> |
|||
<div id="tab1" class="tab-pane fade in active show"> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/1.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Configure the Dynamic Action |
|||
</h4> |
|||
<p>Navigate to Settings → General Settings → Dynamic Followers to create a Dynamic |
|||
Action |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/3.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Action Creation |
|||
</h4> |
|||
<p>Enter an Action Name and select the model in |
|||
which you want to apply. After that, click |
|||
'CREATE ACTION' to add this Action to the |
|||
model. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/4.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
After Creation. |
|||
</h4> |
|||
<p>The action is applied to the selected model. To add or remove multiple followers, |
|||
select the desired records, go to the “Action” menu, and click on the corresponding |
|||
action |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/5.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Action |
|||
</h4> |
|||
<p>Action applied in the selected model. Select |
|||
the order line in which you want to |
|||
Add/Remove Multiple Followers, then go to |
|||
Action and click on that Action. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/6.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Wizard to Add or Remove the Followers. |
|||
</h4> |
|||
<p>A wizard will open where you can select the action type and choose the partner(s) or |
|||
follower(s) you want to add or remove. Then, click the 'Submit' button. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/7.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Before Adding Followers. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/8.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Followers are Added. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/9.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Followers Removing Popup. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/10.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Before Removing Followers. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/11.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Followers are Removed. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/12.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Remove Action. |
|||
</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" |
|||
style="padding: 1rem 4rem !important;"> |
|||
<div style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/13.png" |
|||
class="img-responsive" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
After Removing. |
|||
</h4> |
|||
<p> |
|||
After clicking the button, the state changed |
|||
to the 'Cancelled' state and the 'Create |
|||
Action' button appeared. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="tab2" class="tab-pane fade"> |
|||
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
|||
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> Sale Order |
|||
History |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img |
|||
src="assets/misc/star (1) 2.svg" |
|||
alt="" |
|||
width="16px"></span> Directly add |
|||
products into Sale order line from History |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div id="tab3" class="tab-pane fade"> |
|||
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
|||
<div class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="d-flex mb-3" |
|||
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
|||
17.0.1.0.0</span><span |
|||
class="px-2">|</span><span |
|||
style="color: #714B67;font-weight: 600;">Released on:15th May 2025</span> |
|||
</div> |
|||
<p class="m-0" |
|||
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
Initial Commit forAll in One Multi Followers</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Related Products</p> |
|||
</div> |
|||
</div> |
|||
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_customer_product_history" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/l1.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Sales History Of Products</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_order_discount_approval_odoo" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/l2.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Sale Order Discount Approval</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_discount_total" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/l3.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Sale Discount on Total Amount</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="row p-4"> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_report_advanced" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/l4.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Advanced Sales Reports</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_product_image" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/l5.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
Sale Order Line Images</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/pos_book_order" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/l6.png" |
|||
alt="" width="100%" |
|||
height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold"> |
|||
POS Booking Order</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<a class="carousel-control-prev" href="#myCarousel" |
|||
data-slide="prev" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-prev-icon"> |
|||
<i class="fa fa-chevron-left" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
<a class="carousel-control-next" href="#myCarousel" |
|||
data-slide="next" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-next-icon"> |
|||
<i class="fa fa-chevron-right" |
|||
style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Services</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row py-3"> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/cogs.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Customization</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/wrench.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/lifebuoy.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/user.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Hire |
|||
Odoo Developer</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/puzzle.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Integration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/update.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Migration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/consultation.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Consultancy</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/training.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/license.png" |
|||
alt="service-icon" width="38px" |
|||
height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo |
|||
Licensing Consultancy</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Our Industries</p> |
|||
</div> |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row my-5 py-4"> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100 " |
|||
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/trading-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
|||
<p>Easily procure and sell your products</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/pos-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
|||
<p>Easy configuration and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
|||
<img src="assets/icons/education-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Education</p> |
|||
<p>A platform for educational management</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/manufacturing-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Manufacturing</p> |
|||
<p>Plan, track and schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/ecom-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & |
|||
Website</p> |
|||
<p>Mobile friendly, awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/service-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Service |
|||
Management</p> |
|||
<p>Keep track of services and invoice</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/restaurant-black.png" |
|||
width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;"> |
|||
Restaurant</p> |
|||
<p>Run your bar or restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/hotel-black.png" width="42px" |
|||
height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
|||
Management</p> |
|||
<p>An all-inclusive hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" |
|||
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
|||
Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row" style="background-color: #FFFAFE;"> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
|||
style="border-right: 1px solid #D9D9D9;"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/support (1) 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div style="padding: 0px 8px;"> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
|||
Help?</span> |
|||
<p class="m-0" style="color:#718096;">Got |
|||
questions or need help? Get in touch.</p> |
|||
<div style="font-weight: 400;"><span><img |
|||
src="assets/misc/support-email.svg" |
|||
alt="" |
|||
width="18px" |
|||
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/whatsapp 1.svg" alt="" |
|||
width="60px" style="margin-right: 12px;"> |
|||
<div> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
|||
<p class="m-0" style="color:#718096;">Say hi to |
|||
us on WhatsApp!</p> |
|||
<div style="font-weight: 400; font-size: 16px;"><span><img |
|||
src="assets/misc/phone.svg" |
|||
alt="" width="14px" |
|||
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
|||
99456767686 |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- Optional JavaScript --> |
|||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,65 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- |
|||
This action is responsible for opening a window view that allows users to |
|||
manage and add multiple followers dynamically. The action is linked to the |
|||
"multi.follower" model, and provides both tree and form views for managing |
|||
records. It also includes a help message guiding users to add followers via |
|||
the dynamic action. |
|||
--> |
|||
<record id="multi_follower_action" model="ir.actions.act_window"> |
|||
<field name="name">Multi Follower</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">multi.follower</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="oe_view_nocontent_create"> |
|||
Click to add the followers dynamic action |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<!-- |
|||
This form view is designed for the "multi.follower" model, allowing users to manage |
|||
follower actions. The form contains buttons to create or remove actions based on |
|||
the "enabled_value" field. The visibility of these buttons changes depending on |
|||
the state of "enabled_value," controlling which actions can be performed. |
|||
|
|||
- The "Create Action" button is visible when "enabled_value" is true, while the |
|||
"Remove Action" button is shown when it is false. |
|||
- The "states" field uses a status bar widget, showing the progression of the |
|||
record through its various stages: 'draft' and 'running'. |
|||
- Certain fields become read-only when the state is 'running' to prevent changes |
|||
while the action is active. |
|||
|
|||
This form provides a flexible interface for dynamically managing follower actions |
|||
and their associated data. |
|||
--> |
|||
<record id="multi_follower_view_form" model="ir.ui.view"> |
|||
<field name="name">multi.follower.view.form</field> |
|||
<field name="model">multi.follower</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<header> |
|||
<field name="enabled_value" invisible="1"/> |
|||
<button name="action_create" string="Create Action" |
|||
type="object" class="btn-primary" |
|||
invisible="not enabled_value"/> |
|||
<button name="action_unlink" string="Remove Action" |
|||
type="object" class="btn-primary" |
|||
invisible="enabled_value"/> |
|||
<field name="states" widget="statusbar" |
|||
statusbar_visible="draft,running"/> |
|||
</header> |
|||
<sheet> |
|||
<group> |
|||
<field name="action_name" |
|||
readonly="states == 'running'"/> |
|||
<field name="created_action_names" invisible="1"/> |
|||
<field name="applied_to_ids" widget="many2many_tags" |
|||
readonly="states == 'running'"/> |
|||
</group> |
|||
</sheet> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,83 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- |
|||
This view extends the `res.config.settings` form to add a new section for |
|||
managing dynamic followers within the system configuration. It inherits |
|||
the default settings view and adds a new app block specifically for "Dynamic |
|||
Followers," providing configuration options. |
|||
|
|||
Key Features: |
|||
- Adds a new app section titled "Dynamic Followers" to the settings. |
|||
- Displays a button labeled "Go to Model" within this section, allowing |
|||
users with the appropriate permissions (group_user) to quickly navigate |
|||
to the "multi.follower" model action. |
|||
- The button triggers the `multi_follower_action`, defined elsewhere in |
|||
the system, for easy management of follower actions from the settings |
|||
interface. |
|||
|
|||
This extension integrates the management of dynamic followers into the |
|||
configuration settings, providing a user-friendly interface for administrators. |
|||
--> |
|||
<record id="res_config_settings_view_form" model="ir.ui.view"> |
|||
<field name="name"> |
|||
res.config.settings.view.form.inherit.all.in.one.multi.followers |
|||
</field> |
|||
<field name="model">res.config.settings</field> |
|||
<field name="inherit_id" ref="base.res_config_settings_view_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//form" position="inside"> |
|||
<app string="Dynamic Followers" data-string="Dynamic Followers" |
|||
name="all_in_one_multi_followers"> |
|||
<div class="app_settings_block" |
|||
data-string="Dynamic Followers" |
|||
string="Dynamic Followers" |
|||
data-key="all_in_one_multi_followers"> |
|||
<h2>Dynamic Followers</h2> |
|||
<setting id="dynamic_followers_settings"> |
|||
<div class="content-group mt16"> |
|||
<span class="fw-bold">Create a Dynamic |
|||
Action |
|||
</span> |
|||
<div class="mt8" |
|||
groups="base.group_user"> |
|||
<button name="%(all_in_one_multi_followers.multi_follower_action)d" |
|||
icon="fa-arrow-right" |
|||
type="action" |
|||
string="Go to Model" |
|||
class="btn-link"/> |
|||
</div> |
|||
</div> |
|||
</setting> |
|||
</div> |
|||
</app> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
<!-- |
|||
This action is used to open the configuration settings window for the |
|||
"res.config.settings" model, specifically focusing on the "all_in_one_multi_followers" |
|||
module settings. |
|||
|
|||
Key Features: |
|||
- Opens the form view of `res.config.settings` with the view mode set to "form" to |
|||
allow users to configure settings. |
|||
- The `target` is set to "inline," which means the form will be displayed within the |
|||
same window (not as a pop-up or a new tab). |
|||
- The `context` passes the module name 'all_in_one_multi_followers' and disables |
|||
binary file size computations (`bin_size: False`), ensuring relevant settings for |
|||
this module are displayed and handled appropriately. |
|||
|
|||
This action integrates the dynamic follower settings into the broader configuration |
|||
options of the system, allowing administrators to manage them seamlessly. |
|||
--> |
|||
<record id="res_config_settings_action" |
|||
model="ir.actions.act_window"> |
|||
<field name="name">Settings</field> |
|||
<field name="res_model">res.config.settings</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">inline</field> |
|||
<field name="context">{'module' : 'all_in_one_multi_followers', |
|||
'bin_size': False} |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import follower_adding_removing |
@ -0,0 +1,199 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ajith V (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU AFFERO |
|||
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from lxml import etree |
|||
from lxml.html import builder as html |
|||
from odoo import api, fields, models, _ |
|||
|
|||
|
|||
class FollowerAddingRemoving(models.TransientModel): |
|||
"""Creating a popup wizard to adding or removing the followers in to |
|||
the model""" |
|||
_name = 'follower.adding.removing' |
|||
_description = 'Follower Adding Removing' |
|||
|
|||
res_id = fields.Integer('Related Document ID', |
|||
help='Id of the followed resource') |
|||
type = fields.Selection( |
|||
[('add', 'Add Followers'), ('remove', 'Remove Followers')], |
|||
string="Action Type", help='Select the action type', |
|||
default='add') |
|||
partner_ids = fields.Many2many('res.partner', string='Partners', |
|||
help='Select the partners to add or' |
|||
' remove to the followers') |
|||
send_mail = fields.Boolean(string='Send Email', default=True, |
|||
help="If checked, the partners will receive an " |
|||
"email warning they have been added in " |
|||
"the document's followers.") |
|||
message = fields.Html(string='Message', help='Invite/ Remove mailing ' |
|||
'message.') |
|||
|
|||
def action_submit(self): |
|||
""" |
|||
Adds or removes followers from records based on user input when the |
|||
submit button is clicked. |
|||
|
|||
- Retrieves the model information for the current active model (the one |
|||
from which the action is triggered). |
|||
- Based on the action type (`add` or `remove`), it either subscribes or |
|||
unsubscribes the selected followers (partners) to/from the records. |
|||
- If the `send_mail` flag is enabled and a message is provided, an email |
|||
notification is sent to the new followers. |
|||
|
|||
Key Steps: |
|||
1. Retrieve the active model and its records using the context's |
|||
`active_model` and `active_ids`. |
|||
2. If the action type is 'add', the selected partners (followers) are |
|||
subscribed to the record via `message_subscribe`. |
|||
3. If the action type is 'remove', the selected partners are unsubscribed |
|||
via `message_unsubscribe`. |
|||
4. If email notifications are enabled (`send_mail` is True) and a message |
|||
is provided, an email is composed and sent to the new followers. |
|||
|
|||
Returns: |
|||
None |
|||
""" |
|||
model_info = self.env['ir.model'].search( |
|||
[('model', '=', self.env.context.get('active_model'))], |
|||
limit=1) |
|||
email_from = self.env.user.email_formatted |
|||
title = [active_model.display_name for active_model in |
|||
self.env[self.env.context.get('active_model')].browse( |
|||
self.env.context.get('active_ids'))] |
|||
for record_id in self.env.context.get('active_ids'): |
|||
record = self.env[self.env.context.get('active_model')].browse( |
|||
record_id) |
|||
if self.type == 'add': |
|||
record.message_subscribe(partner_ids=self.partner_ids.ids) |
|||
elif self.type == 'remove': |
|||
record.message_unsubscribe(partner_ids=self.partner_ids.ids) |
|||
new_partners = self.partner_ids |
|||
model_name = model_info.display_name |
|||
if self.send_mail and self.message and not self.message == '<br>': |
|||
self.env['mail.mail'].create( |
|||
self._prepare_message_values(title, model_name, email_from, |
|||
new_partners) |
|||
).send() |
|||
|
|||
@api.onchange('type') |
|||
def _onchange_type(self): |
|||
""" |
|||
Updates the 'message' field based on the selected type (add or remove) when |
|||
the 'type' field is changed. |
|||
|
|||
This method is triggered automatically when the 'type' field is updated |
|||
by the user. It generates a message to reflect whether the user is adding |
|||
or removing followers from a document, and then updates the 'message' |
|||
field of the current record with this information. |
|||
|
|||
Key Steps: |
|||
1. Retrieves the name of the current user (`user_name`) and the active |
|||
document's model (`active_model`) from the context. |
|||
2. Fetches the display name of the document (record) and creates a message |
|||
informing the user whether they are being invited to follow or are being |
|||
removed from following the document. |
|||
3. The message is formatted as HTML using the `html.DIV` and `html.P` elements, |
|||
and is then serialized to a string and stored in the 'message' field. |
|||
|
|||
Example: |
|||
- If the 'type' is 'add': |
|||
"John Doe has invited you to follow the Sales Order document: SO001". |
|||
- If the 'type' is 'remove': |
|||
"John Doe has removed you from following the Sales Order document: SO001". |
|||
|
|||
Returns: |
|||
None |
|||
""" |
|||
user_name = self.env.user.display_name |
|||
model = self.env.context.get('active_model') |
|||
document = self.env['ir.model']._get(model).display_name |
|||
title = [active_model.display_name for active_model in |
|||
self.env[model].browse(self.env.context.get('active_ids'))] |
|||
if self.type == 'add': |
|||
msg_fmt = _( |
|||
f'{user_name} has invited you to follow the {document} ' |
|||
f'document: {title}') |
|||
else: |
|||
msg_fmt = _( |
|||
f'{user_name} has removed you from following the {document} ' |
|||
f'document: {title}') |
|||
text = msg_fmt % locals() |
|||
message = html.DIV( |
|||
html.P(_('Hello,')), |
|||
html.P(text) |
|||
) |
|||
self.message = etree.tostring(message) |
|||
|
|||
def _prepare_message_values(self, title, model_name, email_from, |
|||
new_partners): |
|||
""" |
|||
Prepares the necessary email values for sending a notification about |
|||
following or unfollowing a document. |
|||
|
|||
This method is responsible for generating the content of the email that |
|||
will be sent when followers are added or removed from a document. The email |
|||
contains details such as the document's model and title, the sender's email |
|||
address, and the recipients' email addresses. |
|||
|
|||
Parameters: |
|||
- title (str): The display name or title of the document being followed |
|||
or unfollowed. |
|||
- model_name (str): The display name of the model (e.g., "Sales Order", |
|||
"Purchase Order"). |
|||
- email_from (str): The formatted email address of the current user (the sender). |
|||
- new_partners (recordset): A recordset of partners (followers) to whom |
|||
the email will be sent. |
|||
|
|||
Returns: |
|||
dict: A dictionary of email values containing the following keys: |
|||
- `subject`: The subject line of the email, including the document model |
|||
and title. |
|||
- `body_html`: The HTML content of the email, using the message field |
|||
defined in the current record. |
|||
- `record_name`: The name of the document being followed/unfollowed. |
|||
- `email_from`: The sender's email address. |
|||
- `email_to`: A comma-separated list of email addresses of the new partners. |
|||
- `reply_to`: The sender's email address for reply purposes. |
|||
- `reply_to_force_new`: A flag to force new email threads for replies. |
|||
- `email_add_signature`: A flag to include the user's email signature in |
|||
the message. |
|||
|
|||
This method is designed to format and structure the email data so that it |
|||
can be sent out to notify partners of changes in document followers. |
|||
""" |
|||
email_values = { |
|||
'subject': _( |
|||
'The Document follow %(document_model)s: %(document_name)s', |
|||
document_model=model_name, |
|||
document_name=title), |
|||
'body_html': self.message, |
|||
'record_name': title, |
|||
'email_from': email_from, |
|||
'email_to': ','.join(new_partners.mapped('email')), |
|||
'reply_to': email_from, |
|||
'reply_to_force_new': True, |
|||
'email_add_signature': True, |
|||
} |
|||
return email_values |
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,44 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- |
|||
This form view is designed for the `follower.adding.removing` model, allowing users |
|||
to manage the addition or removal of followers and associated actions. |
|||
|
|||
Key Features: |
|||
- The `type` field is displayed as a radio button widget, enabling the user to |
|||
select the action type (e.g., adding or removing followers). |
|||
- The `send_mail` field allows users to specify whether an email notification |
|||
should be sent to the followers being added or removed. |
|||
- The `partner_ids` field is displayed as a many2many_tags widget to select |
|||
multiple followers (partners) for the action. |
|||
- The `message` field becomes visible only when `send_mail` is checked, allowing |
|||
users to compose a message that will be sent with the email notification. |
|||
- The footer contains two buttons: |
|||
- The "Submit" button triggers the `action_submit` method to apply the changes. |
|||
- The "Cancel" button uses the `special="cancel"` attribute to discard changes |
|||
and close the form. |
|||
|
|||
This form provides a simple interface for managing followers dynamically, with the |
|||
option to notify them via email. |
|||
--> |
|||
<record id="follower_adding_removing_view_form" model="ir.ui.view"> |
|||
<field name="name">follower.adding.removing.view.form</field> |
|||
<field name="model">follower.adding.removing</field> |
|||
<field name="arch" type="xml"> |
|||
<form> |
|||
<group> |
|||
<field name="type" widget="radio"/> |
|||
<field name="send_mail"/> |
|||
<field name="partner_ids" widget="many2many_tags"/> |
|||
<field name="message" invisible="not send_mail"/> |
|||
</group> |
|||
<footer> |
|||
<button name="action_submit" string="Submit" type="object" |
|||
class="btn-primary"/> |
|||
<button string="Cancel" class="btn-default" |
|||
special="cancel"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
</odoo> |