summaryrefslogtreecommitdiff
path: root/addons/point_of_sale/static/src/js/models.js
diff options
context:
space:
mode:
authorRobin Heinz <rhe@odoo.com>2019-12-19 12:40:38 +0000
committerPierre Masereel <pim@odoo.com>2021-04-27 12:50:35 +0000
commit54922b38ec2a7de6c3691bae1b23b7288236d04b (patch)
treee1a71e316058aaf17321c4d8ab8524291afa26eb /addons/point_of_sale/static/src/js/models.js
parent02ee7a505fa8cdc57ea26cb0bccd7b3f5792f30c (diff)
[IMP] point_of_sale: improve serial number usuability.
This tasks allow to see serial numbers or lot numbers for each products on the order. It also add the same information on an invoice generated by the POS if the option is ticked in the pos config. closes odoo/odoo#42410 closes odoo/odoo#69932 Task-id: 2154835 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/point_of_sale/static/src/js/models.js')
-rw-r--r--addons/point_of_sale/static/src/js/models.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/point_of_sale/static/src/js/models.js b/addons/point_of_sale/static/src/js/models.js
index f8530296caf..30f131cba62 100644
--- a/addons/point_of_sale/static/src/js/models.js
+++ b/addons/point_of_sale/static/src/js/models.js
@@ -1820,6 +1820,10 @@ exports.Orderline = Backbone.Model.extend({
}
},
+ get_lot_lines: function() {
+ return this.pack_lot_lines.models;
+ },
+
get_required_number_of_lots: function(){
var lots_required = 1;
@@ -1936,6 +1940,7 @@ exports.Orderline = Backbone.Model.extend({
tax: this.get_tax(),
product_description: this.get_product().description,
product_description_sale: this.get_product().description_sale,
+ pack_lot_lines: this.get_lot_lines()
};
},
generate_wrapped_product_name: function() {