Pierre Masereel
852e2c557e
[FIX] barcodes: set_quantity traceback on mobile
...
When we are trying to set the quantity on a mobile device, we get
a traceback saying that we cannot call the 'find' function on the
elements returned by '_get_records'.
This '_get_records' function returns a 'Collection' when called on a tree
view and an 'Array' when called on a kanban view. When we are working
on a mobile device, most of the one2many are displayed as kanban.
The thing is when we work with the object returned by '_get_records' we
call a 'find' method on it, which is implemented by Odoo's Collection class.
So when we call 'find' on an 'Array' we actually call 'Array.prototype.find' which
is implemented on most desktop browser and on some mobile browser [1]. This is what
caused the traceback on Chrome in Android.
To fix this issue, we enforce '_get_records' to always return an 'Array' and we ensure
that, when working on this 'Array', we use '_.find'.
[1] https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find
2016-10-14 12:22:22 +02:00
..
2016-10-12 15:27:07 +02:00
2016-08-19 12:07:14 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-12 10:28:16 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-02 00:35:04 +02:00
2016-10-09 00:34:56 +02:00
2016-09-04 00:36:28 +02:00
2016-06-30 13:27:46 +02:00
2016-09-08 10:46:46 +02:00
2016-10-09 00:34:56 +02:00
2016-10-02 00:35:04 +02:00
2016-09-09 10:52:34 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-09-21 21:34:11 +02:00
2016-09-01 15:46:03 +02:00
2016-08-25 11:07:14 +02:00
2016-09-30 15:37:25 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-14 12:22:22 +02:00
2016-10-10 14:57:18 +02:00
2016-10-10 11:22:55 +02:00
2016-10-02 00:35:04 +02:00
2016-09-01 15:46:03 +02:00
2016-10-10 14:57:18 +02:00
2016-10-09 00:34:56 +02:00
2016-10-03 10:36:56 +02:00
2016-09-04 00:36:28 +02:00
2016-09-16 12:05:38 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-09-04 00:36:28 +02:00
2016-10-11 17:06:35 +02:00
2016-10-02 00:35:04 +02:00
2016-10-09 00:34:56 +02:00
2016-10-03 10:36:56 +02:00
2016-09-11 00:35:15 +02:00
2016-10-09 00:34:56 +02:00
2016-10-12 15:27:07 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-03 10:36:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-09-09 10:52:34 +02:00
2016-10-09 00:34:56 +02:00
2016-10-03 10:36:56 +02:00
2016-09-01 15:46:03 +02:00
2016-10-09 00:34:56 +02:00
2016-10-03 10:36:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-03 10:36:56 +02:00
2016-10-10 11:22:55 +02:00
2016-09-26 13:32:09 +02:00
2016-10-10 11:22:55 +02:00
2016-06-30 13:27:46 +02:00
2016-08-07 00:38:49 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-10-10 11:22:55 +02:00
2016-09-09 10:52:34 +02:00
2016-08-21 00:40:51 +02:00
2016-10-03 11:06:37 +02:00
2016-10-03 11:06:37 +02:00
2016-08-03 10:57:54 +02:00
2016-10-12 15:27:07 +02:00
2016-10-09 00:34:56 +02:00
2016-09-26 13:32:09 +02:00
2016-08-03 14:09:30 +02:00
2016-10-03 11:06:37 +02:00
2016-10-03 11:06:37 +02:00
2016-06-30 13:27:46 +02:00
2016-10-03 11:06:37 +02:00
2016-10-03 11:06:37 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-09-25 00:40:39 +02:00
2016-08-19 12:07:14 +02:00
2016-09-26 13:32:09 +02:00
2016-10-03 11:06:37 +02:00
2016-10-03 11:06:37 +02:00
2016-08-21 00:40:51 +02:00
2016-08-01 00:33:47 +02:00
2016-09-25 00:40:39 +02:00
2016-10-03 11:06:37 +02:00
2016-10-09 00:34:56 +02:00
2016-09-22 19:50:53 +02:00
2016-07-27 19:41:50 +02:00
2016-06-30 13:27:46 +02:00
2016-06-30 13:27:46 +02:00
2016-10-03 11:06:37 +02:00
2016-08-21 00:40:51 +02:00
2016-08-21 00:40:51 +02:00
2016-10-03 11:06:37 +02:00
2016-10-03 11:06:37 +02:00
2016-10-13 10:10:13 +02:00
2016-10-09 00:34:56 +02:00
2016-07-13 17:26:44 +02:00
2016-10-03 11:06:37 +02:00
2016-09-20 17:46:13 +02:00
2016-09-25 00:40:39 +02:00
2016-08-14 00:38:20 +02:00
2016-08-29 11:14:01 +02:00
2016-10-03 11:06:37 +02:00
2016-08-21 00:40:51 +02:00
2016-08-03 10:57:54 +02:00
2016-08-29 11:14:01 +02:00
2016-08-19 12:07:14 +02:00
2016-09-04 00:36:28 +02:00
2016-08-21 00:40:51 +02:00
2016-09-04 00:36:28 +02:00
2016-08-21 00:40:51 +02:00
2016-09-25 00:40:39 +02:00
2016-09-25 00:40:39 +02:00
2016-08-01 00:33:47 +02:00
2016-09-25 00:40:39 +02:00
2016-08-21 00:40:51 +02:00
2016-09-25 00:40:39 +02:00
2016-06-30 13:27:46 +02:00
2016-09-25 00:40:39 +02:00
2016-08-21 00:40:51 +02:00
2016-09-25 00:40:39 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-11 18:00:27 +02:00
2016-06-30 13:27:46 +02:00
2016-09-09 10:52:34 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-09-09 10:52:34 +02:00
2016-10-10 11:22:55 +02:00
2016-09-25 00:40:39 +02:00
2016-10-10 11:22:55 +02:00
2016-09-09 10:52:34 +02:00
2016-10-09 00:34:56 +02:00
2016-08-29 11:14:01 +02:00
2016-10-09 00:34:56 +02:00
2016-10-02 00:35:04 +02:00
2016-10-02 00:35:04 +02:00
2016-10-03 10:36:56 +02:00
2016-10-02 00:35:04 +02:00
2016-10-03 10:36:56 +02:00
2016-10-02 00:35:04 +02:00
2016-10-02 00:35:04 +02:00
2016-10-12 15:33:01 +02:00
2016-09-22 12:46:30 +02:00
2016-06-30 13:27:46 +02:00
2016-10-09 00:34:56 +02:00
2016-06-30 13:27:46 +02:00
2016-09-04 00:36:28 +02:00
2016-09-14 11:52:24 +02:00
2016-10-09 00:34:56 +02:00
2016-09-25 00:40:39 +02:00
2016-10-03 10:36:56 +02:00
2016-10-10 11:22:55 +02:00
2016-09-04 00:36:28 +02:00
2016-10-10 11:22:55 +02:00
2016-09-25 00:40:39 +02:00
2016-09-09 10:52:34 +02:00
2016-09-09 10:52:34 +02:00
2016-10-09 00:34:56 +02:00
2016-09-04 00:36:28 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-09-09 10:52:34 +02:00
2016-10-09 00:34:56 +02:00
2016-10-13 22:30:40 +02:00
2016-10-12 15:33:01 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-10-03 10:36:56 +02:00
2016-10-13 09:15:48 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-09-09 10:52:34 +02:00
2016-09-09 10:52:34 +02:00
2016-10-10 11:22:55 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-09-04 00:36:28 +02:00
2016-10-09 00:34:56 +02:00
2016-10-13 16:12:05 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:17:17 +02:00
2016-10-10 11:22:55 +02:00
2016-10-10 11:22:55 +02:00
2016-10-03 10:36:56 +02:00
2016-10-10 11:22:55 +02:00
2016-08-19 12:07:14 +02:00
2016-09-25 00:40:39 +02:00
2016-10-09 00:34:56 +02:00
2016-10-12 17:57:24 +02:00
2016-09-14 11:52:24 +02:00
2016-10-13 16:01:21 +02:00
2016-06-30 13:27:46 +02:00
2016-10-09 00:34:56 +02:00
2016-08-29 11:14:01 +02:00
2016-10-02 00:35:04 +02:00
2016-10-13 16:20:30 +02:00
2016-09-26 13:32:09 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 12:08:27 +02:00
2016-10-10 11:22:55 +02:00
2016-09-25 00:40:39 +02:00
2016-10-02 00:35:04 +02:00
2016-09-18 00:34:39 +02:00
2016-10-02 00:35:04 +02:00
2016-10-09 00:34:56 +02:00
2016-10-02 00:35:04 +02:00
2016-10-02 00:35:04 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-10 11:22:55 +02:00
2016-09-14 11:52:24 +02:00
2016-09-18 00:34:39 +02:00
2016-10-03 10:36:56 +02:00
2016-06-30 13:27:46 +02:00
2016-10-09 00:34:56 +02:00
2016-10-11 17:06:35 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-09-25 00:40:39 +02:00
2016-09-25 00:40:39 +02:00
2016-09-22 12:46:30 +02:00
2016-10-03 10:36:56 +02:00
2016-10-13 16:30:03 +02:00
2016-10-13 16:30:03 +02:00
2016-10-13 16:30:03 +02:00
2016-06-30 13:27:46 +02:00
2016-10-14 11:38:36 +02:00
2016-09-18 00:34:39 +02:00
2016-10-13 14:31:18 +02:00
2016-09-25 00:40:39 +02:00
2016-07-24 00:30:28 +02:00
2016-10-03 10:36:56 +02:00
2016-10-09 00:34:56 +02:00
2016-10-09 00:34:56 +02:00
2016-06-30 13:27:46 +02:00
2016-10-10 11:22:55 +02:00