One2many Field - Editable Bottom and Top

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

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

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

    Excellent work, you really helped me, greetings from Mexico!

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

      Thanks for all the support

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

    Congratulations! You explain deeply in detail. Thank you!!!

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

      You're very welcome!

  • @dennydand
    @dennydand Год назад

    Hello, is it possible to use domain for one2many field in a tree tag inside form in Odoo?

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

    hi, can we achieve Maser-Detail working view which should based on 2 Models, first portion Master and below the second portion as Detail (tree/grid view but editable if possible), when user create a Master record in its portion, the Detail portion save all records with Master model's ID (like i can say Primary Key which is used as Foreign Key in Detail model), when user select a record in Master the related Detail should appear in Detail portion. I can also Edit row(s) in Detail portion ( select a record from its tree/grid view portion and this will open Form to edit). as mentioned earlier my background is Oracle Forms & Apex. be blessed.

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

      Writing to the one2many line in the onchange of the main model will do this?
      See: ruclips.net/video/_O_tNBdg3HQ/видео.html

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

      ruclips.net/video/LE7E2O4lBrQ/видео.html

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

      @@OdooMates thanks, will check how it works. be blessed :)

  • @mudassiralizaidi2417
    @mudassiralizaidi2417 4 года назад +1

    Is there any full series like a course for biggners ..because i want to start it from scratch and I'm very new to odoo and not finding any good material plz help me

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

      ruclips.net/video/BDepk0LhVuI/видео.html

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

      Watch this video playlist one by one: ruclips.net/video/BDepk0LhVuI/видео.html

    • @mudassiralizaidi2417
      @mudassiralizaidi2417 4 года назад +1

      Thank u mate ❤

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

      Watch like and support :) if you have any queries, don't hesitate to comment it out

  • @bobywyjaya3726
    @bobywyjaya3726 4 года назад +1

    Hallo.. do you know how to get the value of the first line in one2many field?

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

      self.one2many_field_name[0]

    • @bobywyjaya3726
      @bobywyjaya3726 4 года назад +1

      @@OdooMates its pop up an error when i added more lines "raise ValueError("Expected singleton: %s" % self)"

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

      Can you show the code that you have added

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

      @@OdooMates
      @api.depends('certificate_of_competency_ids')
      def _get_licence(self):
      for rec in self:
      rec.licence = rec.certificate_of_competency_ids.certificate_name_competency.name[0]
      when i only use the code rec.licence = rec.certificate_of_competency_ids[0] it show the (id) not the name

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

      @@bobywyjaya3726 rec.certificate_of_competency_ids[0].name

  • @nassirrachid232
    @nassirrachid232 4 года назад +1

    We need more js Odoo exemple 🙏🙏

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

      ruclips.net/video/VuUMvzycXQY/видео.html

  • @nassirrachid232
    @nassirrachid232 4 года назад +1

    Gd job 👍

  • @mazenmohamed7077
    @mazenmohamed7077 4 года назад +1

    I was a discount agent in the sales order and want a discount to be found in Invoices via create Invoices

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

      you might have to override the prepare_invoice_vals function and pass the values to invoice.
      Thanks

    • @mazenmohamed7077
      @mazenmohamed7077 4 года назад +1

      @@OdooMates Can I see the code?

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

      @@mazenmohamed7077 if you have pycharm, you can search for above function inside the code