OWL Framework - Create and Inherit Field Widgets

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 53

  • @xeviOdoo
    @xeviOdoo Рік тому +1

    Your tutorials are amazing! great job for the community

  • @kleiverperez5455
    @kleiverperez5455 Рік тому

    Indeed! You’re doing a nice job covering this topics! Thanks for that!

  • @english_litrature
    @english_litrature Рік тому +1

    You are creating amazing stuff.

  • @NisargParekh-l1w
    @NisargParekh-l1w Рік тому

    It is amazing to watch these. Learned a lot !

  • @hamidabdalla5214
    @hamidabdalla5214 Рік тому

    Keep going bro i wish you all the best 😊 we need more and more videos, thank you so much ❤

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      Thank you... I will try my best... Just stay tuned.

  • @ahmedbarakat54
    @ahmedbarakat54 Рік тому

    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 !

  • @dzorwil150
    @dzorwil150 Рік тому +1

    thank you for your work bro

    • @ajscriptmedia
      @ajscriptmedia  Рік тому +1

      Sure,,, I think this is a nice topic to try..

  • @trungvo7052
    @trungvo7052 5 місяців тому

    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'."

  • @marcelomarcon323
    @marcelomarcon323 5 місяців тому

    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 ?

  • @tahirnoor113
    @tahirnoor113 Рік тому

    Great job, Keep it up...

  • @PhoenixLangaman
    @PhoenixLangaman Рік тому

    Hi Sir, How can I inherit the log notes under helpdesk ticket module?

  • @roronoazorro-o5s
    @roronoazorro-o5s Рік тому

    thanks for the good tutorial, can you show us in a tutorial how the unit test in js works? Thanks

  • @linkssj1413
    @linkssj1413 11 місяців тому

    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!

    • @ajscriptmedia
      @ajscriptmedia  11 місяців тому

      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.

  • @kevinlall7058
    @kevinlall7058 Рік тому

    Is the range field compatible with Odoo 17?

  • @harifetraandrianasolo2522
    @harifetraandrianasolo2522 Рік тому +1

    Thanks, is there a specific video for publicWidget?

    • @ajscriptmedia
      @ajscriptmedia  Рік тому +1

      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

    • @harifetraandrianasolo2522
      @harifetraandrianasolo2522 Рік тому

      @@ajscriptmedia thank you

  • @burnaviour-l4r
    @burnaviour-l4r Рік тому

    sir i want to make my whole form
    readonly uing js when stage is cancelled can you tell me how to achieve this

  • @ahamster3000
    @ahamster3000 Рік тому +1

    where did you learn this advanced owl dev ?

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      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.

  • @messaoudimohammed8021
    @messaoudimohammed8021 Рік тому

    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

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      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

  • @veritosartos4512
    @veritosartos4512 Рік тому

    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 👌

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      Thank you. Sure.. I will check this out 👍👍

  • @burnaviour-l4r
    @burnaviour-l4r 9 місяців тому +1

    email field inheritance not working in odoo17

    • @ajscriptmedia
      @ajscriptmedia  7 місяців тому

      Sorry, Odoo 17 might change some code for this field.

  • @abdallahsabeel
    @abdallahsabeel Рік тому +1

    Could you please zoom in on the screen more in your future videos?
    Thank you very much! 😍🤩🤩🤩

  • @alejandroarmas4654
    @alejandroarmas4654 Рік тому

    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!

  • @SafiullahDanishjo-ls5io
    @SafiullahDanishjo-ls5io Рік тому

    Can we inherit the date field widget and load another date picker instead of the odoo default date picker if yes how?

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      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.

    • @ajscriptmedia
      @ajscriptmedia  Рік тому

      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.

  • @luutunglinh9060
    @luutunglinh9060 7 місяців тому +1

    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

    • @ajscriptmedia
      @ajscriptmedia  6 місяців тому +1

      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

    • @congthanghoang5158
      @congthanghoang5158 2 дні тому

      bạn fix dc lỗi này chưa? Tôi dùng bản 18 cũng bị

    • @congthanghoang5158
      @congthanghoang5158 2 дні тому

      Chỗ add vào category sẽ là:
      registry.category('fields').add('username', {
      component: UsernameField
      });

    • @luutunglinh9060
      @luutunglinh9060 2 дні тому

      @@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

    • @luutunglinh9060
      @luutunglinh9060 2 дні тому

      ​@@congthanghoang5158
      UsernameField.supportedTypes = ["char"]
      UsernameField.components = { CharField }
      registry.category("fields").add("username", UsernameField)
      thử xem ông

  • @ihzaputra8054
    @ihzaputra8054 9 місяців тому

    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

  • @kdeepak4446
    @kdeepak4446 Рік тому

    Can you make this video in odoo17 version. It will be more helpful too. Thanks advance 👍.

  • @muhammad_awais_ijaz
    @muhammad_awais_ijaz Рік тому +1

    👍🏻

  • @tinttint2148
    @tinttint2148 Рік тому

    Dear sir, can we do this with a date field and load an islamic date picker instead of the odoo defalt date picker?