mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-25 06:52:02 +02:00
Initial commit: Sale packages
This commit is contained in:
commit
14e3d26998
6469 changed files with 2479670 additions and 0 deletions
|
|
@ -0,0 +1,59 @@
|
|||
.o_web_client .o_matrix_input_table {
|
||||
table {
|
||||
margin-bottom: 0;
|
||||
table-layout: fixed;
|
||||
min-width: 100%;
|
||||
width: auto;
|
||||
max-width: none;
|
||||
}
|
||||
th, td {
|
||||
border: 0 !important;
|
||||
vertical-align: middle;
|
||||
width: 5em;
|
||||
}
|
||||
.o_matrix_title_header {
|
||||
width: 10em;
|
||||
}
|
||||
thead {
|
||||
color: $o-main-text-color;
|
||||
background-color: $o-brand-lightsecondary;
|
||||
th {
|
||||
text-align: center;
|
||||
white-space: pre-line;
|
||||
}
|
||||
}
|
||||
tbody {
|
||||
background-color: $o-view-background-color;
|
||||
text-align: right;
|
||||
tr {
|
||||
border-top: 1px solid $o-form-lightsecondary;
|
||||
border-bottom: 1px solid $o-form-lightsecondary;
|
||||
}
|
||||
.o_matrix_input {
|
||||
text-align: right;
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
.o_matrix_text_muted{
|
||||
color: lighten($o-main-text-color, 15%);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// ensure white background completely surrounds nocontent bubble
|
||||
.o_matrix_nocontent_container {
|
||||
overflow: auto;
|
||||
|
||||
.oe_view_nocontent_img_link {
|
||||
padding:10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.o_product_variant_matrix {
|
||||
.form-control {
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
border: 1px solid $gray-400;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
<template>
|
||||
<div t-name="product_matrix.matrix">
|
||||
<table class="o_matrix_input_table o_product_variant_matrix table table-sm table-striped table-bordered cursor-default">
|
||||
<thead>
|
||||
<tr>
|
||||
<t t-foreach="header" t-as="column_header">
|
||||
<th t-attf-class="o_matrix_title_header {{column_header_first?'text-start':'text-center'}}">
|
||||
<span t-esc="column_header.name"/>
|
||||
<t t-call="product_matrix.extra_price">
|
||||
<t t-set="cell" t-value="column_header"/>
|
||||
</t>
|
||||
</th>
|
||||
</t>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr t-foreach="rows" t-as="row">
|
||||
<t t-foreach="row" t-as="cell">
|
||||
<th t-if="cell.name" class="text-start">
|
||||
<strong t-esc="cell.name"/>
|
||||
<t t-call="product_matrix.extra_price"/>
|
||||
</th>
|
||||
<td t-else="">
|
||||
<div t-if="cell.is_possible_combination" class="input-group">
|
||||
<input type="number"
|
||||
class="o_matrix_input"
|
||||
t-att-ptav_ids="cell.ptav_ids"
|
||||
t-att-value="cell.qty"/>
|
||||
</div>
|
||||
<span t-else="" class="o_matrix_cell o_matrix_text_muted o_matrix_nocontent_container"> Not available </span>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<span t-name="product_matrix.extra_price" t-if="cell.price" class="badge rounded-pill text-bg-secondary">
|
||||
<!--
|
||||
price_extra is displayed as catalog price instead of
|
||||
price after pricelist because it is impossible to
|
||||
compute. Indeed, the pricelist rule might depend on the
|
||||
selected variant, so the price_extra will be different
|
||||
depending on the selected combination. The price of an
|
||||
attribute is therefore variable and it's not very
|
||||
accurate to display it.
|
||||
-->
|
||||
<span class="variant_price_extra" style="white-space: nowrap;">
|
||||
<t t-out="format(cell)"/>
|
||||
</span>
|
||||
</span>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue