Add module sale_crm_usability

This commit is contained in:
Alexis de Lattre
2023-01-19 17:15:56 +01:00
parent aa16b70bdd
commit dbad21c13a
4 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import models

View File

@@ -0,0 +1,18 @@
# Copyright 2023 Akretion (http://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
'name': 'Sale CRM Usability',
'version': '14.0.1.0.0',
'category': 'CRM',
'license': 'AGPL-3',
'summary': 'Usability improvements on sale_crm module',
'author': 'Akretion',
'website': 'https://github.com/akretion/odoo-usability',
'depends': [
'sale_crm',
],
'data': [],
'installable': True,
}

View File

@@ -0,0 +1 @@
from . import crm_lead

View File

@@ -0,0 +1,14 @@
# Copyright 2023 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import api, models
class CrmLead(models.Model):
_inherit = 'crm.lead'
def action_view_sale_quotation(self):
action = super().action_view_sale_quotation()
if 'search_default_partner_id' in action['context']:
action['context'].pop('search_default_partner_id')
return action