[MIG] base_company_extension, eradicate_quick_create, mail_usability_akretion, base_profile_akretion to v18

This commit is contained in:
Alexis de Lattre
2025-05-26 11:18:22 +02:00
parent 70b66681d6
commit 545cd797e3
7 changed files with 54 additions and 22 deletions

View File

@@ -4,14 +4,14 @@
{ {
'name': 'Base Company Extension', 'name': 'Base Company Extension',
'version': '16.0.1.0.0', 'version': '18.0.1.0.0',
'category': 'Partner', 'category': 'Partner',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Adds capital and title on company', 'summary': 'Adds capital and title on company',
'author': 'Akretion', 'author': 'Akretion',
'website': 'https://github.com/akretion/odoo-usability', 'website': 'https://github.com/akretion/odoo-usability',
# I depend on base_usability only for _report_company_legal_name() # I depend on base_usability only for _report_company_legal_name()
'depends': ['base_usability'], 'depends': ['base_usability_akretion'],
'data': ['views/res_company.xml'], 'data': ['views/res_company.xml'],
'installable': False, 'installable': True,
} }

View File

View File

@@ -0,0 +1,42 @@
# Copyright 2025 Akretion France (https://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# 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,
}

View File

@@ -3,7 +3,7 @@
{ {
'name': 'Eradicate Quick Create', 'name': 'Eradicate Quick Create',
'version': '16.0.1.0.0', 'version': '18.0.1.0.0',
'category': 'Tools', 'category': 'Tools',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Disable quick create on all objects', '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 <alexis.delattre@akretion.com>. This module has been written by Alexis de Lattre from Akretion <alexis.delattre@akretion.com>.
""", """,
'author': 'Akretion', 'author': 'Akretion',
'website': 'http://www.akretion.com', 'website': 'https://github.com/akretion/odoo-usability',
'depends': ['web_m2x_options'], 'depends': ['web_m2x_options'],
'post_init_hook': 'web_m2x_options_create', 'post_init_hook': 'web_m2x_options_create',
'installable': False, 'installable': True,
} }

View File

@@ -2,12 +2,8 @@
# @author: Alexis de Lattre <alexis.delattre@akretion.com> # @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). # 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(env):
def web_m2x_options_create(cr, registry):
env = Environment(cr, SUPERUSER_ID, {})
config_parameter = env['ir.config_parameter'].search( config_parameter = env['ir.config_parameter'].search(
[('key', '=', 'web_m2x_options.create')]) [('key', '=', 'web_m2x_options.create')])
if config_parameter and config_parameter.value != 'False': if config_parameter and config_parameter.value != 'False':

View File

@@ -5,7 +5,7 @@
{ {
'name': 'Mail Usability', 'name': 'Mail Usability',
'version': '16.0.1.0.0', 'version': '18.0.1.0.0',
'category': 'Productivity/Discuss', 'category': 'Productivity/Discuss',
'license': 'AGPL-3', 'license': 'AGPL-3',
'summary': 'Usability improvements on mails', 'summary': 'Usability improvements on mails',
@@ -20,13 +20,8 @@ Small usability improvements on mails:
* remove 'sent by' in notification footer (TODO mig v14) * remove 'sent by' in notification footer (TODO mig v14)
""", """,
'author': 'Akretion', 'author': 'Akretion',
'website': 'http://www.akretion.com', 'website': 'https://github.com/akretion/odoo-usability',
'depends': ['mail'], 'depends': ['mail'],
'data': [ 'data': [],
#'views/mail_view.xml', 'installable': True,
#'data/mail_data.xml',
#'wizard/email_template_preview_view.xml',
#'wizard/mail_compose_message_view.xml',
],
'installable': False,
} }

View File

@@ -9,8 +9,7 @@ class ResPartner(models.Model):
_inherit = 'res.partner' _inherit = 'res.partner'
# tracking=True is handled in the 'mail' module, so it's better # tracking=True is handled in the 'mail' module, so it's better
# to have this in mail_usability than in base_usability # to have this in mail_usability than in base_usability_akretion
name = fields.Char(tracking=True)
ref = fields.Char(tracking=True) ref = fields.Char(tracking=True)
lang = fields.Selection(tracking=True) lang = fields.Selection(tracking=True)
street = fields.Char(tracking=True) street = fields.Char(tracking=True)