diff --git a/crm_lead_product/README.rst b/crm_lead_product/README.rst new file mode 100644 index 00000000000..7af8338e627 --- /dev/null +++ b/crm_lead_product/README.rst @@ -0,0 +1,109 @@ +================ +CRM Lead Product +================ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:24d4c1f6fa68ecc15510e005185543af4dbe7b792fba9c8355579601dfce32a6 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png + :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github + :target: https://github.com/OCA/crm/tree/18.0/crm_lead_product + :alt: OCA/crm +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/crm-18-0/crm-18-0-crm_lead_product + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=18.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module allows the user to link multiple products, product +categories or product templates to a lead or an opportunity in order to +be able to do a product demand forecasting taking into account the leads +and opportunities defined in Odoo. + +Included in the product line there are two computed fields, the expected +revenue and prorated revenue. On one hand, the expected revenue is +computed as the selling price times the quantity. On the other hand, the +prorated revenue takes into account the probability of the opportunity +and is computed as the planned revenue times the probability. + +The module also includes a reporting section where the user can easily +see in a pivot and graph view the relationship between products, stage +of the lead/opportunity and the expected or prorated revenue for that +product. + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +To configure this module to be available for the Leads the user needs to +activate the Leads option in CRM settings + +Usage +===== + +- Go to menu **CRM > Lead** and create or edit a Lead adding all the + products associated to it. +- Go to menu **CRM > My Pipeline** and create or edit an Opportunity + adding all the products associated to it. +- Go to menu **CRM > Reporting > Pipeline by Product** to run the + report that relates product to expected and prorated revenue per + stage + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* ForgeFlow + +Contributors +------------ + +- Adria Gil Sorribes +- Guillem Casassas +- Frederic Grall + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/crm `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_product/__init__.py b/crm_lead_product/__init__.py new file mode 100644 index 00000000000..c03f6afd667 --- /dev/null +++ b/crm_lead_product/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from . import models +from . import report diff --git a/crm_lead_product/__manifest__.py b/crm_lead_product/__manifest__.py new file mode 100644 index 00000000000..34471ea5448 --- /dev/null +++ b/crm_lead_product/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +{ + "name": "CRM Lead Product", + "version": "18.0.1.0.0", + "category": "Customer Relationship Management", + "license": "LGPL-3", + "summary": "Adds a lead line in the lead/opportunity model in odoo", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/crm", + "depends": ["crm", "product"], + "data": [ + "security/ir.model.access.csv", + "views/crm_lead_views.xml", + "views/crm_lead_line_views.xml", + "report/crm_product_report_views.xml", + ], + "installable": True, + "auto_install": False, +} diff --git a/crm_lead_product/i18n/ca.po b/crm_lead_product/i18n/ca.po new file mode 100644 index 00000000000..40bf2647d7f --- /dev/null +++ b/crm_lead_product/i18n/ca.po @@ -0,0 +1,366 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-12-27 14:13+0000\n" +"Last-Translator: Carles Antoli \n" +"Language-Team: none\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__active +msgid "Active" +msgstr "Actiu" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_product_report +msgid "CRM Pipeline by Product Analysis" +msgstr "CRM Flux per Analísis de producte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__campaign_id +msgid "Campaing" +msgstr "Campanya" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__category_id +msgid "Category" +msgstr "Categoria" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_closed +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Closed Date" +msgstr "Data de tancament" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__company_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Company" +msgstr "Companyia" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_name +msgid "Contact Name" +msgstr "Nom del contacte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_conversion +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date" +msgstr "Data de conversió" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date from Lead to Opportunity" +msgstr "Data de conversió d'Iniciativa a Oportunitat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__country_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Country" +msgstr "País" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__create_date +msgid "Create Date" +msgstr "Data creació" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_uid +msgid "Created by" +msgstr "Creat per" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_date +msgid "Created on" +msgstr "Creat el" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Creation Date" +msgstr "Data de creació" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Date Closed" +msgstr "Data de tancament" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_deadline +msgid "Deadline Date" +msgstr "Data límit" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__name +msgid "Description" +msgstr "Descripció" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__display_name +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__display_name +msgid "Display Name" +msgstr "Nom a visualitzar" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Expected Closing" +msgstr "Tancament esperat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__expected_revenue +msgid "Expected Revenue" +msgstr "Ingressos esperats" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__expected_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Expected revenue" +msgstr "Ingressos esperats" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Extended Filters" +msgstr "Filtres estesos" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Group By" +msgstr "Agrupar per" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__id +msgid "ID" +msgstr "ID" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line____last_update +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report____last_update +msgid "Last Modified on" +msgstr "Darrera modificació el" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_uid +msgid "Last Updated by" +msgstr "Darrera modificació per" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_date +msgid "Last Updated on" +msgstr "Darrera modificació en" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__lead_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lead" +msgstr "Iniciativa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead__lead_line_ids +msgid "Lead Lines" +msgstr "Línies Iniciativa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__name +msgid "Lead Name" +msgstr "Nom iniciativa" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunitat" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead_line +msgid "Line in CRM Lead" +msgstr "Línia a Iniciativa CRM" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost" +msgstr "Perdut" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__lost_reason +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost Reason" +msgstr "Raó perdua" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "My Opportunities" +msgstr "Les meves oportunitats" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Open" +msgstr "Obert" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_open +msgid "Open Date" +msgstr "Data d'apertura" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunities Analysis" +msgstr "Anàlisi d'oportunitats" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunity" +msgstr "Oportunitat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_id +msgid "Partner/Customer" +msgstr "Empresa/Client" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_graph +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_pivot +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_tree +msgid "Pipeline Analysis" +msgstr "Anàlisi Flux" + +#. module: crm_lead_product +#: model_terms:ir.actions.act_window,help:crm_lead_product.crm_product_report_action +msgid "" +"Pipeline Analysis gives you an instant access to\n" +"your opportunities with information such as the expected revenue, planned " +"cost,\n" +"missed deadlines or the number of interactions per opportunity. This report " +"is\n" +"mainly used by the sales manager in order to do the periodic review with " +"the\n" +"teams of the sales pipeline." +msgstr "" +"L'anàlisi del Flux proporciona en temps real accés a les teves oportunitats " +"amb informació com els ingressos esperats, cost previst, el nombre " +"d'interaccions per oportunitat o dates límit incomplertes. Aquest informe és " +"utilitzat principalment pel gerent de vendes per tal de realitzar la revisió " +"periòdica amb els equips de canalització de vendes." + +#. module: crm_lead_product +#: model:ir.actions.act_window,name:crm_lead_product.crm_product_report_action +msgid "Pipeline by Product Analysis" +msgstr "Flux per Anàlisi de producte" + +#. module: crm_lead_product +#: model:ir.ui.menu,name:crm_lead_product.crm_product_report_menu +msgid "Pipeline by product" +msgstr "Flux per producte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__planned_revenue +msgid "Planned Revenue" +msgstr "Ingressos previstos" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__planned_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Planned revenue" +msgstr "Ingressos previstos" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__price_unit +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Price Unit" +msgstr "Preu unitari" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__probability +msgid "Probability" +msgstr "Probabilitat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_id +msgid "Product" +msgstr "Producte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__category_id +msgid "Product Category" +msgstr "Categoria de producte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_qty +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_qty +msgid "Product Quantity" +msgstr "Quantitat de producte" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_tmpl_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_tmpl_id +msgid "Product Template" +msgstr "Plantilla de producte" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_lead_view_form +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Products" +msgstr "Productes" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Quantity" +msgstr "Quantitat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__team_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Sales Team" +msgstr "Equips de venda" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__user_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Salesperson" +msgstr "Comercial" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only lead" +msgstr "Mostra només iniciativa" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only opportunity" +msgstr "Mostra només oportunitat" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__stage_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Stage" +msgstr "Etapa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__type +msgid "Type" +msgstr "Tipus" + +#. module: crm_lead_product +#: model:ir.model.fields,help:crm_lead_product.field_crm_product_report__type +msgid "Type is used to separate Leads and Opportunities" +msgstr "El tipus s'utilitza per separar les Iniciatives i les Oportunitats" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__uom_id +msgid "Unit of Measure" +msgstr "Unitat de mesura" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Won" +msgstr "Guanyat" diff --git a/crm_lead_product/i18n/ca_ES.po b/crm_lead_product/i18n/ca_ES.po new file mode 100644 index 00000000000..4ebe8c1f9cc --- /dev/null +++ b/crm_lead_product/i18n/ca_ES.po @@ -0,0 +1,359 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: ca_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__active +msgid "Active" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_product_report +msgid "CRM Pipeline by Product Analysis" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__campaign_id +msgid "Campaing" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__category_id +msgid "Category" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_closed +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Closed Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__company_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Company" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_name +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_conversion +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date from Lead to Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__country_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Country" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__create_date +msgid "Create Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_uid +msgid "Created by" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_date +msgid "Created on" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Creation Date" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Date Closed" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_deadline +msgid "Deadline Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__name +msgid "Description" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__display_name +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__display_name +msgid "Display Name" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Expected Closing" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__expected_revenue +msgid "Expected Revenue" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__expected_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Expected revenue" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Extended Filters" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Group By" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__id +msgid "ID" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line____last_update +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report____last_update +msgid "Last Modified on" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_date +msgid "Last Updated on" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__lead_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lead" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead__lead_line_ids +msgid "Lead Lines" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__name +msgid "Lead Name" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead_line +msgid "Line in CRM Lead" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__lost_reason +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost Reason" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "My Opportunities" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Open" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_open +msgid "Open Date" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunities Analysis" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_id +msgid "Partner/Customer" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_graph +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_pivot +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_tree +msgid "Pipeline Analysis" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.actions.act_window,help:crm_lead_product.crm_product_report_action +msgid "" +"Pipeline Analysis gives you an instant access to\n" +"your opportunities with information such as the expected revenue, planned " +"cost,\n" +"missed deadlines or the number of interactions per opportunity. This report " +"is\n" +"mainly used by the sales manager in order to do the periodic review with " +"the\n" +"teams of the sales pipeline." +msgstr "" + +#. module: crm_lead_product +#: model:ir.actions.act_window,name:crm_lead_product.crm_product_report_action +msgid "Pipeline by Product Analysis" +msgstr "" + +#. module: crm_lead_product +#: model:ir.ui.menu,name:crm_lead_product.crm_product_report_menu +msgid "Pipeline by product" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__planned_revenue +msgid "Planned Revenue" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__planned_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Planned revenue" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__price_unit +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Price Unit" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__probability +msgid "Probability" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_id +msgid "Product" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__category_id +msgid "Product Category" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_qty +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_qty +msgid "Product Quantity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_tmpl_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_tmpl_id +msgid "Product Template" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_lead_view_form +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Products" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Quantity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__team_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Sales Team" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__user_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Salesperson" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only lead" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__stage_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Stage" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__type +msgid "Type" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,help:crm_lead_product.field_crm_product_report__type +msgid "Type is used to separate Leads and Opportunities" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__uom_id +msgid "Unit of Measure" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Won" +msgstr "" diff --git a/crm_lead_product/i18n/crm_lead_product.pot b/crm_lead_product/i18n/crm_lead_product.pot new file mode 100644 index 00000000000..4e96092c542 --- /dev/null +++ b/crm_lead_product/i18n/crm_lead_product.pot @@ -0,0 +1,352 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 17.0\n" +"Report-Msgid-Bugs-To: \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: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__active +msgid "Active" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_product_report +msgid "CRM Pipeline by Product Analysis" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__campaign_id +msgid "Campaing" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__category_id +msgid "Category" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_closed +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Closed Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__company_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Company" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_name +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_conversion +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date from Lead to Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__country_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Country" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__create_date +msgid "Create Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_uid +msgid "Created by" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_date +msgid "Created on" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Creation Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__company_currency +msgid "Currency" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Date Closed" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_deadline +msgid "Deadline Date" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__name +msgid "Description" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__display_name +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__display_name +msgid "Display Name" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Expected Closing" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__expected_revenue +msgid "Expected Revenue" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__expected_revenue +msgid "Expected revenue" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Extended Filters" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Group By" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__id +msgid "ID" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_date +msgid "Last Updated on" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__lead_id +#: model:ir.model.fields.selection,name:crm_lead_product.selection__crm_product_report__type__lead +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lead" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead__lead_line_ids +msgid "Lead Lines" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__name +msgid "Lead Name" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead_line +msgid "Line in CRM Lead" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__lost_reason_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost Reason" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "My Opportunities" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Open" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_open +msgid "Open Date" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunities Analysis" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields.selection,name:crm_lead_product.selection__crm_product_report__type__opportunity +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_id +msgid "Partner/Customer" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_graph +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_pivot +msgid "Pipeline Analysis" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.actions.act_window,help:crm_lead_product.crm_product_report_action +msgid "" +"Pipeline Analysis gives you an instant access to\n" +"your opportunities with information such as the expected revenue, planned cost,\n" +"missed deadlines or the number of interactions per opportunity. This report is\n" +"mainly used by the sales manager in order to do the periodic review with the\n" +"teams of the sales pipeline." +msgstr "" + +#. module: crm_lead_product +#: model:ir.actions.act_window,name:crm_lead_product.crm_product_report_action +msgid "Pipeline by Product Analysis" +msgstr "" + +#. module: crm_lead_product +#: model:ir.ui.menu,name:crm_lead_product.crm_product_report_menu +msgid "Pipeline by product" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__price_unit +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Price Unit" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__probability +msgid "Probability" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_id +msgid "Product" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__category_id +msgid "Product Category" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_qty +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_qty +msgid "Product Quantity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_tmpl_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_tmpl_id +msgid "Product Template" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_lead_view_form +msgid "Products" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__prorated_revenue +msgid "Prorated Revenue" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__prorated_revenue +msgid "Prorated revenue" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Quantity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__team_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Sales Team" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__user_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Salesperson" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only lead" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only opportunity" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__stage_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Stage" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__type +msgid "Type" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,help:crm_lead_product.field_crm_product_report__type +msgid "Type is used to separate Leads and Opportunities" +msgstr "" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__uom_id +msgid "Unit of Measure" +msgstr "" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Won" +msgstr "" diff --git a/crm_lead_product/i18n/es.po b/crm_lead_product/i18n/es.po new file mode 100644 index 00000000000..8670a5fe9f3 --- /dev/null +++ b/crm_lead_product/i18n/es.po @@ -0,0 +1,366 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-02-04 19:50+0000\n" +"Last-Translator: Marta Vázquez Rodríguez \n" +"Language-Team: none\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.4\n" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__active +msgid "Active" +msgstr "Activo" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_product_report +msgid "CRM Pipeline by Product Analysis" +msgstr "CRM Pipeline por Analísis de producto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__campaign_id +msgid "Campaing" +msgstr "Campaña" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__category_id +msgid "Category" +msgstr "Categoría" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_closed +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Closed Date" +msgstr "Fecha de cierre" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__company_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Company" +msgstr "Compañía" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_name +msgid "Contact Name" +msgstr "Nombre Contacto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_conversion +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date" +msgstr "Fecha de Conversión" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date from Lead to Opportunity" +msgstr "Fecha de Conversión de Iniciativa a Oportunidad" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__country_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Country" +msgstr "País" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__create_date +msgid "Create Date" +msgstr "Fecha Creación" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_uid +msgid "Created by" +msgstr "Creado por" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_date +msgid "Created on" +msgstr "Creado el" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Creation Date" +msgstr "Fecha de creación" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Date Closed" +msgstr "Fecha de cierre" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_deadline +msgid "Deadline Date" +msgstr "Fecha límite" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__name +msgid "Description" +msgstr "Descripción" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__display_name +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__display_name +msgid "Display Name" +msgstr "Nombre a mostrar" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Expected Closing" +msgstr "Cierre esperado" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__expected_revenue +msgid "Expected Revenue" +msgstr "Ingresos esperados" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__expected_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Expected revenue" +msgstr "Ingresos esperados" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Extended Filters" +msgstr "Filtros extendidos" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Group By" +msgstr "Agrupar por" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__id +msgid "ID" +msgstr "ID" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line____last_update +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report____last_update +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_uid +msgid "Last Updated by" +msgstr "Última modificación por" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_date +msgid "Last Updated on" +msgstr "Última modificación en" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__lead_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lead" +msgstr "Iniciativa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead__lead_line_ids +msgid "Lead Lines" +msgstr "Líneas Iniciativa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__name +msgid "Lead Name" +msgstr "Nombre iniciativa" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead_line +msgid "Line in CRM Lead" +msgstr "Línea en Iniciativa CRM" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost" +msgstr "Perdido" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__lost_reason +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost Reason" +msgstr "Razón Perdida" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "My Opportunities" +msgstr "Mis Oportunidades" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Open" +msgstr "Abierto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_open +msgid "Open Date" +msgstr "Fecha de apertura" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunities Analysis" +msgstr "Análisis de oportunidades" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunity" +msgstr "Oportunidad" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_id +msgid "Partner/Customer" +msgstr "Empresa/Cliente" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_graph +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_pivot +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_tree +msgid "Pipeline Analysis" +msgstr "Análisis Pipeline" + +#. module: crm_lead_product +#: model_terms:ir.actions.act_window,help:crm_lead_product.crm_product_report_action +msgid "" +"Pipeline Analysis gives you an instant access to\n" +"your opportunities with information such as the expected revenue, planned " +"cost,\n" +"missed deadlines or the number of interactions per opportunity. This report " +"is\n" +"mainly used by the sales manager in order to do the periodic review with " +"the\n" +"teams of the sales pipeline." +msgstr "" +"El análisis Pipeline proporciona en tiempo real acceso a tus oportunidades " +"con información como los ingresos esperados, coste previsto, el número de " +"interacciones por oportunidad o fechas límite incumplidas. Este informe es " +"utilizado principalmente por el Gerente de ventas con el fin de realizar la " +"revisión periódica con los equipos de canalización de ventas." + +#. module: crm_lead_product +#: model:ir.actions.act_window,name:crm_lead_product.crm_product_report_action +msgid "Pipeline by Product Analysis" +msgstr "Pipeline por Análisis de producto" + +#. module: crm_lead_product +#: model:ir.ui.menu,name:crm_lead_product.crm_product_report_menu +msgid "Pipeline by product" +msgstr "Pipeline por producto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__planned_revenue +msgid "Planned Revenue" +msgstr "Ingresos previstos" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__planned_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Planned revenue" +msgstr "Ingresos previstos" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__price_unit +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Price Unit" +msgstr "Precio unitario" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__probability +msgid "Probability" +msgstr "Probabilidad" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_id +msgid "Product" +msgstr "Producto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__category_id +msgid "Product Category" +msgstr "Categoría de producto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_qty +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_qty +msgid "Product Quantity" +msgstr "Cantidad de producto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_tmpl_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_tmpl_id +msgid "Product Template" +msgstr "Plantilla de producto" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_lead_view_form +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Products" +msgstr "Productos" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Quantity" +msgstr "Cantidad" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__team_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Sales Team" +msgstr "Equipos de Venta" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__user_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Salesperson" +msgstr "Comercial" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only lead" +msgstr "Mostrar sólo iniciativa" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only opportunity" +msgstr "Mostrar sólo Oportunidad" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__stage_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Stage" +msgstr "Etapa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__type +msgid "Type" +msgstr "Tipo" + +#. module: crm_lead_product +#: model:ir.model.fields,help:crm_lead_product.field_crm_product_report__type +msgid "Type is used to separate Leads and Opportunities" +msgstr "El tipo se utiliza para separar las Iniciativas y las Oportunidades" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__uom_id +msgid "Unit of Measure" +msgstr "Unidad de Medida" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Won" +msgstr "Ganado" diff --git a/crm_lead_product/i18n/it.po b/crm_lead_product/i18n/it.po new file mode 100644 index 00000000000..01d2ee85f45 --- /dev/null +++ b/crm_lead_product/i18n/it.po @@ -0,0 +1,369 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_product +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-21 11:09+0000\n" +"Last-Translator: mymage \n" +"Language-Team: none\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__active +msgid "Active" +msgstr "Attivo" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_product_report +msgid "CRM Pipeline by Product Analysis" +msgstr "Flusso per analisi prodotto CRM" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__campaign_id +msgid "Campaing" +msgstr "Campagna" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__category_id +msgid "Category" +msgstr "Categoria" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_closed +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Closed Date" +msgstr "Data chiusura" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__company_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Company" +msgstr "Azienda" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_name +msgid "Contact Name" +msgstr "Nome contatto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_conversion +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date" +msgstr "Data conversione" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Conversion Date from Lead to Opportunity" +msgstr "Data conversione da contatto a opportunità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__country_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Country" +msgstr "Nazione" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__create_date +msgid "Create Date" +msgstr "Data creazione" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_uid +msgid "Created by" +msgstr "Creato da" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__create_date +msgid "Created on" +msgstr "Creato il" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Creation Date" +msgstr "Data creazione" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Date Closed" +msgstr "Data chiusura" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_deadline +msgid "Deadline Date" +msgstr "Data scadenza" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__name +msgid "Description" +msgstr "Descrizione" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__display_name +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__display_name +msgid "Display Name" +msgstr "Nome visualizzato" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Expected Closing" +msgstr "Chiusura prevista" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__expected_revenue +msgid "Expected Revenue" +msgstr "Ricavi previsti" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__expected_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Expected revenue" +msgstr "Ricavi previsti" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Extended Filters" +msgstr "Filtri estesi" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Group By" +msgstr "Raggruppa per" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__id +msgid "ID" +msgstr "ID" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line____last_update +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report____last_update +msgid "Last Modified on" +msgstr "Ultima modifica il" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_uid +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__write_date +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__lead_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lead" +msgstr "Contatto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead__lead_line_ids +msgid "Lead Lines" +msgstr "Righe contatto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__name +msgid "Lead Name" +msgstr "Nome contatto" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Contatto/Opportunità" + +#. module: crm_lead_product +#: model:ir.model,name:crm_lead_product.model_crm_lead_line +msgid "Line in CRM Lead" +msgstr "Riga contatto CRM" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost" +msgstr "Persa" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__lost_reason +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Lost Reason" +msgstr "Motivo dell'insuccesso" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "My Opportunities" +msgstr "Le mie opportunità" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Open" +msgstr "Apri" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__date_open +msgid "Open Date" +msgstr "Data apertura" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunities Analysis" +msgstr "Analisi opportunità" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Opportunity" +msgstr "Opportunità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__partner_id +msgid "Partner/Customer" +msgstr "Partner/Cliente" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_graph +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_pivot +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_tree +msgid "Pipeline Analysis" +msgstr "Analisi flusso" + +#. module: crm_lead_product +#: model_terms:ir.actions.act_window,help:crm_lead_product.crm_product_report_action +msgid "" +"Pipeline Analysis gives you an instant access to\n" +"your opportunities with information such as the expected revenue, planned " +"cost,\n" +"missed deadlines or the number of interactions per opportunity. This report " +"is\n" +"mainly used by the sales manager in order to do the periodic review with " +"the\n" +"teams of the sales pipeline." +msgstr "" +"L'analisi del flusso consente un accesso istantaneo\n" +"alle proprie opportunità con informazioni come il ricavo previsto, costi " +"pianificati,\n" +"scadenze superate o il numero delle interazioni per opportunità. Questo " +"resoconto\n" +"è usato principalmente dal responsabile vendite per effettuare la revisione " +"periodica\n" +"con il team del flusso delle vendite." + +#. module: crm_lead_product +#: model:ir.actions.act_window,name:crm_lead_product.crm_product_report_action +msgid "Pipeline by Product Analysis" +msgstr "Flusso per analisi prodotto" + +#. module: crm_lead_product +#: model:ir.ui.menu,name:crm_lead_product.crm_product_report_menu +msgid "Pipeline by product" +msgstr "Flusso per prodotto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__planned_revenue +msgid "Planned Revenue" +msgstr "Ricavi pianificati" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__planned_revenue +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Planned revenue" +msgstr "Ricavi pianificati" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__price_unit +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Price Unit" +msgstr "Prezzo unitario" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__probability +msgid "Probability" +msgstr "Probabilità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_id +msgid "Product" +msgstr "Prodotto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__category_id +msgid "Product Category" +msgstr "Categoria prodotto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_qty +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_qty +msgid "Product Quantity" +msgstr "Quantità prodotto" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__product_tmpl_id +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__product_tmpl_id +msgid "Product Template" +msgstr "Modello prodotto" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_lead_view_form +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Products" +msgstr "Prodotti" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.view_tree_lead_line +msgid "Quantity" +msgstr "Quantità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__team_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Sales Team" +msgstr "Team di vendita" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__user_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Salesperson" +msgstr "Addetto vendite" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only lead" +msgstr "Mostra solo contatti" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Show only opportunity" +msgstr "Mostra solo opportunità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__stage_id +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Stage" +msgstr "Fase" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_product_report__type +msgid "Type" +msgstr "Tipo" + +#. module: crm_lead_product +#: model:ir.model.fields,help:crm_lead_product.field_crm_product_report__type +msgid "Type is used to separate Leads and Opportunities" +msgstr "Il tipo è utilizzato per separare contatti da opportunità" + +#. module: crm_lead_product +#: model:ir.model.fields,field_description:crm_lead_product.field_crm_lead_line__uom_id +msgid "Unit of Measure" +msgstr "Unità di misura" + +#. module: crm_lead_product +#: model_terms:ir.ui.view,arch_db:crm_lead_product.crm_opportunity_report_view_search +msgid "Won" +msgstr "Vinta" diff --git a/crm_lead_product/models/__init__.py b/crm_lead_product/models/__init__.py new file mode 100644 index 00000000000..33ceeefdb72 --- /dev/null +++ b/crm_lead_product/models/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from . import crm_lead_line +from . import crm_lead diff --git a/crm_lead_product/models/crm_lead.py b/crm_lead_product/models/crm_lead.py new file mode 100644 index 00000000000..1887983ee92 --- /dev/null +++ b/crm_lead_product/models/crm_lead.py @@ -0,0 +1,27 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo import api, fields, models + + +class CrmLead(models.Model): + _inherit = "crm.lead" + + lead_line_ids = fields.One2many( + comodel_name="crm.lead.line", inverse_name="lead_id", string="Lead Lines" + ) + + @api.onchange("lead_line_ids") + def _onchange_lead_line_ids(self): + expected_revenue = 0 + for lead_line in self.lead_line_ids: + expected_revenue += lead_line.expected_revenue + self.expected_revenue = expected_revenue + + def _convert_opportunity_data(self, customer, team_id=False): + res = super()._convert_opportunity_data(customer, team_id) + expected_revenue = 0 + for lead_line in self.lead_line_ids: + expected_revenue += lead_line.expected_revenue + res["expected_revenue"] = expected_revenue + return res diff --git a/crm_lead_product/models/crm_lead_line.py b/crm_lead_product/models/crm_lead_line.py new file mode 100644 index 00000000000..4f59fa77042 --- /dev/null +++ b/crm_lead_product/models/crm_lead_line.py @@ -0,0 +1,132 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo import api, fields, models + + +class CrmLeadLine(models.Model): + _name = "crm.lead.line" + _description = "Line in CRM Lead" + + @api.depends("price_unit", "product_qty") + def _compute_expected_revenue(self): + for rec in self: + rec.expected_revenue = rec.product_qty * rec.price_unit + + @api.depends("lead_id.probability", "expected_revenue") + def _compute_prorated_revenue(self): + for rec in self: + if rec.lead_id and rec.lead_id.type != "lead": + rec.prorated_revenue = ( + rec.expected_revenue * rec.lead_id.probability * (1 / 100) + ) + + lead_id = fields.Many2one("crm.lead", string="Lead") + name = fields.Char("Description", required=True, translate=True) + product_id = fields.Many2one("product.product", string="Product", index=True) + category_id = fields.Many2one( + "product.category", string="Product Category", index=True + ) + product_tmpl_id = fields.Many2one( + "product.template", string="Product Template", index=True + ) + product_qty = fields.Integer(string="Product Quantity", default=1, required=True) + uom_id = fields.Many2one("uom.uom", string="Unit of Measure", readonly=True) + price_unit = fields.Float(digits="Product Price") + company_currency = fields.Many2one( + "res.currency", + string="Currency", + related="lead_id.company_currency", + readonly=True, + ) + expected_revenue = fields.Monetary( + compute="_compute_expected_revenue", + string="Expected revenue", + currency_field="company_currency", + compute_sudo=True, + store=True, + ) + prorated_revenue = fields.Monetary( + compute="_compute_prorated_revenue", + string="Prorated revenue", + currency_field="company_currency", + compute_sudo=True, + store=True, + ) + + @api.onchange("product_id") + def _onchange_product_id(self): + domain = {} + if not self.lead_id: + return + if not self.product_id: + self.price_unit = 0.0 + domain["uom_id"] = [] + if self.name and self.name != self.category_id.name: + self.name = "" + else: + product = self.product_id + self.category_id = product.categ_id.id + self.product_tmpl_id = product.product_tmpl_id.id + self.price_unit = product.list_price + if product.name: + self.name = product.name + if ( + not self.uom_id + or product.uom_id.category_id.id != self.uom_id.category_id.id + ): + self.uom_id = product.uom_id.id + domain["uom_id"] = [("category_id", "=", product.uom_id.category_id.id)] + if self.uom_id and self.uom_id.id != product.uom_id.id: + self.price_unit = product.uom_id._compute_price( + self.price_unit, self.uom_id + ) + return {"domain": domain} + + @api.onchange("category_id") + def _onchange_category_id(self): + domain = {} + if not self.lead_id: + return + if self.category_id: + categ_id = self.category_id + if categ_id.name and not self.name: + self.name = categ_id.name + # Check if there are already defined product and product template + # and remove them if categories do not match + if self.product_id and self.product_id.categ_id != categ_id: + self.product_id = None + self.name = categ_id.name + if self.product_tmpl_id and self.product_tmpl_id.categ_id != categ_id: + self.product_tmpl_id = None + return {"domain": domain} + + @api.onchange("product_tmpl_id") + def _onchange_product_tmpl_id(self): + domain = {} + if not self.lead_id: + return + if self.product_tmpl_id: + product_tmpl = self.product_tmpl_id + if product_tmpl.name and not self.name: + self.name = product_tmpl.name + self.category_id = product_tmpl.categ_id + if self.product_id: + # Check if there are already defined product and remove + # if it does not match + if self.product_id.product_tmpl_id != product_tmpl: + self.product_id = None + self.name = product_tmpl.name + return {"domain": domain} + + @api.onchange("uom_id") + def _onchange_uom_id(self): + result = {} + if not self.uom_id: + self.price_unit = 0.0 + if self.product_id and self.uom_id: + price_unit = self.product_id.list_price + self.price_unit = self.product_id.uom_id._compute_price( + price_unit, self.uom_id + ) + return result diff --git a/crm_lead_product/pyproject.toml b/crm_lead_product/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/crm_lead_product/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/crm_lead_product/readme/CONFIGURE.md b/crm_lead_product/readme/CONFIGURE.md new file mode 100644 index 00000000000..92df568efa4 --- /dev/null +++ b/crm_lead_product/readme/CONFIGURE.md @@ -0,0 +1,2 @@ +To configure this module to be available for the Leads the user needs to +activate the Leads option in CRM settings diff --git a/crm_lead_product/readme/CONTRIBUTORS.md b/crm_lead_product/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..6c53a883b7f --- /dev/null +++ b/crm_lead_product/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Adria Gil Sorribes \<\> +- Guillem Casassas \<\> +- Frederic Grall \<> \ No newline at end of file diff --git a/crm_lead_product/readme/DESCRIPTION.md b/crm_lead_product/readme/DESCRIPTION.md new file mode 100644 index 00000000000..c54f1f18301 --- /dev/null +++ b/crm_lead_product/readme/DESCRIPTION.md @@ -0,0 +1,15 @@ +This module allows the user to link multiple products, product +categories or product templates to a lead or an opportunity in order to +be able to do a product demand forecasting taking into account the leads +and opportunities defined in Odoo. + +Included in the product line there are two computed fields, the expected +revenue and prorated revenue. On one hand, the expected revenue is +computed as the selling price times the quantity. On the other hand, the +prorated revenue takes into account the probability of the opportunity +and is computed as the planned revenue times the probability. + +The module also includes a reporting section where the user can easily +see in a pivot and graph view the relationship between products, stage +of the lead/opportunity and the expected or prorated revenue for that +product. diff --git a/crm_lead_product/readme/USAGE.md b/crm_lead_product/readme/USAGE.md new file mode 100644 index 00000000000..d59fe041c1f --- /dev/null +++ b/crm_lead_product/readme/USAGE.md @@ -0,0 +1,6 @@ +- Go to menu **CRM \> Lead** and create or edit a Lead adding all the + products associated to it. +- Go to menu **CRM \> My Pipeline** and create or edit an Opportunity + adding all the products associated to it. +- Go to menu **CRM \> Reporting \> Pipeline by Product** to run the + report that relates product to expected and prorated revenue per stage diff --git a/crm_lead_product/report/__init__.py b/crm_lead_product/report/__init__.py new file mode 100644 index 00000000000..87e010fae84 --- /dev/null +++ b/crm_lead_product/report/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from . import crm_product_report diff --git a/crm_lead_product/report/crm_product_report.py b/crm_lead_product/report/crm_product_report.py new file mode 100644 index 00000000000..d883e51e754 --- /dev/null +++ b/crm_lead_product/report/crm_product_report.py @@ -0,0 +1,103 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from psycopg2.extensions import AsIs + +from odoo import fields, models, tools + + +class ActivityReport(models.Model): + """CRM Lead Analysis""" + + _name = "crm.product.report" + _auto = False + _description = "CRM Pipeline by Product Analysis" + _rec_name = "id" + + active = fields.Boolean(readonly=True) + campaign_id = fields.Many2one("utm.campaign", "Campaing", readonly=True) + country_id = fields.Many2one("res.country", "Country", readonly=True) + company_id = fields.Many2one("res.company", "Company", readonly=True) + create_date = fields.Datetime(readonly=True) + date_closed = fields.Datetime("Closed Date", readonly=True) + date_conversion = fields.Datetime("Conversion Date", readonly=True) + date_deadline = fields.Datetime("Deadline Date", readonly=True) + date_open = fields.Datetime("Open Date", readonly=True) + lost_reason_id = fields.Many2one("crm.lost.reason", readonly=True) + name = fields.Char("Lead Name", readonly=True) + partner_id = fields.Many2one("res.partner", "Partner/Customer", readonly=True) + partner_name = fields.Char("Contact Name", readonly=True) + probability = fields.Float(aggregator="avg", readonly=True) + stage_id = fields.Many2one("crm.stage", "Stage", readonly=True) + team_id = fields.Many2one("crm.team", "Sales Team", readonly=True) + type = fields.Selection( + [("lead", "Lead"), ("opportunity", "Opportunity")], + help="Type is used to separate Leads and Opportunities", + ) + user_id = fields.Many2one("res.users", "Salesperson", readonly=True) + category_id = fields.Many2one("product.category", "Category", readonly=True) + expected_revenue = fields.Float(readonly=True) + prorated_revenue = fields.Float(readonly=True) + product_id = fields.Many2one("product.product", "Product", readonly=True) + product_qty = fields.Integer("Product Quantity", readonly=True) + product_tmpl_id = fields.Many2one( + "product.template", "Product Template", readonly=True + ) + + def _select(self): + return """ + SELECT + l.id, + l.active, + l.id as lead_id, + l.campaign_id, + l.country_id, + l.company_id, + l.create_date, + l.date_closed, + l.date_conversion, + l.date_deadline, + l.date_open, + l.lost_reason_id, + l.name, + l.partner_id, + l.partner_name, + l.probability, + l.type, + l.stage_id, + l.team_id, + l.user_id, + ll.category_id, + ll.expected_revenue, + ll.prorated_revenue, + ll.product_id, + ll.product_qty, + ll.product_tmpl_id + """ + + def _from(self): + return """ + FROM crm_lead AS l + """ + + def _join(self): + return """ + JOIN crm_lead_line AS ll ON l.id = ll.lead_id + """ + + def init(self): + tools.drop_view_if_exists(self._cr, self._table) + self._cr.execute( + """ + CREATE OR REPLACE VIEW %s AS ( + %s + %s + %s + ) + """, + ( + AsIs(self._table), + AsIs(self._select()), + AsIs(self._from()), + AsIs(self._join()), + ), + ) diff --git a/crm_lead_product/report/crm_product_report_views.xml b/crm_lead_product/report/crm_product_report_views.xml new file mode 100644 index 00000000000..f6cbad3a9c3 --- /dev/null +++ b/crm_lead_product/report/crm_product_report_views.xml @@ -0,0 +1,210 @@ + + + + + crm.opportunity.report.pivot + crm.product.report + 60 + + + + + + + + + + + crm.opportunity.report.graph + crm.product.report + + + + + + + + + + + crm.opportunity.report.list + crm.product.report + + + + + + + + + + + + + + + + + + + crm.lead.search + crm.product.report + 32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Pipeline by Product Analysis + crm.product.report + pivot,graph,list,form + + {'search_default_opportunity': True, 'search_default_current': True} + + Pipeline Analysis gives you an instant access to +your opportunities with information such as the expected revenue, planned cost, +missed deadlines or the number of interactions per opportunity. This report is +mainly used by the sales manager in order to do the periodic review with the +teams of the sales pipeline. + + + diff --git a/crm_lead_product/security/ir.model.access.csv b/crm_lead_product/security/ir.model.access.csv new file mode 100644 index 00000000000..66361e6f149 --- /dev/null +++ b/crm_lead_product/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_crm_lead_line_group_user,crm.lead.line,model_crm_lead_line,base.group_user,1,1,1,1 +access_crm_product_report_user,crm.product.report.user,model_crm_product_report,base.group_user,1,0,0,0 diff --git a/crm_lead_product/static/description/icon.png b/crm_lead_product/static/description/icon.png new file mode 100644 index 00000000000..3a0328b516c Binary files /dev/null and b/crm_lead_product/static/description/icon.png differ diff --git a/crm_lead_product/static/description/index.html b/crm_lead_product/static/description/index.html new file mode 100644 index 00000000000..4643d5f8b4d --- /dev/null +++ b/crm_lead_product/static/description/index.html @@ -0,0 +1,456 @@ + + + + + +CRM Lead Product + + + +
+

