Add module sale_crm_usability
This commit is contained in:
1
sale_crm_usability/__init__.py
Normal file
1
sale_crm_usability/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import models
|
||||
18
sale_crm_usability/__manifest__.py
Normal file
18
sale_crm_usability/__manifest__.py
Normal 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,
|
||||
}
|
||||
1
sale_crm_usability/models/__init__.py
Normal file
1
sale_crm_usability/models/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from . import crm_lead
|
||||
14
sale_crm_usability/models/crm_lead.py
Normal file
14
sale_crm_usability/models/crm_lead.py
Normal 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
|
||||
Reference in New Issue
Block a user