Skip to content

Commit

Permalink
TA#62386 [UPD] Move To Odoo Base Addons (#133)
Browse files Browse the repository at this point in the history
* Dockerfile (#1)

* setup Dockerfile and docker-compose for odoo11
* skip some peaky dependencies
* test in TravisCI
* test in CircleCI

* Merge changes from foutoucour

* Dockerfile (#1)

* setup Dockerfile and docker-compose for odoo11
* skip some peaky dependencies
* test in TravisCI
* test in CircleCI

* Setup Dockerfile for odoo-base

* add updoo + tests to confirm commands are available

* improve the tests

* rename addons to test_addons to make it a bit more descriptive
* comment in the docker-compose file why test_addons is mounted as a
volume instead of a COPY in Dockerfile

* 11.0 numitech (#24)

* usage of odoo-public
* move docker_files -> .docker_files
* revision of files that where ported to odoo-public
* introduce numitech

* [11.0] Add numipack

* add report_aeroo as dependency of numipack (#31)

+ logos for the modules of numigi

* [11.0] add module web_search_date_range to numipack (#39)

* Add OCA/server-auth and password_security (#42)

* Add OCA/server-auth and password_security

* Add auth_brute_force

* Fix the commit so auth_brute_force is present

* remove auth_brute_force (TA#3061) (#46)

remove auth_brute_force that we don't know enought to be installed to
every clients.
It should installed to the client profile if needed

* Add web_search_with_and to Numipack (#45)

* Add web_search_with_and to Numipack

* Update code of third party repositories

* Add board to numipack

* Add web_contextual_search_favorite to numipack

* Update __manifest__.py (#53)

Numipack, numitech: add the origin of each modules

* implement hourly backups (TA#3829) (#55)

Also implement the daily backup in the data so we don't have to set them
up manually

* Add document to numipack

* Add mass_editing to numipack

* Add module web_custom_label to numipack

* Add modules admin_light_base and admin_light_user

* Add binding between admin_light_user and password_security

* Codacy fix

* Add module admin_light_auditlog

* fix acl name

* Add module admin_light_mail

* Add module admin_light_calendar

* Add missing dependency

* Add admin_light_gamification

* remove unported modules

* remove unported modules

* remove unported modules

* Put back gitoo.yml and update numipack

* Remove sentry

* Enable autobackup

* Add partner_phone_validation to numipack

* Add missing acl line to admin_ligh_user group.

* setup web.base.url.freeze (TA#6960) (#96) (#97)

* setup web.base.url.freeze (TA#6960)

* add test

* use <function> so it does not crash if the value is already set

* Fix admin_light_user

prevent access error when auth_signup is installed.

* Add module admin_light_web

* add ir_attachment_access_token_portal to numipack  TA#6109 (#81)

* Fix sources of modules in numipack manifest

* Activate report_aeroo and disable_odoo_online

* Migrate admin_light to v12

* admin_light_auditlog: fix subscribe/unsubscribe

* Add password security to numipack 12.0

* Add module web_search_with_and for version 12.0

* Replace password_security with auth_password_policy

* Add sequences to admin light

* Add migration script for sequences in admin light

* enable hourly backups (#148)

* Add numipack accounting

* Numipack Accounting: Remove unlink access to accounting models

* Add numipack for sale, purchase and project

Disable delete access on main workflow objects for these applications

* Add missing unlink access

* Typo

* Typo

* Add vendor_invoice_full_list to numipack_account

* Add partner_create_group to numipack

* Add modules to numipack_account

* Add module web_email_field_new_tab to Numipack (#163)

Squash merge pull request MDExOlB1bGxSZXF1ZXN0MzAzNzk4MDQ1

* Add mail subtypes to admin light mail

* Remove restriction on account.move.line unlink (#174)

* Remove restriction on account.move.line unlink 

https://isidor.numigi.net/web#id=13254&action=298&model=project.task&view_type=form&menu_id=200

* Login to quay.io using --password-stdin

* Add module product_extra_views to numipack (#176)

* Add module product_extra_views to numipack

https://isidor.numigi.net/web#id=15297&action=298&model=project.task&view_type=form&menu_id=200

* Update README.rst

* Add module database_bi_user (#177)

* Use extended.security.rule for preventing unlink rules of domain models (#178)

* Use extended.security.rule for preventing unlink rules of domain models

This solution is more portable from an Odoo version to another because it
does not rely on overriding existing rules by their xml ids.

It also prevent any side effect on the internal behavior of Odoo.

* Typo

* Typo

* Update extended_security_rule.xml

* Prevent access errors related to res.groups when saving a user (#179)

* Add missing dependency to admin_light_user (#180)

* Add missing dependency to admin_light_user

* Update __manifest__.py

* Add report_aeroo_replace_qweb to numipack (#182)

* Add web_form_disable_autocomplete to numipack (#185)

* Update __manifest__.py

* Add base_extended_security to numipack_account dependencies (#186)

* 12.0 revoke columns from BI user (#184)

* Revoke private field columns from BI database user

* Add doc to README

* Typo

* Update addons/database_bi_user/models/ir_private_field.py

Co-Authored-By: Jordi Riera <[email protected]>

* Update ir_private_field.py

* Add project_task_stage_external_mail to numipack (#187)

* Add mail_message_from_author to numipack (#188)

* Add mail_message_from_author to numipack

https://www.numigi.com/web#id=16040&action=298&model=project.task&view_type=form&menu_id=200

* Update README.rst

* Add mail_notification_no_footer to numipack (#189)

* Add mail_notification_no_footer to numipack

https://www.numigi.com/web#id=16957&action=298&model=project.task&view_type=form&menu_id=200

* Update README.rst

* Add konvergo (#195)

* Add konvergo

* Add missing dependencies for mis_builder

* Typo

* Add python requirements for mis_builder

* Typo

* Remove xlsxwriter (already in odoo image)

* Add account_show_full_features to konvergo (#196)

* add odoo_debrand (TA#16526) (#204)

* add odoo_debrand (TA#16526)

* typo

* typo

* move odoo-debrand to odoo-cybrosis-addons (TA#16526)

* Add web_custom_modifier

* 12.0 login page (TA#18145) (#205)

* first work on login page (TA#18191)

* tweak the login page

* switch to bootstrap

* codacy + img

* Add auth_oauth / oauth_signup compatibility (#207)

* Add auth_oauth / oauth_signup compatibility

* Update webclient_templates.xml

* fix code

* remove useless controller
* add screenshot

Co-authored-by: David Dufresne <[email protected]>

* Add profile_hr (#211)

* Add profile_hr

* Update __manifest__.py (#213)

* Add module contacts_config_sale_manager to numipack_sale (#217)

* Setup favicon and title (TA#16527) (#219)

* Setup favicon and title (TA#16527)

* setup muk web theme for backend

* set the favicon and title as a module

* reset version

* disable publisher cron job (TA#16530) (#218)

* disable publisher cron job (TA#16530)

* set the favicon and title as a module

Co-authored-by: David Dufresne <[email protected]>

* Add konvergo_bot (#220)

* Add konvergo_bot

* Codacy

* Fix location of product template tags (#216)

Co-authored-by: Jordi Riera <[email protected]>

* Move konvergo addons to a separate folder

Co-authored-by: Jordi Riera <[email protected]>

* Allow to disable protection on protected fields (#222)

* Add smile_web_impex (TA#19309) (#223)

* TA#18504 Add contacts_config_menu_moved_right to numipack (#224)

* Add module admin_light_company (#230)

* Add multi-company rule to admin light (#265)

* TA#23899 Add numikube_attachment_minio (#266)

* Add numikube_attachment_minio

* Fix reference to model name

* Add module multi_step_wizard

This module is a new dependency of account_bank_statement_import_txt_xlsx.

* Add missing OCA module

* TA#23985 Add module numikube_database_backup (#267)

* Add module numikube_database_backup

* Auto create attachments bucket

* Fix attachment_minio

* Add web_search_date_range_account to Numipack (#269)

* Add session_redis to numikube (#272)

* Add session_redis to numikube

* Allow to customise the bucket name for attachments and backups (#275)

* Allow to customise the bucket name for attachments and backups

* Add module dependencies

* Fix unit test

* TA#23573 Add mail.tracking.value access to admin light (#278)

* TA#25365 Add minio backups rotation (#289)

* TA#25365 Add minio backups rotation

* TA#26522 Fix backups transfer to minio (#303)

* Remove attachment migration script (#305)

The script is redundant with the one found in the module base_attachment_object_storage.
Also the later one is more performant.

* TA#26814 run database backups with awscli (#311)

* TA#21323 Add module mail_template_default to numipack (#312)

* TA#26522 Use custom dump_db script (#320)

The function dump_db defined in odoo.service.db gives unpredictable results.

The problem might be caused by the function _exec_pipe of odoo.tools.misc.

* TA#23503 Remove mail_notification_no_footer from numipack (#331)

* TA#23503 Remove mail_notification_no_footer from numipack

* Update __manifest__.py

* TA#29490 add module prod2x_user_activation (#368)

* TA#30823 add admin light group to restricted fields (#379)

* TA#30492 add extra audit and security rules to numipack (#383)

* TA#30492 add extra audit and security rules to numipack

* Add missing dependency to numipack_stock (#389)

* Add missing dependency to numipack_stock

* Add missing dependencies

* TA#32338 add a parameter to prevent database backups (#393)

* #TA33279 - update numipack account (#400)

add security modules on account move reversal

* TA#34544 - update numipack (#413)

* TA#34962 prevent admin light from unarchiving super user (#416)

* TA#34363 port konvergo to v14 (#419)

* Partially port numipack to v14

* TA#34363 port konvergo modules to v14

* Update spread-the-version

* Fix docker-compose.yml

* Fix circle conf

* TA#37571 Port konvergo_account to v14 (#449)

* Port konvergo_account to v14

* Add main and main_konvergo

These modules define the modules that need to be installed
in order to test odoo-base modules.

main_konvergo contains modules only installed for Konvergo
(not installed for Odoo Base Enterprise).

* TA#41365 add missing action to group Access Rights (#507)

* TA#41366 add extended security rule to account types (#515)

* Bump module version

* bump version to update data (#539)

* TA#44348 add missing access rights for password reset wizard (#541)

* TA#44348 add missing access rights for password reset wizard

Add missing menu entry for password reset instructions action.

* Update __manifest__.py

* TA#44603 - Forbid access to administration access rights by admin light (#562)

Co-authored-by: Julien <[email protected]>
Co-authored-by: Quentin Lavallée-Bourdeau <[email protected]>

* TA#44603 - Bump version (#568)

Co-authored-by: Quentin Lavallée-Bourdeau <[email protected]>

* TA#45949 add module stock_account_visibility (#587)

Co-authored-by: Julien <[email protected]>
Co-authored-by: Quentin Lavallée-Bourdeau <[email protected]>

* TA#47076 - Update numipack v14 (#611)

Co-authored-by: Majda EL MARIOULI <[email protected]>

* TA#49755 fix admin_light_user (#650)

* TA#49755 Fix admin_light_user (#651)

* TA#49755 Fix admin_light_user (#652)

* TA#49755 Remove print from code (#653)

* TA#47945 [IMP] admin_light_user : remove allow export group category from hidden group (#683)

* TA#47945 [IMP] admin_light_user : remove allow export group category from hidden group

* TA#47945 Add comment

---------

Co-authored-by: Majda EL MARIOULI <[email protected]>

* TA#47945 [UP] Bump module version (#688)

* TA#50605 [MIG]:numikube_staging (#679)

* TA#50605 [MIG]:numikube_staging

* TA#50605 [FIX]:numikube_staging

---------

Co-authored-by: Majda EL MARIOULI <[email protected]>

* TA#51432 [FIX]: Modules Numipack v14 (#695)

Co-authored-by: Majda EL MARIOULI <[email protected]>

* TA#51462 [MIG]: numipack_stock (#698)

Co-authored-by: Majda EL MARIOULI <[email protected]>

* Update README.rst

* Update README.rst

* TA#52250 [MIG] Migration of six modules on odoo-base (#725)

* TA#52250 [MIG] Migration of six modules on odoo-base

* TA#52250 [CHG] Activating tests for newly added addons

---------

Co-authored-by: Majda EL MARIOULI <[email protected]>

* Update README.rst

* fix images path in Readme v14

* TA#53673 [ADD] admin_light_filters : migration of module (#737)

* TA#53673 [ADD] admin_light_filters : migration of module

* TA#53673 [ADD] main : module added for testing

* TA#53672 [UP] Add module admin_light_filters to Numipack (#739)

* TA#53621 [IMP] numipack_account : make account_setup_fy_data_state visible (#744)

* TA#53621 [FIX] Display field account_setup_fy_data_state (#746)

* TA#53984 [ADD] admin_light_bi_view_editor : module on v14 (#750)

* TA#54157 [UP] Add module admin_light_web to Numipack (#758)

* TA#53106 add back web_search_with_and (#761)

* TA#55010 add project list to numipack_project [14.0] (#763)

* TA#55339 [ADD] web_advanced_search to Numipack (#771)

* [ADD] web_advanced_search to Numipack

* [Update version]

* TA#55279 [UP] Remove stock_immediate_transfert_disable du Numipack_stock (#783)

* TA#55279 [UP] Remove stock_immediate_transfert_disable du Numipack_stock

* TA#56788 [UP] Enrishi list of modules (#808)

* TA#56788 [UP] Enrichi list of modules

* TA#56788 [UP] Remove smile_web_impex

* TA#56786 [UPD] translations improved for admin light modules (#809)

* TA#56786 [UPD] translations improved

* [UPD] screenshots with new translations

* TA#56786 [UP] Bump module version

---------

Co-authored-by: Majda EL MARIOULI <[email protected]>

* TA#56971 TA#56928 [UP] Adapt module to OCA auditlog (#818)

* TA#56971 [FIX] add name field to auditlog_rule

* TA#56200 [ADD] admin_light_mail_outlook, admin_light_mail_gmail (#821)

* TA#57998 [UP] add module base_external_report_layout to Konvergo (#829)

* TA#57414 [ADD] event_allowed_ceu : new module (#830)

* Revert "TA#57414 [ADD] event_allowed_ceu : new module (#830)" (#831)

This reverts commit 07e3f60.

* Bump Numipack Module Version (#832)

* TA#58024 [UP] Add module account_fiscalyear_end_on_company to numipac… (#835)

* TA#58024 [UP] Add module account_fiscalyear_end_on_company to numipack_account

* TA#56200 [UP] Grant access to mail_mail for the group email_server (#837)

* TA#56200 [UP] Grant access to mail_mail for the group email_server

* TA#56932 TA#59200 add base_automation_webhood (#858)

* TA#61224 [UPD] Remove db host from godoo isolate cmd (#866)

* TA#61224 [UPD] Remove db host from godoo isolate cmd

* TA#58430 [UPD] Add module to numipack_stock (#870)

* TA#62386 [UPD] Clear List Of Modules

* TA#62386 [UPD] Move Base Addons List Of Modules

* add modules to docker_files

* add modules to Dockerfile

* Update gitoo.yml

* Update gitoo.yml

* Update gitoo.yml

* Update __manifest__.py

* Update gitoo.yml

* Update gitoo.yml

* Remove Permanently cron_lock_disable Module

* Update __manifest__.py

---------

Co-authored-by: Jordi Riera <[email protected]>
Co-authored-by: David Dufresne <[email protected]>
Co-authored-by: Jordi Riera <[email protected]>
Co-authored-by: David Dufresne <[email protected]>
Co-authored-by: David Dufresne <[email protected]>
Co-authored-by: jbreard <[email protected]>
Co-authored-by: Julien <[email protected]>
Co-authored-by: Quentin Lavallée-Bourdeau <[email protected]>
Co-authored-by: Lanto Razafindrabe <[email protected]>
Co-authored-by: Houda BENTALEB <[email protected]>
Co-authored-by: Julie LeBrun <[email protected]>
  • Loading branch information
12 people authored Feb 12, 2024
1 parent feb2442 commit eb82e0c
Show file tree
Hide file tree
Showing 172 changed files with 3,144 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .docker_files/main/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@
"sale", # required for testing mail_message_from_author
"stock", # required for testing base_extended_security
"crm", # required for testing mail_notification_no_action_button
"admin_light_auditlog",
"admin_light_base",
"admin_light_bi_view_editor",
"admin_light_calendar",
"admin_light_company",
"admin_light_filters",
"admin_light_gamification",
"admin_light_mail",
"admin_light_mail_gmail",
"admin_light_mail_outlook",
"admin_light_user",
"admin_light_web",
"auth_oauth_authentik",
"automatic_activity_deadlines",
"base_extended_security",
Expand All @@ -34,14 +46,23 @@
"mail_notification_no_footer",
"mail_template_default",
"note_no_default_stage",
# "numipack",
# "numipack_account",
# "numipack_account_enterprise",
# "numipack_project",
# "numipack_purchase",
# "numipack_sale",
# "numipack_stock",
"portal_signature_auto",
"private_data_group",
#"profile_hr",
"queue_job_auto_requeue",
"test_http_request",
"utm_archive",
"web_email_field_new_tab",
"dms_document_url",
"event_allowed_ceu",
"web_base_url_freeze",
],
"installable": True,
}
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ RUN gitoo install-all --conf_file /gitoo.yml --destination "${THIRD_PARTY_ADDONS

USER odoo

COPY admin_light_auditlog /mnt/extra-addons/admin_light_auditlog
COPY admin_light_base /mnt/extra-addons/admin_light_base
COPY admin_light_bi_view_editor /mnt/extra-addons/admin_light_bi_view_editor
COPY admin_light_calendar /mnt/extra-addons/admin_light_calendar
COPY admin_light_company /mnt/extra-addons/admin_light_company
COPY admin_light_filters /mnt/extra-addons/admin_light_filters
COPY admin_light_gamification /mnt/extra-addons/admin_light_gamification
COPY admin_light_mail /mnt/extra-addons/admin_light_mail
COPY admin_light_mail_gmail /mnt/extra-addons/admin_light_mail_gmail
COPY admin_light_mail_outlook /mnt/extra-addons/admin_light_mail_outlook
COPY admin_light_user /mnt/extra-addons/admin_light_user
COPY admin_light_web /mnt/extra-addons/admin_light_web
COPY auth_oauth_authentik /mnt/extra-addons/auth_oauth_authentik
COPY automatic_activity_deadlines /mnt/extra-addons/automatic_activity_deadlines
COPY base_extended_security /mnt/extra-addons/base_extended_security
Expand All @@ -34,14 +46,23 @@ COPY mail_message_from_author /mnt/extra-addons/mail_message_from_author
COPY mail_notification_no_footer /mnt/extra-addons/mail_notification_no_footer
COPY mail_template_default /mnt/extra-addons/mail_template_default
COPY note_no_default_stage /mnt/extra-addons/note_no_default_stage
COPY numipack /mnt/extra-addons/numipack
COPY numipack_account /mnt/extra-addons/numipack_account
COPY numipack_account_enterprise /mnt/extra-addons/numipack_account_enterprise
COPY numipack_project /mnt/extra-addons/numipack_project
COPY numipack_purchase /mnt/extra-addons/numipack_purchase
COPY numipack_sale /mnt/extra-addons/numipack_sale
COPY numipack_stock /mnt/extra-addons/numipack_stock
COPY portal_signature_auto /mnt/extra-addons/portal_signature_auto
COPY profile_hr /mnt/extra-addons/profile_hr
COPY private_data_group /mnt/extra-addons/private_data_group
COPY queue_job_auto_requeue /mnt/extra-addons/queue_job_auto_requeue
COPY test_http_request /mnt/extra-addons/test_http_request
COPY utm_archive /mnt/extra-addons/utm_archive
COPY web_email_field_new_tab /mnt/extra-addons/web_email_field_new_tab
COPY dms_document_url /mnt/extra-addons/dms_document_url
COPY event_allowed_ceu /mnt/extra-addons/event_allowed_ceu
COPY web_base_url_freeze /mnt/extra-addons/web_base_url_freeze

COPY .docker_files/main /mnt/extra-addons/main
COPY .docker_files/odoo.conf /etc/odoo
18 changes: 18 additions & 0 deletions admin_light_auditlog/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Admin Light AuditLog
====================
This module adds Auditlog to the Admin Light application.

A new group `Safe Administration / Audit Logs` is added.

This group has access to:

* View audit logs
* Edit audit rules

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
4 changes: 4 additions & 0 deletions admin_light_auditlog/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from . import audit_rule
18 changes: 18 additions & 0 deletions admin_light_auditlog/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'Admin Light Audit Logs',
'version': '1.0.1',
'author': 'Numigi',
'maintainer': 'Numigi',
'license': 'LGPL-3',
'category': 'Other',
'summary': 'Add a group to manage audit logs.',
'depends': ['admin_light_base', 'auditlog'],
'data': [
'data.xml',
'security/ir.model.access.csv',
],
'installable': True,
}
27 changes: 27 additions & 0 deletions admin_light_auditlog/audit_rule.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# © 2019 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

from odoo import api, models


class AuditRule(models.Model):
"""Use sudo when subscribing/unsubscribing an audit rule.
The mechanism of creating/deleting the action in the form view
uses multiple objects that the admin/light should not be able
to access.
"""

_inherit = 'auditlog.rule'

def unsubscribe(self):
if self.env.user.has_group('admin_light_auditlog.group_auditlogs'):
self = self.sudo()

return super(AuditRule, self).unsubscribe()

def subscribe(self):
if self.env.user.has_group('admin_light_auditlog.group_auditlogs'):
self = self.sudo()

return super(AuditRule, self).subscribe()
45 changes: 45 additions & 0 deletions admin_light_auditlog/data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="group_auditlogs" model="res.groups">
<field name="name">Audit Logs</field>
<field name="category_id" ref="admin_light_base.module_category_admin"/>
<field name="implied_ids" eval="[
(4, ref('admin_light_base.group_admin')),
]"/>
</record>

<menuitem
id="menu_audit"
name="Audit"
parent="admin_light_base.menu_admin"
groups="group_auditlogs"
sequence="10"
/>

<menuitem
id="menu_audit_logs"
name="Logs"
parent="menu_audit"
action="auditlog.action_auditlog_log_tree"
sequence="1"
/>

<menuitem
id="menu_audit_field_logs"
name="Detailed Logs"
parent="menu_audit"
action="auditlog.action_auditlog_line"
sequence="2"
/>

<menuitem
id="menu_action_auditlog_rule_tree"
name="Rules"
parent="menu_audit"
action="auditlog.action_auditlog_rule_tree"
sequence="3"
/>


</odoo>
43 changes: 43 additions & 0 deletions admin_light_auditlog/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * admin_light_auditlog
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-01-24 16:34+0000\n"
"PO-Revision-Date: 2019-01-24 11:36-0500\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"
"X-Generator: Poedit 2.0.6\n"

#. module: admin_light_auditlog
#: model:ir.ui.menu,name:admin_light_auditlog.menu_audit
msgid "Audit"
msgstr "Audit"

#. module: admin_light_auditlog
#: model:res.groups,name:admin_light_auditlog.group_auditlogs
msgid "Audit Logs"
msgstr "Journaux d'audit"

#. module: admin_light_auditlog
#: model:ir.ui.menu,name:admin_light_auditlog.menu_audit_field_logs
msgid "Detailed Logs"
msgstr "Journaux détaillés"

#. module: admin_light_auditlog
#: model:ir.ui.menu,name:admin_light_auditlog.menu_audit_logs
msgid "Logs"
msgstr "Journaux"

#. module: admin_light_auditlog
#: model:ir.ui.menu,name:admin_light_auditlog.menu_action_auditlog_rule_tree
msgid "Rules"
msgstr "Règles"
5 changes: 5 additions & 0 deletions admin_light_auditlog/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_auditlog_rule_manager,Admin Light: auditlog.rule,auditlog.model_auditlog_rule,group_auditlogs,1,1,1,1
access_auditlog_log_manager,Admin Light: auditlog.log,auditlog.model_auditlog_log,group_auditlogs,1,1,1,1
access_auditlog_log_line_manager,Admin Light: auditlog.log.line,auditlog.model_auditlog_log_line,group_auditlogs,1,1,1,1
access_auditlog_http_request_manager,Admin Light: auditlog.http.request,auditlog.model_auditlog_http_request,group_auditlogs,1,1,1,1
Binary file added admin_light_auditlog/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions admin_light_auditlog/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# © 2019 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
50 changes: 50 additions & 0 deletions admin_light_auditlog/tests/test_admin_light_access.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# © 2019 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

import pytest
from odoo.exceptions import AccessError
from odoo.tests import common


class TestAdminLightAccess(common.SavepointCase):

@classmethod
def setUpClass(cls):
super().setUpClass()
cls.group = cls.env.ref('admin_light_auditlog.group_auditlogs')
cls.user = cls.env['res.users'].create({
'name': 'Test',
'login': '[email protected]',
'email': '[email protected]',
'groups_id': [(4, cls.group.id)],
})

cls.rule = cls.env['auditlog.rule'].create({
'name': 'Test',
'model_id': cls.env.ref('base.model_ir_cron').id,
'log_write': True,
'log_unlink': True,
'log_create': True,
})

def test_can_activate_audit_rule(self):
self.rule.sudo(self.user).subscribe()
assert self.rule.state == 'subscribed'

def test_can_deactivate_audit_rule(self):
self.rule.subscribe()
assert self.rule.state == 'subscribed'
self.rule.sudo(self.user).unsubscribe()
assert self.rule.state == 'draft'

def test_if_not_admin_light__can_not_activate_audit_rule(self):
self.user.groups_id -= self.group
with pytest.raises(AccessError):
self.rule.sudo(self.user).subscribe()

def test_if_not_admin_light__can_not_deactivate_audit_rule(self):
self.rule.subscribe()

self.user.groups_id -= self.group
with pytest.raises(AccessError):
self.rule.sudo(self.user).unsubscribe()
34 changes: 34 additions & 0 deletions admin_light_base/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Admin Light
===========
This module adds a new `Administration` menu with restricted functionalities.

.. image:: static/description/app_icon.png

The purpose of this module is to give partial administration access to the client.
This helps prevent manipulation errors and simplifies the navigation for the administrator.

This module adds the new application without any content.
Specific modules add the functionalities to the application.

Functionalities are added on an `ad hoc` basis, based on the trainings completed by the client.
Each functionnality is added by a specific user group.

.. image:: static/description/user_form.png

Sequences
---------
A new group `Safe Administration / Sequences` is added.

.. image:: static/description/sequence_group.png

This group has access to create and edit sequences.

.. image:: static/description/sequence_list.png

Contributors
------------
* Numigi (tm) and all its contributors (https://bit.ly/numigiens)

More information
----------------
* Meet us at https://bit.ly/numigi-com
2 changes: 2 additions & 0 deletions admin_light_base/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
20 changes: 20 additions & 0 deletions admin_light_base/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# © 2018 Numigi (tm) and all its contributors (https://bit.ly/numigiens)
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
'name': 'Admin Light',
'version': '1.0.2',
'author': 'Numigi',
'maintainer': 'Numigi',
'license': 'LGPL-3',
'category': 'Other',
'summary': 'Add an admin menu with restricted functionalities.',
'depends': ['base'],
'data': [
'base.xml',
'sequence.xml',
'security/ir.model.access.csv',
],
'installable': True,
'application': True
}
28 changes: 28 additions & 0 deletions admin_light_base/base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="module_category_admin" model="ir.module.category">
<field name="name">Safe Administration</field>
<field name="sequence">100</field>
</record>

<record id="group_admin" model="res.groups">
<field name="name">Safe Administration / Base</field>
<field name="category_id" ref="base.module_category_usability"/>
</record>

<menuitem
id="menu_admin"
name="Administration"
web_icon="base,static/description/settings.png"
sequence="500"
groups="group_admin"/>

<menuitem
id="menu_other"
name="Other"
parent="menu_admin"
sequence="100"
/>

</odoo>
Loading

0 comments on commit eb82e0c

Please sign in to comment.