[ADD] theme 12.0

This commit is contained in:
Design
2021-05-11 15:56:19 +02:00
committed by Jeremy Kersten
commit bddf1b03c5
3057 changed files with 69185 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
Odoo Proprietary License v1.0
This software and associated files (the "Software") may only be used (executed,
modified, executed after modifications) if you have purchased a valid license
from the authors, typically via Odoo Apps, or if you have received a written
agreement from the authors of the Software (see the COPYRIGHT file).
You may develop Odoo modules that use the Software as a library (typically
by depending on it, importing it and using its resources), but without copying
any source code or material from the Software. You may distribute those
modules under the license of your choice, provided that this license is
compatible with the terms of the Odoo Proprietary License (For example:
LGPL, MIT, or proprietary licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell copies of the Software
or modified copies of the Software.
The above copyright notice and this permission notice must be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
View File
+13
View File
@@ -0,0 +1,13 @@
{
'name': 'Theme Notes eCommerce Plugin',
'description': 'Notes eCommerce Plugin',
'category': 'Hidden',
'sequence': 281,
'version': '1.0',
'depends': ['theme_notes', 'website_sale'],
'data': [
'views/theme.xml',
'views/layout.xml',
],
'auto_install': True,
}
+46
View File
@@ -0,0 +1,46 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
# Translators:
# Martin Trigaux, 2019
# Ermin Trevisan <trevi@twanda.com>, 2019
# Leon Grill <leg@odoo.com>, 2019
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
"Last-Translator: Leon Grill <leg@odoo.com>, 2019\n"
"Language-Team: German (https://www.transifex.com/odoo/teams/41243/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr ""
"<i class=\"fa fa-shopping-cart\"/>\n"
"In den Einkaufskorb"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr "Produktkategorie"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr "Suchen..."
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr "pagination form-inline col-lg-12"
+43
View File
@@ -0,0 +1,43 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
# Translators:
# Martin Trigaux, 2019
# Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
"Last-Translator: Alejandro Pérez Torregrosa <alejandropereztorregrosa@gmail.com>, 2020\n"
"Language-Team: Spanish (https://www.transifex.com/odoo/teams/41243/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: es\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr "<i class=\"fa fa-shopping-cart\"/> Añadir al carrito"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr "Buscar…"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr ""
+45
View File
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
# Translators:
# Martin Trigaux, 2019
# Nasreddin Boulif <bon@odoo.com>, 2020
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
"Last-Translator: Nasreddin Boulif <bon@odoo.com>, 2020\n"
"Language-Team: French (https://www.transifex.com/odoo/teams/41243/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Ajouter au panier"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr "Recherche…"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr ""
+45
View File
@@ -0,0 +1,45 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
# Translators:
# Martin Trigaux, 2019
# Yenthe Van Ginneken <yenthespam@gmail.com>, 2019
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
"Last-Translator: Yenthe Van Ginneken <yenthespam@gmail.com>, 2019\n"
"Language-Team: Dutch (https://www.transifex.com/odoo/teams/41243/nl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Toevoegen aan winkelmandje"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr "Productcategorieën"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr "Zoeken..."
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr "pagination form-inline col-lg-12"
@@ -0,0 +1,38 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 08:58+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid "<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr ""
+42
View File
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * theme_notes_sale
#
# Translators:
# liAnGjiA <liangjia@qq.com>, 2019
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-04-24 08:58+0000\n"
"PO-Revision-Date: 2019-04-24 11:21+0000\n"
"Last-Translator: liAnGjiA <liangjia@qq.com>, 2019\n"
"Language-Team: Chinese (China) (https://www.transifex.com/odoo/teams/41243/zh_CN/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: zh_CN\n"
"Plural-Forms: nplurals=1; plural=0;\n"
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.product
msgid ""
"<i class=\"fa fa-shopping-cart\"/>\n"
" Add to Cart"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.products_categories
msgid "Product categories"
msgstr ""
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "Search..."
msgstr "搜索..."
#. module: theme_notes_sale
#: model_terms:theme.ir.ui.view,arch:theme_notes_sale.search
msgid "pagination form-inline col-lg-12"
msgstr ""
@@ -0,0 +1,210 @@
#wrap > .container-fluid .pagination, #wrap > .container .pagination {
padding-right: 0;
}
.oe_website_sale {
overflow: hidden;
padding-bottom: 20px;
background-color: o-theme-color('alpha');
color: gray('700');
@include o-theme-cfa-ecommerce-classes(
$js-attributes-padding: 15px 15px, $nav-link-color: o-theme-color('gamma') !important, $nav-link-hover-color: gray('700'),
$nav-link-hover-bg-color: gray('200'), $h6-font-size: $h6-font-size, $price-font-size: 14px, $add-cart-bg-color: #f8f9fa,
$add-cart-color: #555555, $right-column-border-bottom: 1px solid o-theme-color('beta'), $right-column-color: o-theme-color('beta')
);
.oe_product {
border: 0;
section {
min-height: 80px;
background: rgba(255, 255, 255, 0.9) !important;
h6 {
padding: 0;
margin-bottom: 0.5rem;
a:hover {
color: o-theme-color('alpha');
}
}
}
}
.oe_list {
border: 1px solid gray('200');
width: 90% !important;
&.oe_product_cart:hover {
border: none;
border-bottom: 1px solid rgba(100, 100, 100, 0.2);
}
@include media-breakpoint-down(sm) {
height: auto !important;
}
img {
padding: 10px 0;
}
}
.oe_cart {
.card {
text-align: unset;
}
.oe_website_spinner {
margin: auto;
border-collapse: inherit;
}
.a-submit {
border-width: 3px;
border-radius: 50px;
}
}
#products_grid_before > ul.flex-column > li > a {
margin: 0;
}
.progress-wizard .progress-wizard-step.active {
.progress-wizard-dot {
background-color: o-theme-color('epsilon');
}
.progress-wizard-steplabel {
color: gray('700');
}
}
}
#products_grid {
table, tbody {
background-color: rgba(0, 0, 0, 0) !important;
}
.oe_grid .oe_product_cart:hover {
border: 0;
}
.products_pager:first-child {
border-bottom: 1px solid gray('200');
}
.products_pager:last-child {
border-top: 1px solid gray('200');
}
.products_pager {
margin-top: 15px;
ul.pagination {
a {
border: rgba(0, 0, 0, 0);
color: gray('700');
min-width: 35px;
transition: all 0.3s ease-out;
&:hover {
border-bottom: 3px solid o-theme-color('delta');
background: rgba(0, 0, 0, 0);
color: gray('600');
}
}
li.active > a {
border-bottom: 3px solid o-theme-color('beta');
background-color: rgba(0, 0, 0, 0);
color: o-theme-color('beta');
}
}
}
}
/* =================== Search =================== */
.form-inline .input-group {
width: 100%;
.form-control {
font-size: 20px;
border: none;
height: 50px;
text-transform: lowercase;
}
}
/* =================== Categories =================== */
#products_grid_before {
padding: 15px 0px 15px 10px;
padding-bottom: 800em;
margin-bottom: -800em;
.main-category {
text-transform: uppercase;
}
.category-name {
text-align: left;
padding-bottom: 10px;
padding-left: 15px;
color: o-theme-color('gamma');
}
/* =========== Filters ========== */
.js_attributes {
border-bottom: 10px solid o-theme-color('delta');
margin: 20px 0px;
strong {
border-bottom: 1px dotted o-theme-color('beta');
}
}
}
/* =================== Product page =================== */
.js_sale {
background-color: o-theme-color('alpha');
.container-fluid > .row:first-child, .container:first-child > .row:first-child {
background-color: o-theme-color('beta-light');
}
}
#product_detail .col-md-5 {
border-left: 1px solid gray('200');
}
.js_add_cart_variants li strong {
border-bottom: 1px solid gray('200');
width: 100%;
display: inline-block;
margin: 20px 0px;
padding-left: 10px;
text-transform: uppercase;
color: o-theme-color('beta');
}
.product-title {
padding: 0px 0px 50px 0px;
text-align: center;
color: gray('700');
}
#add_to_cart {
padding-top: 15px;
max-width: 150px;
margin: 20px 0;
border: none;
margin-top: 0px;
transition: all 0.5s ease-out;
.fa {
font-size: 25px;
}
}
/* ======= ADD QUANTITY ========= */
.oe_website_spinner {
min-width: 150px;
margin-bottom: 25px;
.js_add_cart_json {
background-color: o-theme-color('gamma');
color: o-theme-color('alpha');
}
.quantity {
background-color: rgba(0, 0, 0, 0);
text-align: center;
border-color: o-theme-color('gamma');
}
}
.badge, .active > a > .badge {
padding: 5px 10px;
margin-left: 15px;
background-color: o-theme-color('gamma');
color: white;
min-width: 28px;
}
/* =================== Modal =================== */
#modal_optional_products table td:first-child {
@include media-breakpoint-down(sm) {
display: none;
}
}
.form-control:focus {
border: 1px solid o-theme-color('delta');
}
+116
View File
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Product grid view -->
<template id="products" inherit_id='website_sale.products' name="Products" priority="15">
<xpath expr="//*[hasclass('oe_website_sale')]//*[1]" position="before">
<t t-call="theme_notes_sale.search"/>
</xpath>
<!-- Use container fluid instead of container -->
<xpath expr="//div[hasclass('oe_website_sale')]" position="attributes">
<attribute name="class">container-fluid oe_website_sale</attribute>
</xpath>
<!-- Add pager to the top and bottom -->
<xpath expr="//div[@id='products_grid']/*[1]" position="before">
<div class="products_pager">
<t t-call="website_sale.pricelist_list"/>
<t t-call="website.pager"/>
</div>
</xpath>
<xpath expr="//div[@id='products_grid']/*[last()]" position="after">
<div class="products_pager">
<t t-call="website_sale.pricelist_list"/>
<t t-call="website.pager"/>
</div>
</xpath>
<!-- Remove original pager -->
<xpath expr="//div[hasclass('products_pager')]" position="replace">
</xpath>
<xpath expr="//div[hasclass('oe_website_sale')]/div[hasclass('products_pager')]" position="replace">
</xpath>
</template>
<!-- Rearrange product page -->
<template id="product" inherit_id='website_sale.product' name="Product">
<!-- Widen breadcrumb -->
<xpath expr="//*[@id='wrap']//*[hasclass('row')]/*[1]" position="attributes">
<attribute name="class">col-md-12</attribute>
</xpath>
<!-- Move search bar -->
<xpath expr="//*[@id='wrap']//*[hasclass('row')]/*[2]" position="replace">
</xpath>
<xpath expr="//*[@id='wrap']//*[hasclass('row')]" position="before">
<t t-call="theme_notes_sale.search"/>
</xpath>
<!-- Move product name -->
<!-- FIXME -->
<!-- <xpath expr="//h1[@t-field='product.name']" position="replace"/> -->
<!-- <xpath expr="//*[@id='website_published_button']" position="after"> -->
<!-- <div class="col-md-12 product-title"> -->
<!-- <h1 itemprop="name" t-field="product.name">Product Name</h1> -->
<!-- </div> -->
<!-- </xpath> -->
<!-- New add to cart button -->
<xpath expr="//a[@id='add_to_cart']" position="replace">
<a id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit d-block" href="#">
<i class="fa fa-shopping-cart"/>
Add to Cart
</a>
</xpath>
</template>
<!-- Add class to recommended products -->
<template id="recommended_products" inherit_id="website_sale.recommended_products" name="Alternative Products">
<xpath expr="//div[hasclass('container')]" position="attributes">
<attribute name='id'>website_sale_recommended_products</attribute>
</xpath>
</template>
<!-- Add h3 tag to the category list -->
<template id="products_categories" inherit_id="website_sale.products_categories" active="True" customize_show="True" name="Product Categories">
<xpath expr="//div[@id='products_grid_before']/ul" position="before">
<h3 class="category-name">Product categories</h3>
</xpath>
<xpath expr="//div[@id='products_grid_before']" position="attributes">
<attribute name="class">col-lg-3 col-md-4 d-none d-md-block</attribute>
</xpath>
<xpath expr="//div[@id='products_grid']" position="attributes">
<attribute name="class">col-lg-9 col-md-8</attribute>
</xpath>
</template>
<record id="website_sale.products_add_to_cart" model="ir.ui.view">
<field name="active" eval='True'/>
</record>
<record id="website_sale.products_categories" model="ir.ui.view">
<field name="active" eval='True'/>
</record>
<template id="search" name="search">
<div class="row">
<div class="col-lg-12">
<t t-if="not keep">
<form action="/shop" method="get" class="pagination form-inline col-lg-12">
<div class="input-group">
<input name="search" class="search-query form-control" placeholder="Search..." type="text"/>
<div class="input-group-append">
<a class="btn btn-secondary a-submit"><i class="fa fa-search"/></a>
</div>
</div>
</form>
</t>
<t t-if="keep">
<t t-call="website_sale.search">
<t t-set="search_class">pagination form-inline col-lg-12</t>
</t>
</t>
</div>
</div>
</template>
</data>
</openerp>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_frontend" inherit_id="theme_notes.assets_frontend" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_notes_sale/static/src/scss/theme_ecommerce.scss"/>
</xpath>
</template>
</odoo>