3. How To Define Models In Odoo 15 || Creating Database Tables In Odoo

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

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

  • @elielmurmu
    @elielmurmu 2 ปีที่แล้ว +6

    Thank you Sir! Another masterpiece video on odoo!

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

      Thanks for the support and love brother ❤️❤️❤️❤️❤️

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

    wow you are a really master teaching , thanks so much!!!!

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

      Glad it was helpful!

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

    It's Very Good video.
    Thank for your continues generous!

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

    Thank you. Your videos are very useful to me.

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

      Glad to hear it and thanks for the support

  • @lionelc.702
    @lionelc.702 2 ปีที่แล้ว +1

    Thank you for your great videos !
    A question: I see that it is possible to modify a template directly from the odoo screen. 'Add a line ...'
    Is there a difference between fields created by the code or those created by the user interface? What method do you recommend?

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

      create from code will be more stable, and it can be used across multiple db

    • @lionelc.702
      @lionelc.702 2 ปีที่แล้ว +1

      @@OdooMates Does this mean that the creation of models or email template by the user interface saves the information only in the database? and therefore in the active db only ?

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

      Yes only the current db

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

    what an amazing video, thanks alot for your hard work.
    Could you please upload a video about configure odoo with pycharm on windows for development.

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

      ❤️ thanks for the appreciation ❤️❤️

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

      @@OdooMates
      hello, how can I insert image to qweb report using the tag?
      bellow is my code :
      note: I want a static image which is different than the logo image

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

    Thank you, so nicely explained

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

      glad to hear it and thanks for the support

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

    Thanks!

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

    Please in odoo 15 is it possible de defin price sel and cost by serial number of article? By default odoo 15 permit define one price per article
    And how I can create costume print button to print caractéristics of project

  • @nguyenminhquan5056
    @nguyenminhquan5056 7 หลายเดือนก่อน

    Hello please help me, I created a model but in the postgres database there is no model data when running on the website the models are not displayed, now how to fix it?

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

    @Odoo Mates Please help me to fix this issue. table is not create in the model

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

    @OdooMates where should i found the files of this project?

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

      github.com/odoomates/odooapps/tree/15.0/om_hospital

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

      @@OdooMates Thank you Sir

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

    Based

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

    hi odoo Mates i really need your help i have a module in odoo 14 that inherit account.move and account.move.line what i am trying to do is to add new field in the invoice lines i did this successfully
    and the subtotal is calculated base on the new fields
    for example : subtotal = price_unit * quantity * date_deffrence
    date_deffrence is the new field and it is integer feld
    the problem is the sub total is not changeing in my code can you pleas tell me how can i acheve this thanks

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

      Did you adjusted the computation of the sub total field?

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

      @@OdooMates i have make new def in the new module

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

      There will be an existing compute field for this, you have to inherit and make changes there

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

      @@OdooMates ok i know how to inherit class but how to inherit a compute field or method

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

      @@mohamedalobaid2724 see: th-cam.com/video/UeMREPyUcRM/w-d-xo.html

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

    Hello,
    I am beginner. I followed all your tutorial. I am using PyCharm on Windows11
    Table ‘hospital patient’ in database is not created.
    from odoo import api, fields, models
    class HospitalPatient(models.Model):
    _name = 'hospital.patient' # in this line I have: override attribute in base model
    _description = 'Hospital Patient' # in this line I have: override attribute in base model
    name = fields.Char(string='Name')
    age = fields.Integer(string='Age')
    gender = fields.Selection([('male', 'Male'), ('female', 'Female')], string='Gender')
    How to solve this problem?

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

      imported the file in the init file ?

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

      @@OdooMates yes
      file name: __init__.py
      from . import patient

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

      @@OdooMates Number Nr.1 and Nr. 2 tutorials working but I stuck in Nr.3

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

      @@OdooMates OK. Now all is ok. Why sometimes very long response for the database (about one day.). I am doing rerun in PyCharm, refresh in google Chome, and Update Apps List and Updates in Odoo, but sometimes no effect. Some times in some seconds.

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

      Preffered environment for odoo in ubuntu

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

    table doesnt created in database any help?

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

    i am beginner trying to show field "name" but i can't show in odoo views and postgres
    any help ?

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

      Are you able to add models to the db ?

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

      Make sure file is imported in init and service is restarted

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

      I show othe fields like age and gender but name not showing 🤔

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

      How you defined your form view

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

    hello odoo mates i just have a problem in pychram when iam trying this line of code "from odoo import api, fields, models " it gives me an error "Cannot find reference 'api,fields,models' can you help me please

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

      I face the same error , did you find the answer?

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

      @@salmasameh5071 did you solve this issue

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

    if you cannot see your model, make sure that all the files are named correctly, all directories, all imports, and mostly important.... 😑restart the odoo service.