100. Searchable Non Stored Compute Field In Odoo | How To Define Search Function For Field In Odoo

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

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

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

    Good information

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

      thanks brother

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

      @@OdooMates is it works in odoo13

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

      @@9441508831 yes it will work

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

    This is great!. Thanks for sharing!

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

      Glad you enjoyed it!

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

    Thanks

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

      Welcome

  • @kieucongthanh9956
    @kieucongthanh9956 8 หลายเดือนก่อน

    That's glorious! Thanks mates.

    • @OdooMates
      @OdooMates  2 หลายเดือนก่อน

      Glad you enjoyed it!

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

    Not quite correct logic. Reworked a little.
    def _search_age(self, operator, value):
    date_of_birth = date.today() - relativedelta.relativedelta(years=value)
    start_of_date = date_of_birth - relativedelta.relativedelta(years=1)
    return [('date_of_birth', '>', start_of_date), ('date_of_birth', '

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

      thanks for sharing

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

    please help how can we use computed field in filter or group by but the computed field is not take store = True

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

      th-cam.com/video/0G48MaOZZIY/w-d-xo.html

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

      This video explains this case with example