CRM Lead Product

+ + +

Beta License: LGPL-3 OCA/crm Translate me on Weblate Try me on Runboat

+

This module allows the user to link multiple products, product +categories or product templates to a lead or an opportunity in order to +be able to do a product demand forecasting taking into account the leads +and opportunities defined in Odoo.

+

Included in the product line there are two computed fields, the expected +revenue and prorated revenue. On one hand, the expected revenue is +computed as the selling price times the quantity. On the other hand, the +prorated revenue takes into account the probability of the opportunity +and is computed as the planned revenue times the probability.

+

The module also includes a reporting section where the user can easily +see in a pivot and graph view the relationship between products, stage +of the lead/opportunity and the expected or prorated revenue for that +product.

+

Table of contents

+ +
+

Configuration

+

To configure this module to be available for the Leads the user needs to +activate the Leads option in CRM settings

+
+
+

Usage

+
    +
  • Go to menu CRM > Lead and create or edit a Lead adding all the +products associated to it.
  • +
  • Go to menu CRM > My Pipeline and create or edit an Opportunity +adding all the products associated to it.
  • +
  • Go to menu CRM > Reporting > Pipeline by Product to run the +report that relates product to expected and prorated revenue per +stage
  • +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us to smash it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/crm project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/crm_lead_product/tests/__init__.py b/crm_lead_product/tests/__init__.py new file mode 100644 index 00000000000..d727a8c201f --- /dev/null +++ b/crm_lead_product/tests/__init__.py @@ -0,0 +1,3 @@ +# Copyright (C) 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from . import test_crm_lead_line diff --git a/crm_lead_product/tests/test_crm_lead_line.py b/crm_lead_product/tests/test_crm_lead_line.py new file mode 100644 index 00000000000..35f2d65f3a6 --- /dev/null +++ b/crm_lead_product/tests/test_crm_lead_line.py @@ -0,0 +1,166 @@ +# Copyright 2017-2024 ForgeFlow S.L. (https://www.forgeflow.com) +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo.tests.common import TransactionCase, tagged + + +@tagged("post_install", "-at_install") +class TestCrmLeadLine(TransactionCase): + def setUp(self): + super().setUp() + self.product_obj = self.env["product.product"] + self.lead_line_obj = self.env["crm.lead.line"] + self.lead = self.env["crm.lead"].create( + { + "type": "lead", + "name": "Test lead new", + "partner_id": self.env.ref("base.res_partner_1").id, + "description": "This is the description of the test new lead.", + "team_id": self.env.ref("sales_team.team_sales_department").id, + } + ) + + # Products + self.product_1 = self.product_obj.create( + { + "name": "Product 1", + "categ_id": self.env.ref("product.product_category_1").id, + "list_price": 142.0, + } + ) + self.product_2 = self.product_obj.create( + { + "name": "Product 2", + "categ_id": self.env.ref("product.product_category_2").id, + "list_price": 1420.0, + } + ) + self.product_3 = self.product_obj.create( + { + "name": "Product 3", + "categ_id": self.env.ref("product.product_category_3").id, + "list_price": 14200.0, + } + ) + self.product_4 = self.env.ref("product.product_product_25") + + def test_01_lead_lines(self): + """Tests for Crm Lead Line""" + # Create new lead line with product id + self.lead_line_1 = self.lead_line_obj.create( + { + "lead_id": self.lead.id, + "name": self.product_1.name, + "product_id": self.product_1.id, + "uom_id": self.product_1.uom_id.id, + "price_unit": self.product_1.list_price, + } + ) + # Create new lead line with category id + self.lead_line_2 = self.lead_line_obj.create( + { + "lead_id": self.lead.id, + "name": self.product_2.categ_id.name, + "category_id": self.product_2.categ_id.id, + } + ) + # Create new lead line with product template + self.lead_line_3 = self.lead_line_obj.create( + { + "lead_id": self.lead.id, + "name": self.product_3.product_tmpl_id.name, + "product_tmpl_id": self.product_3.product_tmpl_id.id, + } + ) + + self.lead_line_1._onchange_product_id() + self.lead_line_2._onchange_category_id() + self.lead_line_2._onchange_uom_id() + self.lead_line_3._onchange_product_tmpl_id() + self.lead_line_3._onchange_product_id() + + # Check values have been introduced correctly + self.assertEqual( + self.lead_line_1.category_id, + self.product_1.categ_id, + "Lead line category should be equal to product 1" "category", + ) + self.assertEqual( + self.lead_line_1.product_tmpl_id, + self.product_1.product_tmpl_id, + "Lead line product template should be equal to " "product 1 template", + ) + self.assertEqual( + self.lead_line_3.category_id, + self.product_3.categ_id, + "Lead line category should be equal to product 3" "category", + ) + + lead_line_4 = self.lead_line_obj.create( + { + "lead_id": self.lead.id, + "name": self.product_1.name, + "product_id": self.product_1.id, + } + ) + lead_line_4._onchange_product_id() + + # Change category and check that product and template are now None + lead_line_4.write({"category_id": self.product_2.categ_id.id}) + lead_line_4._onchange_category_id() + self.assertNotEqual( + lead_line_4.product_id, + self.product_1, + "Lead line product should be equal to None", + ) + self.assertNotEqual( + lead_line_4.product_tmpl_id, + self.product_1.product_tmpl_id, + "Lead line product template should be equal " "to None", + ) + + def test_02_lead_to_opportunity(self): + # Write one lead line to CRM Lead + self.lead.write( + { + "lead_line_ids": [ + ( + 0, + 0, + { + "lead_id": self.lead.id, + "name": self.product_4.name, + "product_id": self.product_4.id, + "category_id": self.product_4.categ_id.id, + "price_unit": self.product_4.list_price, + }, + ) + ] + } + ) + self.lead._onchange_lead_line_ids() + + # Check if planned revenue is correctly set for lead line 1 + self.assertEqual( + self.lead.lead_line_ids[0].expected_revenue, + self.product_4.list_price, + "Planned revenue should be equal " "to the product standard price", + ) + + self.lead.convert_opportunity(self.env.ref("base.res_partner_1")) + + lead_line_1 = self.lead.lead_line_ids[0] + + self.assertEqual( + lead_line_1.prorated_revenue, + round(lead_line_1.expected_revenue * self.lead.probability * (1 / 100), 2), + "Expected revenue should be planned " "revenue times the probability", + ) + + self.lead.write({"probability": 30}) + + self.assertEqual( + lead_line_1.prorated_revenue, + round(lead_line_1.expected_revenue * self.lead.probability * (1 / 100), 5), + "Expected revenue should be planned " "revenue times the probability", + ) diff --git a/crm_lead_product/views/crm_lead_line_views.xml b/crm_lead_product/views/crm_lead_line_views.xml new file mode 100644 index 00000000000..391c4fc2f30 --- /dev/null +++ b/crm_lead_product/views/crm_lead_line_views.xml @@ -0,0 +1,19 @@ + + + + crm.lead.line.tree - crm_lead_product + crm.lead.line + + + + + + + + + + + + + + diff --git a/crm_lead_product/views/crm_lead_views.xml b/crm_lead_product/views/crm_lead_views.xml new file mode 100644 index 00000000000..5273ebfe2a8 --- /dev/null +++ b/crm_lead_product/views/crm_lead_views.xml @@ -0,0 +1,15 @@ + + + + crm.lead.form - crm_lead_product + crm.lead + + + + + + + + + +