upgrade pos_product_sequence to 16
This commit is contained in:
parent
9765815e5a
commit
f847e19bac
BIN
pos_product_sequence-16.0.1.0.zip
Normal file
BIN
pos_product_sequence-16.0.1.0.zip
Normal file
Binary file not shown.
|
@ -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">
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue