From 545cd797e3b786895a7036894eb9b544d6db4f78 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 26 May 2025 11:18:22 +0200 Subject: [PATCH] [MIG] base_company_extension, eradicate_quick_create, mail_usability_akretion, base_profile_akretion to v18 --- base_company_extension/__manifest__.py | 6 +-- base_profile_akretion/__init__.py | 0 base_profile_akretion/__manifest__.py | 42 +++++++++++++++++++ eradicate_quick_create/__manifest__.py | 6 +-- eradicate_quick_create/hooks.py | 6 +-- mail_usability_akretion/__manifest__.py | 13 ++---- mail_usability_akretion/models/res_partner.py | 3 +- 7 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 base_profile_akretion/__init__.py create mode 100644 base_profile_akretion/__manifest__.py diff --git a/base_company_extension/__manifest__.py b/base_company_extension/__manifest__.py index 2ee3287..c8aed76 100644 --- a/base_company_extension/__manifest__.py +++ b/base_company_extension/__manifest__.py @@ -4,14 +4,14 @@ { 'name': 'Base Company Extension', - 'version': '16.0.1.0.0', + 'version': '18.0.1.0.0', 'category': 'Partner', 'license': 'AGPL-3', 'summary': 'Adds capital and title on company', 'author': 'Akretion', 'website': 'https://github.com/akretion/odoo-usability', # I depend on base_usability only for _report_company_legal_name() - 'depends': ['base_usability'], + 'depends': ['base_usability_akretion'], 'data': ['views/res_company.xml'], - 'installable': False, + 'installable': True, } diff --git a/base_profile_akretion/__init__.py b/base_profile_akretion/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/base_profile_akretion/__manifest__.py b/base_profile_akretion/__manifest__.py new file mode 100644 index 0000000..b8c7972 --- /dev/null +++ b/base_profile_akretion/__manifest__.py @@ -0,0 +1,42 @@ +# Copyright 2025 Akretion France (https://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Base Profile by Akretion', + 'version': '18.0.1.0.0', + 'category': 'Tools', + 'license': 'AGPL-3', + 'summary': 'Base module set selected by Alexis de Lattre', + 'author': 'Akretion', + 'website': 'https://github.com/akretion/odoo-usability', + 'depends': [ + # PARTNER + 'partner_firstname', # OCA/partner-contact + 'partner_email_duplicate_warn', # OCA/partner-contact + 'partner_mobile_duplicate_warn', # OCA/partner-contact + 'contacts', # official addons + # AUTH + 'auth_admin_passkey', # OCA/server-auth + # REMOVE or FIX BAD NATIVE STUFF + 'disable_odoo_online', # OCA/server-brand + 'remove_odoo_enterprise', # OCA/server-brand + 'partner_disable_gravatar', # OCA/partner-contact + 'base_technical_features', # OCA/server-ux + ### WEB + 'web_responsive', # OCA/web + 'web_environment_ribbon', # OCA/web + 'web_no_bubble', # OCA/web + 'web_dialog_size', # OCA/web + 'web_chatter_position', # OCA/web + ### MISC + 'base_usability_akretion', # akretion/odoo-usability + 'mail_usability_akretion', # akretion/odoo-usability + 'eradicate_quick_create', # akretion/odoo-usability + 'base_company_extension', # akretion/odoo-usability + # password_security will be enabled when the move to ir.config_parameter + # will be backported + #'password_security', # OCA/server-auth + ], + 'installable': True, +} diff --git a/eradicate_quick_create/__manifest__.py b/eradicate_quick_create/__manifest__.py index 5db146d..d225dae 100644 --- a/eradicate_quick_create/__manifest__.py +++ b/eradicate_quick_create/__manifest__.py @@ -3,7 +3,7 @@ { 'name': 'Eradicate Quick Create', - 'version': '16.0.1.0.0', + 'version': '18.0.1.0.0', 'category': 'Tools', 'license': 'AGPL-3', 'summary': 'Disable quick create on all objects', @@ -18,8 +18,8 @@ This module uses the module *web_m2x_options* from the OCA *web* project (in v10 This module has been written by Alexis de Lattre from Akretion . """, 'author': 'Akretion', - 'website': 'http://www.akretion.com', + 'website': 'https://github.com/akretion/odoo-usability', 'depends': ['web_m2x_options'], 'post_init_hook': 'web_m2x_options_create', - 'installable': False, + 'installable': True, } diff --git a/eradicate_quick_create/hooks.py b/eradicate_quick_create/hooks.py index f7a0fb6..a03f420 100644 --- a/eradicate_quick_create/hooks.py +++ b/eradicate_quick_create/hooks.py @@ -2,12 +2,8 @@ # @author: Alexis de Lattre # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -from odoo import SUPERUSER_ID -from odoo.api import Environment - -def web_m2x_options_create(cr, registry): - env = Environment(cr, SUPERUSER_ID, {}) +def web_m2x_options_create(env): config_parameter = env['ir.config_parameter'].search( [('key', '=', 'web_m2x_options.create')]) if config_parameter and config_parameter.value != 'False': diff --git a/mail_usability_akretion/__manifest__.py b/mail_usability_akretion/__manifest__.py index 9221829..348c2e5 100644 --- a/mail_usability_akretion/__manifest__.py +++ b/mail_usability_akretion/__manifest__.py @@ -5,7 +5,7 @@ { 'name': 'Mail Usability', - 'version': '16.0.1.0.0', + 'version': '18.0.1.0.0', 'category': 'Productivity/Discuss', 'license': 'AGPL-3', 'summary': 'Usability improvements on mails', @@ -20,13 +20,8 @@ Small usability improvements on mails: * remove 'sent by' in notification footer (TODO mig v14) """, 'author': 'Akretion', - 'website': 'http://www.akretion.com', + 'website': 'https://github.com/akretion/odoo-usability', 'depends': ['mail'], - 'data': [ - #'views/mail_view.xml', - #'data/mail_data.xml', - #'wizard/email_template_preview_view.xml', - #'wizard/mail_compose_message_view.xml', - ], - 'installable': False, + 'data': [], + 'installable': True, } diff --git a/mail_usability_akretion/models/res_partner.py b/mail_usability_akretion/models/res_partner.py index b0bf98f..3363c95 100644 --- a/mail_usability_akretion/models/res_partner.py +++ b/mail_usability_akretion/models/res_partner.py @@ -9,8 +9,7 @@ class ResPartner(models.Model): _inherit = 'res.partner' # tracking=True is handled in the 'mail' module, so it's better - # to have this in mail_usability than in base_usability - name = fields.Char(tracking=True) + # to have this in mail_usability than in base_usability_akretion ref = fields.Char(tracking=True) lang = fields.Selection(tracking=True) street = fields.Char(tracking=True)