Browse Source

Small improvements.

pull/949/head
Meet 6 years ago
parent
commit
34394369f7
  1. 2
      web_x2many_delete_all/README.rst
  2. 3
      web_x2many_delete_all/__init__.py
  3. 7
      web_x2many_delete_all/__manifest__.py
  4. 2
      web_x2many_delete_all/static/src/js/web_x2many_delete_all.js

2
web_x2many_delete_all/README.rst

@ -1,3 +1,3 @@
Readme will be automatically generate.
**This file is going to be generated by oca-gen-addon-readme.**
Adds a button to Many2many and One2many fields that removes all linked records.

3
web_x2many_delete_all/__init__.py

@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
# © 2016 Onestein (<http://www.onestein.eu>)
# Copyright 2016 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

7
web_x2many_delete_all/__manifest__.py

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# © 2016 Onestein (<http://www.onestein.eu>)
# Copyright 2016 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
@ -10,7 +9,7 @@
'version': '11.0.1.0.0',
'category': 'Web',
'author': 'Onestein, Meet Dholakia, Odoo Community Association (OCA)',
'website': 'http://www.onestein.eu',
'website': 'https://github.com/OCA/web',
'license': 'AGPL-3',
'depends': [
'web',
@ -21,6 +20,4 @@
'qweb': [
'static/src/xml/web_x2many_delete_all.xml'
],
'installable': True,
'application': False,
}

2
web_x2many_delete_all/static/src/js/web_x2many_delete_all.js

@ -21,7 +21,7 @@ odoo.define('web_x2many_delete_all.Mixin', function (require) {
_renderDeleteAll: function (tag) {
var $icon = $('<button>', {class: 'fa fa-trash-o o_list_record_delete_all_btn', name: 'delete all',
'aria-label': _t('Delete All')});
return $('<' + tag + ' width="1">')
return $('<' + tag + '>')
.addClass('o_list_record_delete_all')
.append($icon);
},

Loading…
Cancel
Save