How to Remove Create and Edit Option From Many2one Field Odoo

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • How to remove the create and edit option from a Many2one field in Odoo. Steps to remove create, create and edit and open option from the many2one field in Odoo.
    Email : odoomates@gmail.com

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

  • @jamescs50
    @jamescs50 3 года назад +1

    thank you. The crickets in the background are very calming

  • @smsmzean759
    @smsmzean759 5 месяцев назад +1

    ty you man

  • @mudassarali9582
    @mudassarali9582 3 года назад +1

    is this attribute "option" is usable in one2many filed also?

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

      cannot be used with m2m and o2m fields

  • @palanikumar8023
    @palanikumar8023 4 года назад

    is there any possibility to remove create and cancel button that is being displayed in popup in many2many field??

  • @amalasokan7302
    @amalasokan7302 3 года назад +1

    Do you have a video for Many2one ?

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

      About how to create many2one field ?

    • @amalasokan7302
      @amalasokan7302 3 года назад +1

      @@OdooMates yes

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

      @@amalasokan7302 Not yet, we missed to create one of the same

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

      @@amalasokan7302 But you can add a many2one field easily like this:
      field_name = fields.Many2one('relational_model_name', string='Purchase Order Line')

  • @muhammadyaseen5198
    @muhammadyaseen5198 4 года назад

    Hello, How can we hide a selected value from Many2one field. So that when i select a value from many2one field , next time this should not be in that list?

    • @rev-comentarioscrudos2592
      @rev-comentarioscrudos2592 3 года назад

      You need to create a field "is_selected" = False in the domain,
      this field needs to be activated with @onchange when you press on "partner/parent_id" name