diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website_sale_slides/controllers | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website_sale_slides/controllers')
| -rw-r--r-- | addons/website_sale_slides/controllers/__init__.py | 4 | ||||
| -rw-r--r-- | addons/website_sale_slides/controllers/i18n/so.po | 115 | ||||
| -rw-r--r-- | addons/website_sale_slides/controllers/slides.py | 17 |
3 files changed, 136 insertions, 0 deletions
diff --git a/addons/website_sale_slides/controllers/__init__.py b/addons/website_sale_slides/controllers/__init__.py new file mode 100644 index 00000000..d4fd554a --- /dev/null +++ b/addons/website_sale_slides/controllers/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from . import slides diff --git a/addons/website_sale_slides/controllers/i18n/so.po b/addons/website_sale_slides/controllers/i18n/so.po new file mode 100644 index 00000000..3c154e53 --- /dev/null +++ b/addons/website_sale_slides/controllers/i18n/so.po @@ -0,0 +1,115 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_project +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server saas~11.5\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-09-21 13:17+0000\n" +"PO-Revision-Date: 2018-08-24 09:17+0000\n" +"Language-Team: Somali (https://www.transifex.com/odoo/teams/41243/so/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: so\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_project +#: model_terms:ir.ui.view,arch_db:crm_project.crm_lead_view_form +msgid "" +"<span class=\"o_stat_text\">Convert To</span>\n" +" <span class=\"o_stat_text\">Task</span>" +msgstr "" + +#. module: crm_project +#: model_terms:ir.ui.view,arch_db:crm_project.crm_lead_convert2task_view_form +msgid "Cancel" +msgstr "" + +#. module: crm_project +#: model:ir.actions.act_window,name:crm_project.crm_lead_convert2task_action +#: model_terms:ir.ui.view,arch_db:crm_project.crm_lead_convert2task_view_form +#: model_terms:ir.ui.view,arch_db:crm_project.crm_lead_view_form +msgid "Convert to Task" +msgstr "" + +#. module: crm_project +#: model_terms:ir.ui.view,arch_db:crm_project.crm_lead_convert2task_view_form +msgid "Create Task" +msgstr "" + +#. module: crm_project +#: selection:crm.lead.convert2task,action:0 +msgid "Create a new customer" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__create_uid +msgid "Created by" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__create_date +msgid "Created on" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__partner_id +msgid "Customer" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__display_name +msgid "Display Name" +msgstr "" + +#. module: crm_project +#: selection:crm.lead.convert2task,action:0 +msgid "Do not link to a customer" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__id +msgid "ID" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task____last_update +msgid "Last Modified on" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__write_date +msgid "Last Updated on" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__lead_id +msgid "Lead" +msgstr "" + +#. module: crm_project +#: model:ir.model,name:crm_project.model_crm_lead_convert2task +msgid "Lead convert to Task" +msgstr "" + +#. module: crm_project +#: selection:crm.lead.convert2task,action:0 +msgid "Link to an existing customer" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__project_id +msgid "Project" +msgstr "" + +#. module: crm_project +#: model:ir.model.fields,field_description:crm_project.field_crm_lead_convert2task__action +msgid "Related Customer" +msgstr "" diff --git a/addons/website_sale_slides/controllers/slides.py b/addons/website_sale_slides/controllers/slides.py new file mode 100644 index 00000000..3debae40 --- /dev/null +++ b/addons/website_sale_slides/controllers/slides.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo.addons.website_slides.controllers.main import WebsiteSlides +from odoo.http import request + + +class WebsiteSaleSlides(WebsiteSlides): + + def _prepare_additional_channel_values(self, values, **kwargs): + values = super(WebsiteSaleSlides, self)._prepare_additional_channel_values(values, **kwargs) + channel = values['channel'] + if channel.enroll == 'payment' and channel.product_id: + pricelist = request.website.get_current_pricelist() + values['product_info'] = channel.product_id.product_tmpl_id._get_combination_info(product_id=channel.product_id.id, pricelist=pricelist) + values['product_info']['currency_id'] = request.website.currency_id + return values |
