Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions mpf_crm/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=======
Mpf crm
=======

* New objects: "Belongs to", "Brand", "Crm Lead Type", in CRM - Configuration -
Customizations.
* In crm lead object new fields: "Cancelled quotations", "Lead Type", "Brand",
"It belongs to".
* In account move object new fields: "Opportunity", "Lead Type" and "Brand".
* When an invoice is created from a sales order, the invoice will be informed
of the sales order opportunity.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/avanzosc/custom-addons/issues>`_. In case of trouble,
please check there if your issue has already been reported. If you spotted
it first, help us smash it by providing detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.


Credits
=======

Contributors
~~~~~~~~~~~~

* Ana Juaristi <[email protected]>
* Alfredo de la Fuente <[email protected]>
9 changes: 9 additions & 0 deletions mpf_crm/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from . import models


def _post_install_put_sale_lead_in_account_invoice(env):
cond = [("opportunity_id", "!=", False)]
sales = env["sale.order"].search(cond)
for sale in sales:
if sale.invoice_ids:
sale.invoice_ids.write({"opportunity_id": sale.opportunity_id.id})
21 changes: 21 additions & 0 deletions mpf_crm/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2026 Alfredo de la Fuente - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "MPF Crm",
"summary": "Personalizaciones Odoo para MP Fluids",
"version": "18.0.1.0.0",
"category": "Custom Module",
"license": "AGPL-3",
"author": "AvanzOSC",
"website": "https://github.com/avanzosc/custom-addons",
"depends": ["sale", "crm", "sale_crm", "sales_team", "account"],
"data": [
"security/ir.model.access.csv",
"views/crm_lead_belong_views.xml",
"views/crm_lead_brand_views.xml",
"views/crm_lead_type_views.xml",
"views/crm_lead_views.xml",
"views/account_move_views.xml",
],
"post_init_hook": "_post_install_put_sale_lead_in_account_invoice",
}
181 changes: 181 additions & 0 deletions mpf_crm/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mpf_crm
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-01-08 11:57+0000\n"
"PO-Revision-Date: 2026-01-08 11:57+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__lead_ids
#: model:ir.model.fields,field_description:mpf_crm.field_brand__lead_ids
#: model:ir.model.fields,field_description:mpf_crm.field_type__lead_ids
msgid "Assigned leads"
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_belongs
msgid "Belongs to"
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_brand
#: model:ir.model.fields,field_description:mpf_crm.field_account_bank_statement_line__lead_brand_id
#: model:ir.model.fields,field_description:mpf_crm.field_account_move__lead_brand_id
#: model:ir.model.fields,field_description:mpf_crm.field_crm_lead__brand_id
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_opportunity_report_view_search
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_account_invoice_filter
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_opportunities_filter
msgid "Brand"
msgstr ""

#. module: mpf_crm
#: model:ir.actions.act_window,name:mpf_crm.crm_lead_brand_action
#: model:ir.ui.menu,name:mpf_crm.menu_crm_lead_brand
msgid "Brands"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_crm_lead__cancelled_quotation_count
msgid "Cancelled quotations"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__create_uid
#: model:ir.model.fields,field_description:mpf_crm.field_brand__create_uid
#: model:ir.model.fields,field_description:mpf_crm.field_type__create_uid
msgid "Created by"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__create_date
#: model:ir.model.fields,field_description:mpf_crm.field_brand__create_date
#: model:ir.model.fields,field_description:mpf_crm.field_type__create_date
msgid "Created on"
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_type
msgid "Crm Lead Type"
msgstr ""

#. module: mpf_crm
#: model:ir.ui.menu,name:mpf_crm.crm_custom_menu_config
msgid "Customizations"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__name
#: model:ir.model.fields,field_description:mpf_crm.field_brand__name
#: model:ir.model.fields,field_description:mpf_crm.field_type__name
msgid "Description"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__display_name
#: model:ir.model.fields,field_description:mpf_crm.field_brand__display_name
#: model:ir.model.fields,field_description:mpf_crm.field_type__display_name
msgid "Display Name"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__id
#: model:ir.model.fields,field_description:mpf_crm.field_brand__id
#: model:ir.model.fields,field_description:mpf_crm.field_type__id
msgid "ID"
msgstr ""

#. module: mpf_crm
#: model:ir.actions.act_window,name:mpf_crm.crm_lead_belongs_action
#: model:ir.model.fields,field_description:mpf_crm.field_crm_lead__belong_id
#: model:ir.ui.menu,name:mpf_crm.menu_crm_lead_belong
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_belongs_tree_view
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_opportunity_report_view_search
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_opportunities_filter
msgid "It belongs to"
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__write_uid
#: model:ir.model.fields,field_description:mpf_crm.field_brand__write_uid
#: model:ir.model.fields,field_description:mpf_crm.field_type__write_uid
msgid "Last Updated by"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_belongs__write_date
#: model:ir.model.fields,field_description:mpf_crm.field_brand__write_date
#: model:ir.model.fields,field_description:mpf_crm.field_type__write_date
msgid "Last Updated on"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_crm_lead__lead_type_id
msgid "Lead Type"
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_crm_lead
msgid "Lead/Opportunity"
msgstr ""

#. module: mpf_crm
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_brand_tree_view
msgid "Master of brands"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_account_bank_statement_line__opportunity_id
#: model:ir.model.fields,field_description:mpf_crm.field_account_move__opportunity_id
msgid "Opportunity"
msgstr ""

#. module: mpf_crm
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_view_form
msgid "Pres.cancel."
msgstr ""

#. module: mpf_crm
#: model:ir.model,name:mpf_crm.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: mpf_crm
#: model:ir.model.fields,field_description:mpf_crm.field_account_bank_statement_line__lead_type_id
#: model:ir.model.fields,field_description:mpf_crm.field_account_move__lead_type_id
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_view_form
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_opportunity_report_view_search
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_account_invoice_filter
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_leads_filter
#: model_terms:ir.ui.view,arch_db:mpf_crm.view_crm_case_opportunities_filter
msgid "Type"
msgstr ""

#. module: mpf_crm
#: model:ir.actions.act_window,name:mpf_crm.crm_lead_type_action
#: model:ir.ui.menu,name:mpf_crm.menu_crm_lead_type
msgid "Types"
msgstr ""

#. module: mpf_crm
#: model_terms:ir.ui.view,arch_db:mpf_crm.crm_lead_type_tree_view
msgid "Types (master)"
msgstr ""
Loading