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

Поделиться
HTML-код
  • Опубликовано: 14 апр 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
  • НаукаНаука

Комментарии • 16

  • @Nicky_McKenzie
    @Nicky_McKenzie Год назад +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 2 года назад

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

  • @RuslanSkiraUkraine
    @RuslanSkiraUkraine 2 года назад +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  2 года назад +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: ruclips.net/video/_KIsGo4sttQ/видео.html

  • @Phoenixflytojiaqi
    @Phoenixflytojiaqi Год назад +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  Год назад

      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

  • @anasssabri3255
    @anasssabri3255 2 года назад +1

    Thank you so much

    • @OdooMates
      @OdooMates  2 года назад +1

      Welcome brother ❤️❤️

    • @anasssabri3255
      @anasssabri3255 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад +1

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

    • @anasssabri3255
      @anasssabri3255 2 года назад

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

  • @NiswatusSyuyukhoh
    @NiswatusSyuyukhoh 2 года назад +1

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

    • @OdooMates
      @OdooMates  2 года назад

      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 2 года назад

      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  2 года назад

      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 2 года назад

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