please help me somebody.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2
Replies
3059
Views
please help me somebody.
Hi,
Please try the following code:
I have a input date field in the XML file as given below
<input type="date" class="fa fa-plus-square " id="date_to"/>It may help you.
<script>
$(document).on("change", "#date_to", function (){
//perform operations here
});
</script>
in function how do i take odoo model records
i am not able to get odoo model records
plz check my javascript code
<input type="text" class="fa fa-plus-square " id="course_dropdown"/>
<script>
$(document).on("change", "#course_dropdown", function (){
odoo.define("portal_student.registration", function (require) {
var rpc = require('web.rpc');
var course = document.getElementById("course_dropdown");
rpc.query({
model: 'op.batch',
}).then(function (data) {
for(i in data){
document.getElementById("batch_id").value = i.name;}
});
});
}
</script>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
if select input field ...based on this input another input filed value has to be changed how to do this ...plz help me