upgrade pos_product_sequence to 16

This commit is contained in:
Tobias Brunner 2023-08-07 07:45:41 +02:00
parent 9765815e5a
commit f847e19bac
Signed by: tobru
SSH key fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
3 changed files with 1 additions and 16 deletions

Binary file not shown.

View file

@ -135,7 +135,7 @@
<div class="pb-3">
<div class="" style="background-color: #05386e;padding: 9px;text-align: center;color:#fff;border-radius: 10px 10px 10px 10px;">
<span style="font-size:20px; font-weight:700; display:block">4th</span>
<span style="display:block;font-size: 1.0em;text-transform:uppercase;">January, 2021 </span>
<span style="display:block;font-size: 1.0em;text-transform:uppercase;">Octember, 2022 </span>
</div>
<div style="padding:1.5rem 2rem; border-top-right-radius:10px; background-color:#fff; border-bottom-right-radius:10px">
<div class="timeline__content">

View file

@ -29,21 +29,6 @@ odoo.define('pos_product_sequence.models', function(require) {
},
});
models.PosModel.prototype.models.some(function(model) {
if (model.model !== 'product.product') {
return false;
}
// add name and attribute_value_ids to list of fields
// to fetch for product.product
['pos_sequence'].forEach(function(field) {
if (model.fields.indexOf(field) == -1) {
model.fields.push(field);
}
});
model['order'] = _.map(['pos_sequence', 'sequence', 'default_code', 'name'], function(name) { return { name: name }; });
return true; //exit early the iteration of this.models
});
const BiProductsTemplateWidget = (ProductsWidget) =>
class extends ProductsWidget {
constructor() {