8.How To Inherit And Add New Fields To Existing Views || Inherit Form View || Inherit Tree View

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 155

  • @SuperMightyQuin
    @SuperMightyQuin 2 ปีที่แล้ว +3

    Loving your videos, it's valuable to see how you deal with bugs and solve them instead of just skipping over it. Really am enjoying watching your channel! 👍

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      thanks for the support and love

  • @temphelp
    @temphelp 3 ปีที่แล้ว +39

    hi.Thanks for video but.... if you change positiom ==> position
    it will be work

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +5

      Thanks for pointing it brother ;)

    • @1floggedhorse
      @1floggedhorse 3 ปีที่แล้ว +1

      ... worked for me in Odoo 12.
      ... ...But its nice to know its not just me :)

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      🤣but we are not able to understand it at that time

  • @FarisFathurrahman
    @FarisFathurrahman 3 ปีที่แล้ว +8

    ah, i noticed the typo of "positiom" at timestamp of 19:40
    i hate that moment too when i did that small one letter typo in my *.xml view file because i could easily overlook it! 🤣

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      A small typo can trouble as a lot

  • @C0reid
    @C0reid 3 ปีที่แล้ว +2

    I think it's great that you can see how you find or search for errors

  • @sarim6424
    @sarim6424 3 ปีที่แล้ว +1

    Thanks a lot.... before watching this video I was wondering what xpath is and now I have learnt.. Great content.. Keep it up...

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Thanks for the nice comment and for the support

    • @usvameria1870
      @usvameria1870 3 ปีที่แล้ว +1

      is there any good courses you know?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@usvameria1870 not satisfied with our course/videos ?

  • @ridhatlati1310
    @ridhatlati1310 2 ปีที่แล้ว +1

    Very clear and very helpful, thank you very much

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      glad it helped

  • @BMESSIASMONTEIRO
    @BMESSIASMONTEIRO 3 ปีที่แล้ว +3

    Hi, I found out the same typo error..about the positiom..to position..cheers from Brazil!!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      Hi, solved or ?

  • @rishalchand6935
    @rishalchand6935 3 ปีที่แล้ว +1

    I have a query, why is it required to work on custom module. Will there be any issue if we normal inbuilt module to make changes, for example, CRM module.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      when we work on custom module, the point first we have to think is that, whether the customization is really required ? check whether the requirement can be handled with default options ? if not possible only start customization. And make sure that the default flow is not altered

  • @renaacer
    @renaacer 2 ปีที่แล้ว +1

    Hey Odoo Mates, can you help me? How can i do invisible or mandatory the field add?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      you mean how to inherit and make field required or invisible ?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      th-cam.com/video/ZrCN3L0oAKE/w-d-xo.html

    • @renaacer
      @renaacer 2 ปีที่แล้ว +1

      @@OdooMates yes, depend of value of other field

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Can you check the shared link and let me know if it helps

    • @renaacer
      @renaacer 2 ปีที่แล้ว +1

      @@OdooMates yes, perfect, just what I needed. Thanksss

  • @RuslanSkiraUkraine
    @RuslanSkiraUkraine 2 ปีที่แล้ว +1

    Thank you that you show how you handle the errors during development it is priceless.
    But I thought we will inherit what we had already built the view. So it is showing that we could update the view in the Sales module from the custom module? I'm right?

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      ❤️ yes we can inherit the views from any modules and apply our changes

  • @reditaga6795
    @reditaga6795 2 ปีที่แล้ว +1

    Hi, i tried to inherit a tree view but i doesnt show up, i dont get an error either

    products.tree
    product.template

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      resolved ?

    • @reditaga6795
      @reditaga6795 2 ปีที่แล้ว

      @@OdooMates Nope :(

    • @reditaga6795
      @reditaga6795 2 ปีที่แล้ว

      @@OdooMates I have all three views kanban,tree,form declared in my action menu. When i put my view mode on kanban,tree it shows the 2 views its ok until now. When i change my view mode to only kanban,tree,form it shows only the form view. How can i fix ?

  • @vinaydavda4813
    @vinaydavda4813 3 ปีที่แล้ว

    Thanks, You Saved my Day and Job ! : )

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Glad I could help!

  • @heshamosama1016
    @heshamosama1016 3 ปีที่แล้ว +1

    Can i modify existing view but with a new custom model instead of the predefined one ?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      its possible, do we really have such a cases ? in such cases better to create new views and new models

  • @RizkysWebdev
    @RizkysWebdev 11 หลายเดือนก่อน +1

    Thanks bro. you solve my problem

    • @OdooMates
      @OdooMates  11 หลายเดือนก่อน

      Glad to hear that

  • @anjirbabi9987
    @anjirbabi9987 3 ปีที่แล้ว +1

    why my fields in minutes 6:30 do not appear?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      can i see the added code

    • @anjirbabi9987
      @anjirbabi9987 3 ปีที่แล้ว +1

      @@OdooMates thanks sir it's already done

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@anjirbabi9987 good

  • @zorojuro5106
    @zorojuro5106 3 ปีที่แล้ว +1

    another great tutorial thank you so much for explaning like this, I am really glad that you explain every single point. bless you

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      happy to hear such feedbacks

  • @san1ty270
    @san1ty270 3 ปีที่แล้ว +1

    Hello sir can you make a detailed step by step guide for how to set up multitenant configuration on odoo for multiple domains in same server on ubuntu 18.04

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Will this help?
      th-cam.com/video/l4jpz_bDI0Q/w-d-xo.html

  • @sheiladikshit5110
    @sheiladikshit5110 ปีที่แล้ว +1

    excellent tutorial, thank you so much!

    • @OdooMates
      @OdooMates  ปีที่แล้ว

      thanks for all the support and love

  • @JQS37Developer
    @JQS37Developer ปีที่แล้ว

    hello odoomates do you have an example but in the order line where I can place several products and if I place a new field for each product as for example some discount coupons I can modify the subtotal and at the same time the total? Thanks you are the best Friend

  • @chintspanchal
    @chintspanchal 3 ปีที่แล้ว +1

    Hello there,
    How can I add relational field like one2many or many2many in inherited existing model???
    Thanks you.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      same as the above step as shown in the video. For adding one2many field, see: th-cam.com/video/_O_tNBdg3HQ/w-d-xo.html

  • @infoibh5939
    @infoibh5939 2 ปีที่แล้ว +1

    Hi, Thanks for the videos , the issue that you have faced because you have spill "position" wrong. in ur code "positiom"

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      yes, glad that you traced it

  • @Kanys2010
    @Kanys2010 3 ปีที่แล้ว +1

    Hi,
    How to I make the same Sales description(Custom field in sales) appear on the Invoice. When I call the field in the invoice template I get an error

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      you have to inherit and add fields in both model first. Then you have to pass value from sales to invoice. To pass the value from sales to invoice, see this function: _prepare_invoice_line

    • @Kanys2010
      @Kanys2010 3 ปีที่แล้ว +1

      @@OdooMates Thank you for your response. I added both the field in sale.order and account.move but the custom field in invoice was not getting updated with values entered on the Sales Order.

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@Kanys2010 did you pass values from sale order to invoice ? if not pass it through _prepare_invoice_line function in sale order model

    • @Kanys2010
      @Kanys2010 3 ปีที่แล้ว

      @@OdooMates Thank you, it worked out just fine

  • @sabithamanthati5466
    @sabithamanthati5466 3 ปีที่แล้ว +1

    hi sir ,when i try to inherit sale.order module add one field then that field not added to the model,when try to upgrade the module shows like field does not exist error, can you plz help me sir

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Can i see the code that you have tried

  • @meriemgomri9534
    @meriemgomri9534 2 ปีที่แล้ว

    Hello, why when the Sale description field is added the GST Treatment field is removed from the page?

  • @kenzasouabni
    @kenzasouabni 2 ปีที่แล้ว +1

    I did a class who herited from another class in models but i struggle with inheritance views

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Let us know what issue you face

  • @lenninlawliett
    @lenninlawliett 3 ปีที่แล้ว +1

    Could you do tutorials inheriting the e-learning module?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      can you little more specific ? like do you need to inherit a model or a view or website side

    • @lenninlawliett
      @lenninlawliett 3 ปีที่แล้ว

      @@OdooMates for example, add a feature in e-learning where some courses are disabled and can be unlocked by completing others. I would like to learn how to make these kinds of modifications! : D

  • @pranjalgoyal6747
    @pranjalgoyal6747 3 ปีที่แล้ว

    In odoo13, after adding the field the label is shown, it is just covering the whole field. Any idea? regarding this issue??

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      is label is too big or label itself is not visible ?

  • @skhirimhamed4355
    @skhirimhamed4355 2 ปีที่แล้ว +1

    It's sample clear et very interiting cours

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Glad to hear that

  • @serhi03944
    @serhi03944 2 ปีที่แล้ว +1

    it wasn't a bug, just a simple typo, "positioM" instead of "position"

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Glad you traced it

  • @azteccherry5673
    @azteccherry5673 3 ปีที่แล้ว +1

    Hey can u tell me how to make record rules some modul by chart of accounts approval access and access ?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      not clearly understand what you looks for? can you elaborate or refer this video about how security is handled in odoo and see.
      th-cam.com/video/mzg3EGD_6Gw/w-d-xo.html

  • @hamoudman423
    @hamoudman423 3 ปีที่แล้ว +1

    Field "sale_description" does not exist in model "sale.order"
    I keep getting this problem even though I am sure there is no error syntax in my files the error won't go.
    plz help me!

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Any Custom codes or any changes made recently ?

    • @hamoudman423
      @hamoudman423 3 ปีที่แล้ว

      @@OdooMates Yes the last day I encountered a problem during the security access and all that stuff I ended up deleting the table which is called ir.attachment or something like that

    • @hamoudman423
      @hamoudman423 3 ปีที่แล้ว

      and by doing that the problem has gone and everything was going smoothly till now

    • @hamoudman423
      @hamoudman423 3 ปีที่แล้ว +1

      @@OdooMates what should I do?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@hamoudman423 activate developer mode and navigate to settings -> technical -> user interface-> views and search for sale_description inside view architecture and delete the view

  • @sajitmanandhar3161
    @sajitmanandhar3161 3 ปีที่แล้ว +1

    no external-id in my edit form view whats happening i could add that

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      that means, there is no defined views for the model

  • @NMNaufaldo
    @NMNaufaldo 3 ปีที่แล้ว +1

    This is how debugging in real world look like :D

  • @1floggedhorse
    @1floggedhorse 3 ปีที่แล้ว

    Not that I know anything .... but could the problem have been related to "sequences" I noticed you had 4 inherited views each at sequence 16 ... each fighting for position. Maybe?

    • @1floggedhorse
      @1floggedhorse 3 ปีที่แล้ว +1

      Oh! Great tutorials by the way ... many thanks

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      @@1floggedhorse might be brother :) thanks for the support too

  • @malikkamil6596
    @malikkamil6596 2 ปีที่แล้ว +1

    I want to upload my app to odoo appstore but my app have dependent module how can i upload all module in one app help plz

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      add all modules to your repository, make sure you set dependencies correctly in manifest, scan the repo to apps store, thats it

  • @timothywasike354
    @timothywasike354 ปีที่แล้ว +1

    change positiom to position this works

    • @OdooMates
      @OdooMates  ปีที่แล้ว +1

      thanks brother for pointing it out

  • @dexter7002
    @dexter7002 3 ปีที่แล้ว +1

    thank you very much.

  • @eduardobolivar7465
    @eduardobolivar7465 2 ปีที่แล้ว

    Hi, thanks for the videos, how can I edit javascript of ecommerce??

  • @vajidap3903
    @vajidap3903 2 ปีที่แล้ว +1

    how to create a record in another model ? Can you upload a video

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      th-cam.com/video/Jssb15ADeyg/w-d-xo.html

  • @Антон-е7щ4н
    @Антон-е7щ4н 3 ปีที่แล้ว

    Could you please explain how to make a selection field with data from the table in DB, that we have created in our module instead of the Sales description field from your example?

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      i think you looks for Many2one field ?

    • @Антон-е7щ4н
      @Антон-е7щ4н 3 ปีที่แล้ว +1

      ​@@OdooMates I don't know exactly ) I'm trying to make two field: first with product manufactures, and second field is models of products, that is related on selected manufacturer. Thanks to your videos I made my model, fields in UI and now i don't know how to fill them with information )

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      @@Антон-е7щ4н See: th-cam.com/video/3PWIQTNwIeU/w-d-xo.html

  • @pembelajaranonlinepenjaske6418
    @pembelajaranonlinepenjaske6418 ปีที่แล้ว

    why in my case, i should update the __init__ file and security file everytime i make new module

  • @AciIntern
    @AciIntern ปีที่แล้ว

    can I ask why it has wiggle on your import I thought it`s an error

  • @ngoanhdung2665
    @ngoanhdung2665 3 ปีที่แล้ว +1

    positiom -> position brother

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      i missed to spot it out, anyway thanks for pointing it our brother

  • @omarimad8326
    @omarimad8326 3 ปีที่แล้ว +1

    First like

  • @otekinalp
    @otekinalp 3 ปีที่แล้ว +1

    Thanks for the videos, they are really useful. But I hope you eventually found out how to spell position :) LoL

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      thanks, yes i am trying to improve myself

  • @nadeemkazi2092
    @nadeemkazi2092 3 ปีที่แล้ว +1

    Second like

  • @ricardojesusleguizamonacos5267
    @ricardojesusleguizamonacos5267 3 ปีที่แล้ว +1

    "positiom" was the mistake

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      thanks for pointing it out

  • @mehdishad-z8o
    @mehdishad-z8o 9 หลายเดือนก่อน

    Thanks

    • @OdooMates
      @OdooMates  9 หลายเดือนก่อน

      Welcome

  • @usamaali1110
    @usamaali1110 ปีที่แล้ว +1

    you write positiom instead of position,thats why you facing an error.

    • @OdooMates
      @OdooMates  ปีที่แล้ว +1

      yes brother, thanks for finding it

  • @msrkuet2053
    @msrkuet2053 3 ปีที่แล้ว +1

    position spelling was wrong. it was positiom

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว

      Yes brother, thanks for pointing it out

  • @rishig4503
    @rishig4503 2 ปีที่แล้ว +1

    miss type (position)

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      Yes brother, glad that you spotted it ❤️❤️

  • @mohamedsobh2626
    @mohamedsobh2626 2 ปีที่แล้ว

    missing coma in manifest

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      can you spot us the trime frame brother

  • @futhedude4848
    @futhedude4848 2 ปีที่แล้ว +1

    I'm keep telling you that it's "position", not "positiom", but you are not listening .. LOL (XD)
    Just kiding, good course, thanks.

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      Ha ha ha, funny side of it, thanks brother

  • @fauzgabriel8532
    @fauzgabriel8532 2 ปีที่แล้ว +1

    cus typo on pisition

  • @parthcodetrade4875
    @parthcodetrade4875 2 ปีที่แล้ว +1

    edit view : form -> inherited Views ->

    work for me

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      thanks for sharing

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      @Akbar Ali yes brother, i missed to get it during the video recording time. Glad that you spotted it

  • @Hahayougotbann
    @Hahayougotbann 3 ปีที่แล้ว +1

    What exactly is the purpose of what we did here ? I am sorry I don't understand why we had to do it through om_hospital. Sorry if the question is stupid, I don't understand the exact goal of what we did :)

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      This is Just to show the functionality of how to extend/inherit an existing model from odoo code inside custom module

    • @Hahayougotbann
      @Hahayougotbann 3 ปีที่แล้ว +1

      @@OdooMates Hey man, I just wanted to thank you for replying so quickly to these videos, even though they are several months old now. You guys are great and your videos help me a lot. Thank you

    • @OdooMates
      @OdooMates  3 ปีที่แล้ว +1

      @@Hahayougotbann always happy to help you brother

  • @Hot-Pepsi
    @Hot-Pepsi 2 ปีที่แล้ว +1

    position not positiom

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว

      Glad that you spotted it

  • @asmatwazir9164
    @asmatwazir9164 2 ปีที่แล้ว +1

    Come on, sir! How can you spell position wrong? 🤣🤣🤣

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      It hard to trace it some times, mainly while recording the video 😜

    • @asmatwazir9164
      @asmatwazir9164 2 ปีที่แล้ว +1

      @@OdooMates Right sir. 😂😂

    • @OdooMates
      @OdooMates  2 ปีที่แล้ว +1

      Anyway glad that you tracked it ❤️