Use Context to Set Default Values in ODOO

Поділитися
Вставка
  • Опубліковано 26 гру 2024

КОМЕНТАРІ • 20

  • @ahmadraihan9922
    @ahmadraihan9922 5 місяців тому

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

    • @odoo-it-yourself
      @odoo-it-yourself  5 місяців тому +1

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

  • @ChristianLePage-d4e
    @ChristianLePage-d4e 5 місяців тому +1

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

  • @muhanadtur8785
    @muhanadtur8785 5 місяців тому +1

    great info! thanks!

  • @kylebriffa7
    @kylebriffa7 5 місяців тому +1

    Very helpful thank you

  • @tiffanyjanish332
    @tiffanyjanish332 3 місяці тому +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  3 місяці тому

      I believe this is the video you're looking for. This can go as many levels deep as you want. ua-cam.com/video/gyXqWq3XfIg/v-deo.html

  • @joietan7983
    @joietan7983 5 місяців тому +2

    Please create video how to customize POS receipt in odoo saas

    • @odoo-it-yourself
      @odoo-it-yourself  5 місяців тому

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

  • @zackfromAMP
    @zackfromAMP 4 місяці тому +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  4 місяці тому

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

  • @antonydowell3349
    @antonydowell3349 5 місяців тому +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  5 місяців тому

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

    • @Brucom-Ant
      @Brucom-Ant 5 місяців тому

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

  • @mohdelle
    @mohdelle 3 місяці тому +1

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

    • @odoo-it-yourself
      @odoo-it-yourself  3 місяці тому

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

    • @mohdelle
      @mohdelle 3 місяці тому

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