summaryrefslogtreecommitdiff
path: root/addons/purchase/static
diff options
context:
space:
mode:
authoryhu-odoo <yhu@odoo.com>2020-06-09 20:58:08 +0000
committeryhu-odoo <yhu@odoo.com>2020-06-29 13:27:17 +0000
commit0d3d26aca1cccd6b06bca46f0ec8fdaf2fda3d6e (patch)
tree880dae32d11f7e88fd5d9d65f32e0b1bdda2afb5 /addons/purchase/static
parent687a845cdbeab38c32c885539a5ee777ba7fd206 (diff)
[IMP] purchase(_stock): portal update scheduled date
1. Show only date not datetime on update portal. When update the scheduled date, set it to be the last minute of that date. 2. Send updated date immediately when user pick a date. 3. If an activity for update the date already exist, update the note instead of creating a new one. Task #2265912 PR 52809
Diffstat (limited to 'addons/purchase/static')
-rw-r--r--addons/purchase/static/src/js/purchase_datetimepicker.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/purchase/static/src/js/purchase_datetimepicker.js b/addons/purchase/static/src/js/purchase_datetimepicker.js
index c2aaad196c4..de1be92f6df 100644
--- a/addons/purchase/static/src/js/purchase_datetimepicker.js
+++ b/addons/purchase/static/src/js/purchase_datetimepicker.js
@@ -1,3 +1,6 @@
$(function () {
$('input.o-purchase-datetimepicker').datetimepicker();
+ $('input.o-purchase-datetimepicker').on("hide.datetimepicker", function () {
+ $(this).parents('form').submit();
+ });
})