Browse Source

Rename module to web_customisable_date_format

Makes it clearer that the module doesn't create a new widget type,
but uses additional options on the standard date(time) widgets.
pull/517/head
Leonardo Donelli 6 years ago
parent
commit
4110ec06a6
  1. 6
      web_customisable_date_format/README.rst
  2. 0
      web_customisable_date_format/__init__.py
  3. 8
      web_customisable_date_format/__manifest__.py
  4. 2
      web_customisable_date_format/static/src/js/formats.js
  5. 10
      web_customisable_date_format/templates/web.xml
  6. 10
      web_widget_date_format/templates/web.xml

6
web_widget_date_format/README.rst → web_customisable_date_format/README.rst

@ -2,9 +2,9 @@
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
==============================
Date widget with custom format
==============================
========================
Customisable date format
========================
This module adds the possibility to specify a rendering format
for date and datetime fields, using MomentJS tokens.

0
web_widget_date_format/__init__.py → web_customisable_date_format/__init__.py

8
web_widget_date_format/__manifest__.py → web_customisable_date_format/__manifest__.py

@ -3,13 +3,13 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': 'Date field with custom format widget',
'name': 'Customisable date format',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'category': 'Web',
'author': "MONK Software",
'summary': "Date field widget with custom",
'website': 'http://www.wearemonk.com',
'author': 'MONK Software',
'summary': 'Date field widget with custom',
'website': 'https://www.monksoftware.it',
'depends': ['web'],
'data': [
'templates/web.xml',

2
web_widget_date_format/static/src/js/formats.js → web_customisable_date_format/static/src/js/formats.js

@ -1,7 +1,7 @@
// © 2016- Leonardo Donelli (donelli at monksoftware it)
// License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
odoo.define('web_widget_date_format.formats', function(require) {
odoo.define('web_customisable_date_format.formats', function(require) {
'use strict';
var time = require('web.time');

10
web_customisable_date_format/templates/web.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_backend" name="web_customisable_date_format backend assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_customisable_date_format/static/src/js/formats.js"></script>
</xpath>
</template>
</odoo>

10
web_widget_date_format/templates/web.xml

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_backend" name="web_date_field_format backend assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_widget_date_format/static/src/js/formats.js"></script>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save