Browse Source

Merge 302b8b4695 into ad79aa45cf

pull/817/merge
Achraf Mhadhbi 5 years ago
committed by GitHub
parent
commit
46cf63e5b4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 47
      web_listview_number_right/README.rst
  2. 1
      web_listview_number_right/__init__.py
  3. 18
      web_listview_number_right/__manifest__.py
  4. BIN
      web_listview_number_right/static/description/icon.png
  5. 11
      web_listview_number_right/static/src/less/list_view.less
  6. 10
      web_listview_number_right/views/asset.xml

47
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
<https://github.com/OCA/web/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 <mhadhbi.achref@gmail.com>
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.

1
web_listview_number_right/__init__.py

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

18
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,
}

BIN
web_listview_number_right/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 9.2 KiB

11
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;
}
}

10
web_listview_number_right/views/asset.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="assets_backend" name="web_number_right assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/less" href="/web_listview_number_right/static/src/less/list_view.less"/>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save