diff --git a/web_listview_number_right/README.rst b/web_listview_number_right/README.rst new file mode 100644 index 00000000..8338c8cc --- /dev/null +++ b/web_listview_number_right/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +====================== +List View Number right +====================== + +This module was written to extend the functionality of the web client to set alignment right of number type of fields and sum of number when we group by in the listView . + + +Configuration +============= + +No configuration is needed. + + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed feedback. + +Credits +======= + +Contributors +------------ + +* Mhadhbi Achraf + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file diff --git a/web_listview_number_right/__init__.py b/web_listview_number_right/__init__.py new file mode 100644 index 00000000..40a96afc --- /dev/null +++ b/web_listview_number_right/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/web_listview_number_right/__manifest__.py b/web_listview_number_right/__manifest__.py new file mode 100644 index 00000000..ca6a5f50 --- /dev/null +++ b/web_listview_number_right/__manifest__.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Mhadhbi Achraf(https://github.com/AMhadhbi). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'List View Number right', + 'version': '10.0.1.0.0', + 'category': 'web', + 'summary': "Set alignment right of number type of fields", + 'author': "Mhadhbi Achraf,Odoo Community Association (OCA)", + 'website': 'https://github.com/AMhadhbi', + 'license': 'AGPL-3', + 'depends': ['web'], + 'data': [ + 'views/asset.xml', + ], + 'installable': True, +} diff --git a/web_listview_number_right/static/description/icon.png b/web_listview_number_right/static/description/icon.png new file mode 100644 index 00000000..3a0328b5 Binary files /dev/null and b/web_listview_number_right/static/description/icon.png differ diff --git a/web_listview_number_right/static/src/less/list_view.less b/web_listview_number_right/static/src/less/list_view.less new file mode 100644 index 00000000..ff55be95 --- /dev/null +++ b/web_listview_number_right/static/src/less/list_view.less @@ -0,0 +1,11 @@ +.o_list_view { + + .o_list_number { + text-align: right; + } + + .oe_number { + text-align: right; + } +} + diff --git a/web_listview_number_right/views/asset.xml b/web_listview_number_right/views/asset.xml new file mode 100644 index 00000000..0f559448 --- /dev/null +++ b/web_listview_number_right/views/asset.xml @@ -0,0 +1,10 @@ + + + + + +