68. How To Inherit Model In Odoo || Odoo Inheritance || Odoo 15 Tutorials || Odoo 15 Development

Sdílet
Vložit
  • čas přidán 14. 04. 2022
  • How to inherit model in Odoo. Odoo inheritance. Steps to inherit model in odoo. Odoo 15 development tutorials. Odoo 15 tutorials. Odoo 15 tutorial. Build module in Odoo 15. How to inherit an existing model in Odoo. Steps to inherit an existing model in Odoo. How to inherit table in Odoo
    Odoo 15 Playlist: • How To Configure Odoo1...
    Website: www.odoomates.tech/
    Instgram: / odoomates
    Github: github.com/odoomates
    Email : odoomates@gmail.com
    Facebook: / odoomate
    Twitter: / odoomates
    Support Us in Ko Fi : ko-fi.com/odoomates
  • Věda a technologie

Komentáře • 16

  • @Nicky_McKenzie
    @Nicky_McKenzie Před rokem +1

    Hi Odoo Mate, is it possible to inherit the fields from two models into one model only using the Odoo UI? I have fields from two modules I want to report on but I'm not confident with Python

  • @ProdixTn
    @ProdixTn Před 2 lety

    hey im following ur channel ,, i have a question i want to inherit sale.ordre for exemple in my views in a submenu in my module how can i do that ,, all the course inherit in the sales module so can they add a field into it but i want to bring that views into my sub menu in my module i need a course for that please
    ^^ thanks in advance !!

  • @Phoenixflytojiaqi
    @Phoenixflytojiaqi Před rokem +1

    Hi Odoo Mates, thank you for your videos. They are really helpful. I have a question for you. In the om_hospital module, you always assign security access whenever you create a new model. However, you skipped this part, and it seems working fine. Could you explain that please

    • @OdooMates
      @OdooMates  Před rokem

      may be working in super user mode or manually we may have added it later ? not sure, but for new models we have to define the access rights, there is not other tricks used brother

  • @RuslanSkiraUkraine
    @RuslanSkiraUkraine Před 2 lety +1

    Have a question. Maybe you help me.
    I need to inherit data from sales.report and purchase.report. Combine them in my custom graph view in my module.
    And I do not understand from what step should I start.

    • @OdooMates
      @OdooMates  Před 2 lety +1

      Sorry for the delay, as you asked in the other comment, i hope the view using query will help, see an example of creating a model with data from sales and pos: czcams.com/video/_KIsGo4sttQ/video.html

  • @anasssabri3255
    @anasssabri3255 Před 2 lety +1

    Thank you so much

    • @OdooMates
      @OdooMates  Před 2 lety +1

      Welcome brother ❤️❤️

    • @anasssabri3255
      @anasssabri3255 Před 2 lety +1

      @@OdooMates please is it possible to inherit just a single field in a model .. not the entire model

    • @OdooMates
      @OdooMates  Před 2 lety +1

      Can you give little more info ? Like what you are looking to do

    • @anasssabri3255
      @anasssabri3255 Před 2 lety

      @@OdooMates yes of course, I want to take a field of a record from a model and put it in another model

  • @NiswatusSyuyukhoh
    @NiswatusSyuyukhoh Před 2 lety +1

    how to change tracing log to the field in the inherit model without change the other properties that the field have?

    • @OdooMates
      @OdooMates  Před 2 lety

      just add field in inherited mode and add or change the required properties,
      sample:
      inherit sale.order then,
      partner_id = fields.Many2one(required=False)

    • @NiswatusSyuyukhoh
      @NiswatusSyuyukhoh Před 2 lety

      Thank you.
      It is not changing other properties like readonly, compute data, default, like when I use it at odoo 11, it replace the whole properties. So I must also copy all properties.
      Thank you

    • @OdooMates
      @OdooMates  Před 2 lety

      It is working in odoo10, so definitely it has to work in 11 also, can I see the code that you have added

    • @NiswatusSyuyukhoh
      @NiswatusSyuyukhoh Před 2 lety

      @@OdooMates oh really? Maybe because i change the compute data?
      Oh never mind.
      Now everything is alright. It is okay.
      Thank you