mirror of https://github.com/OCA/web.git
[FIX] web_widget_one2many_product_picker: Unlimit records
parent
60be67927b
commit
99480e980b
|
@ -4,7 +4,7 @@
|
||||||
{
|
{
|
||||||
'name': 'Web Widget One2Many Product Picker',
|
'name': 'Web Widget One2Many Product Picker',
|
||||||
'summary': 'Widget to select products on one2many fields',
|
'summary': 'Widget to select products on one2many fields',
|
||||||
'version': '12.0.1.0.0',
|
'version': '12.0.1.1.0',
|
||||||
'category': 'Website',
|
'category': 'Website',
|
||||||
'author': "Tecnativa, "
|
'author': "Tecnativa, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
|
|
|
@ -22,7 +22,7 @@ msgstr ""
|
||||||
|
|
||||||
#. module: web_widget_one2many_product_picker
|
#. module: web_widget_one2many_product_picker
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/web_widget_one2many_product_picker/static/src/js/widgets/field_one2many_product_picker.js:171
|
#: code:addons/web_widget_one2many_product_picker/static/src/js/widgets/field_one2many_product_picker.js:192
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "All"
|
msgid "All"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -78,7 +78,7 @@ msgstr ""
|
||||||
|
|
||||||
#. module: web_widget_one2many_product_picker
|
#. module: web_widget_one2many_product_picker
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js:273
|
#: code:addons/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js:302
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "[No widget %s]"
|
msgid "[No widget %s]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
|
@ -19,6 +19,10 @@ odoo.define("web_widget_one2many_product_picker.FieldOne2ManyProductPicker", fun
|
||||||
var FieldOne2ManyProductPicker = FieldOne2Many.extend({
|
var FieldOne2ManyProductPicker = FieldOne2Many.extend({
|
||||||
className: "oe_field_one2many_product_picker",
|
className: "oe_field_one2many_product_picker",
|
||||||
|
|
||||||
|
// Workaround: We need know all records,
|
||||||
|
// the widget pagination works with product.product.
|
||||||
|
limit: 9999999,
|
||||||
|
|
||||||
events: _.extend({}, FieldOne2Many.prototype.events, {
|
events: _.extend({}, FieldOne2Many.prototype.events, {
|
||||||
"click .dropdown-item": "_onClickSearchMode",
|
"click .dropdown-item": "_onClickSearchMode",
|
||||||
"click .oe_search_erase": "_onClickSearchEraser",
|
"click .oe_search_erase": "_onClickSearchEraser",
|
||||||
|
|
Loading…
Reference in New Issue