mirror of https://github.com/OCA/web.git
[IMP] web_widget_datepicker_fulloptions: pre-commit execution
parent
a4571cff27
commit
ee3f187839
|
@ -0,0 +1 @@
|
||||||
|
../../../../web_widget_datepicker_fulloptions
|
|
@ -0,0 +1,6 @@
|
||||||
|
import setuptools
|
||||||
|
|
||||||
|
setuptools.setup(
|
||||||
|
setup_requires=['setuptools-odoo'],
|
||||||
|
odoo_addon=True,
|
||||||
|
)
|
|
@ -3,12 +3,11 @@
|
||||||
{
|
{
|
||||||
"name": "Web Widget DatePicker Full Options",
|
"name": "Web Widget DatePicker Full Options",
|
||||||
"version": "12.0.1.0.1",
|
"version": "12.0.1.0.1",
|
||||||
"author": "GRAP, "
|
"author": "GRAP, " "Odoo Community Association (OCA)",
|
||||||
"Odoo Community Association (OCA)",
|
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "Web",
|
"category": "Web",
|
||||||
"website": "https://github.com/OCA/web",
|
"website": "https://github.com/OCA/web",
|
||||||
'installable': True,
|
"installable": True,
|
||||||
"depends": [
|
"depends": [
|
||||||
"web",
|
"web",
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
/* Copyright 2021 Quentin DUPONT
|
/* Copyright 2021 Quentin DUPONT
|
||||||
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
|
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
|
||||||
odoo.define('web_widget_datepicker_fulloptions.datepicker_fulloptions', function (require) {
|
odoo.define("web_widget_datepicker_fulloptions.datepicker_fulloptions", function (
|
||||||
"use strict";
|
require
|
||||||
|
) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
var DatePicker = require('web.datepicker');
|
var DatePicker = require("web.datepicker");
|
||||||
|
|
||||||
var DatePickerFullOptions = DatePicker.DateWidget.include({
|
var DatePickerFullOptions = DatePicker.DateWidget.include({
|
||||||
/**
|
/**
|
||||||
|
@ -17,5 +19,4 @@ odoo.define('web_widget_datepicker_fulloptions.datepicker_fulloptions', function
|
||||||
this.options.buttons.showClose = true;
|
this.options.buttons.showClose = true;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
<odoo>
|
<odoo>
|
||||||
<template id="web_widget_datepicker_fulloptions_assets_backend"
|
<template
|
||||||
name="web_widget_datepicker_fulloptions_assets"
|
id="web_widget_datepicker_fulloptions_assets_backend"
|
||||||
inherit_id="web.assets_backend">
|
name="web_widget_datepicker_fulloptions_assets"
|
||||||
|
inherit_id="web.assets_backend"
|
||||||
|
>
|
||||||
<xpath expr="." position="inside">
|
<xpath expr="." position="inside">
|
||||||
<script type="text/javascript"
|
<script
|
||||||
src="/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js"/>
|
type="text/javascript"
|
||||||
|
src="/web_widget_datepicker_fulloptions/static/src/js/web_widget_datepicker_fulloptions.js"
|
||||||
|
/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</template>
|
</template>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
Loading…
Reference in New Issue