Use Context to Set Default Values in ODOO

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

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

  • @ChristianLePage-d4e
    @ChristianLePage-d4e 3 месяца назад +1

    Very useful and very well explained, as usual. Manu thanks.

  • @kylebriffa7
    @kylebriffa7 3 месяца назад +1

    Very helpful thank you

  • @ahmadraihan9922
    @ahmadraihan9922 3 месяца назад

    Nice insight!!! Hope to learn how to set access rights effieciently from this channel

    • @odoo-it-yourself
      @odoo-it-yourself  3 месяца назад +1

      Thank you! I'll probably get to that soon! Just a dangerous subject.

  • @muhanadtur8785
    @muhanadtur8785 3 месяца назад +1

    great info! thanks!

  • @tiffanyjanish332
    @tiffanyjanish332 Месяц назад +1

    Is a form field Context in Studio what I am looking for...or something else?
    In my scenario I have a Defined Location model with Room Number (x_name) and two many to one fields, Project (x_studio_project) and Parent Location (x_studio_parent_location). Parent Location is a recursive field pointing back to the same table.
    So, when the "Bishop" project is selected in record 15 - Rm# 101 (x_name), the filtered values in Parent Location will only show those records in the Defined Location table where the Project = Bishop, so if x_name records 1 (Bldg# C) and 7 (Rm# 102) show "Bishop" in Project, these will be the only options to show in dropdown. Excluding it's own record of 15, of course.
    Said more plainly, show me values in Parent Location where Project = Parent Location.Project
    BONUS: What if there could be two criteria...adding if x_studio_location_type (many to one) of the possible records in Parent Location = "Room" or "Door"??
    TIA!!

    • @odoo-it-yourself
      @odoo-it-yourself  Месяц назад

      I believe this is the video you're looking for. This can go as many levels deep as you want. ruclips.net/video/gyXqWq3XfIg/видео.html

  • @mohdelle
    @mohdelle Месяц назад +1

    Great content. Could you please explain how we can apply modifications to standard views through inherited views? 🙏

    • @odoo-it-yourself
      @odoo-it-yourself  Месяц назад

      I have a few videos that show that actually! What are you trying to do specifically?

    • @mohdelle
      @mohdelle Месяц назад

      @@odoo-it-yourself Im trying to narrow down a list inside dropdown list based on specific conditions.

  • @zackfromAMP
    @zackfromAMP 2 месяца назад +1

    Do you think you could make a video on attendance? I'm looking to have a 15 minute buffer for before shift starts and after shift ends, but I'm looking for the time to round to 10 hours, instead of 10.05 or 10.10 hours.

    • @odoo-it-yourself
      @odoo-it-yourself  2 месяца назад

      I'm looking into doing this, Zack. Thanks for asking!

  • @antonydowell3349
    @antonydowell3349 3 месяца назад +1

    Is Context the sort of thing to solve one our headaches?
    I'm trying to add a list of current MOs within the PLM change screen, where it shows all current orders for the same product?

    • @odoo-it-yourself
      @odoo-it-yourself  3 месяца назад

      Hmmm...I'd likely use a calculated many2many for this.

    • @Brucom-Ant
      @Brucom-Ant 3 месяца назад

      @@odoo-it-yourself I think I may gave tried that already, but couldn't get it to autofill. I could make it so you could only choose the MOs with the same product number, but not a pre-filled list

  • @joietan7983
    @joietan7983 3 месяца назад +2

    Please create video how to customize POS receipt in odoo saas

    • @odoo-it-yourself
      @odoo-it-yourself  3 месяца назад

      You'd need a custom app for this, but probably not the worst thing in the world.