Thanks for this amazing tutorial, i just have one question, and it's: instead of extending FieldChar I extend TextField and it throws an error: he following error occurred in onMounted: "Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'."
Thanks for this amazing tutorial, i just have one question, and it's: When should i use a getter method in my component instead an state (useState)? Because i saw that the widgets that we created are able to react to the changes even if the data is not an state... What would you recommend? Thanks again for share your knowledge with us!
Hi, you can use both when rendering the data to the component's template. But when dealing with asynchronous calls, and updating data, the getter method will not be possible. So use the getter method only in rendering data to the template.
Please check my Odoo theme tutorial on dynamic widgets. Unfortunately, the public widget doesn't use yet Owl components ua-cam.com/video/KHlLJEfQ9fQ/v-deo.html
Hi, check the basic of OWL here www.odoo.com/documentation/16.0/developer/tutorials/discover_js_framework/01_owl_components.html. Some of it I learned by checking several code and how it works.
Yes, you can. You need to use loadJs. This is how they use to load charts (ChartJS) in Odoo. More info in this link www.odoo.com/documentation/16.0/developer/tutorials/discover_js_framework/02_web_framework.html#display-a-pie-chart
Great video! Im looking to create a custom view type to display Owl Widgets, but the official documentation is super outdated, im trying to display models graphically in a canvas, so i need a new view type from scratch, could you make a video about it? Thanks!
Yes, it's possible. In this tutorial, we have inherited the email field widget. You can do the same in the datetime picker as well github.com/odoo/odoo/tree/16.0/addons/web/static/src/core/datepicker.
In this tutorial, I also discussed how to create a new field widget from scratch like the range field. Before you create a new datetime picker, check first if you're able to get the same functionalities from the default one by inheriting it.
Error when running on V.17: TypeError: Cannot read properties of undefined (reading 'name') i have error when coding your example how to fix it ? thanks
In Odoo 17, they changed how to access the record. It will be under "props.record.data". props.record.data[props.name] github.com/odoo/odoo/blob/17.0/addons/web/static/src/views/fields/email/email_field.xml#L7
hi there is a great video and i follow your steps to inherit the color_picker widget and i works! but i didnt manage is i can not add new color that i want is brown and gray. could you help me? i also still very new in javascript
Your tutorials are amazing! great job for the community
Thanks a lot!
Yeah really worth watching tutorials!!
Indeed! You’re doing a nice job covering this topics! Thanks for that!
Thanks and you welcome!!
You are creating amazing stuff.
Thank you!!!
It is amazing to watch these. Learned a lot !
Thanks for watching...
Keep going bro i wish you all the best 😊 we need more and more videos, thank you so much ❤
Thank you... I will try my best... Just stay tuned.
is there any documentation explains all of this method ?!
i can't find any of them explaining this most of what you said i didnt understand !
thank you for your work bro
Sure,,, I think this is a nice topic to try..
Thanks for this amazing tutorial, i just have one question, and it's:
instead of extending FieldChar I extend TextField and it throws an error:
he following error occurred in onMounted: "Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'."
I am trying to apply a mask for the vat field in the res.patner. when the user types. keyup event. can you help me ?
Great job, Keep it up...
Hi Sir, How can I inherit the log notes under helpdesk ticket module?
thanks for the good tutorial, can you show us in a tutorial how the unit test in js works? Thanks
Thanks for this amazing tutorial, i just have one question, and it's:
When should i use a getter method in my component instead an state (useState)?
Because i saw that the widgets that we created are able to react to the changes even if the data is not an state...
What would you recommend?
Thanks again for share your knowledge with us!
Hi, you can use both when rendering the data to the component's template. But when dealing with asynchronous calls, and updating data, the getter method will not be possible. So use the getter method only in rendering data to the template.
Is the range field compatible with Odoo 17?
Thanks, is there a specific video for publicWidget?
Please check my Odoo theme tutorial on dynamic widgets. Unfortunately, the public widget doesn't use yet Owl components
ua-cam.com/video/KHlLJEfQ9fQ/v-deo.html
@@ajscriptmedia thank you
sir i want to make my whole form
readonly uing js when stage is cancelled can you tell me how to achieve this
where did you learn this advanced owl dev ?
Hi, check the basic of OWL here www.odoo.com/documentation/16.0/developer/tutorials/discover_js_framework/01_owl_components.html. Some of it I learned by checking several code and how it works.
hi very helpfull tutos i salut you for that. Ihave a question how can i use external libraries like filepond in my owl views or widgets
Yes, you can. You need to use loadJs. This is how they use to load charts (ChartJS) in Odoo. More info in this link www.odoo.com/documentation/16.0/developer/tutorials/discover_js_framework/02_web_framework.html#display-a-pie-chart
Good video channel on OWL, do you think you can do more, especially on how to manage one2many many2one fields ... on a full custom view ? Keep it up 👌
Thank you. Sure.. I will check this out 👍👍
email field inheritance not working in odoo17
Sorry, Odoo 17 might change some code for this field.
Could you please zoom in on the screen more in your future videos?
Thank you very much! 😍🤩🤩🤩
Yes sure. And thanks for your advice.
Great video! Im looking to create a custom view type to display Owl Widgets, but the official documentation is super outdated, im trying to display models graphically in a canvas, so i need a new view type from scratch, could you make a video about it? Thanks!
Yes for sure. Just stay tuned..
Can we inherit the date field widget and load another date picker instead of the odoo default date picker if yes how?
Yes, it's possible. In this tutorial, we have inherited the email field widget. You can do the same in the datetime picker as well github.com/odoo/odoo/tree/16.0/addons/web/static/src/core/datepicker.
In this tutorial, I also discussed how to create a new field widget from scratch like the range field. Before you create a new datetime picker, check first if you're able to get the same functionalities from the default one by inheriting it.
Error when running on V.17: TypeError: Cannot read properties of undefined (reading 'name')
i have error when coding your example
how to fix it ?
thanks
In Odoo 17, they changed how to access the record. It will be under "props.record.data".
props.record.data[props.name]
github.com/odoo/odoo/blob/17.0/addons/web/static/src/views/fields/email/email_field.xml#L7
bạn fix dc lỗi này chưa? Tôi dùng bản 18 cũng bị
Chỗ add vào category sẽ là:
registry.category('fields').add('username', {
component: UsernameField
});
@@congthanghoang5158 UsernameField.template = "owl.UsernameField"
UsernameField.supportedTypes = ["char"]
UsernameField.components = { CharField }
registry.category("fields").add("username", UsernameField)
thử kiểu này đi bạn
@@congthanghoang5158
UsernameField.supportedTypes = ["char"]
UsernameField.components = { CharField }
registry.category("fields").add("username", UsernameField)
thử xem ông
hi there is a great video and i follow your steps to inherit the color_picker widget and i works! but i didnt manage is i can not add new color that i want is brown and gray. could you help me? i also still very new in javascript
Can you make this video in odoo17 version. It will be more helpful too. Thanks advance 👍.
👍🏻
Dear sir, can we do this with a date field and load an islamic date picker instead of the odoo defalt date picker?