Write Value To Read-only Field From On-change Using Force Save Attribute

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

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

  • @jamesT008
    @jamesT008 4 ปีที่แล้ว +1

    Nice...thanks
    Some more tricks pls

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

    dude you help me a lot, thanks

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

      happy to help always :)

  • @image0284
    @image0284 4 ปีที่แล้ว

    you have make awsome videos. kindly make a video on customer facing display please...

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

      For pos ? I guess there are modules for same in odoo app stores :)

  • @smittrambadia5371
    @smittrambadia5371 4 ปีที่แล้ว

    nice video....can you please make a video on how to use flag in odoo website
    thank you

  • @ArmandoSchianodiCola
    @ArmandoSchianodiCola 4 ปีที่แล้ว

    Hello Sir, just want to let you know that you can use Ctrl + Alt + l for autoindent xml files. Maybe you can find it more useful than doing manual indentation

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

      Thanks for the tip!

  • @AliRaza-tf8uj
    @AliRaza-tf8uj 4 ปีที่แล้ว

    if we use save='True' .py file then the value will save in the database. So my question is that what is the difference between forced_save='1' in XML and save = 'True'? 2nd question is what is the difference between @api.onchange and @api.depends?
    Thanks

    • @OdooMates
      @OdooMates  4 ปีที่แล้ว +1

      force_save and save seems to have same effects

  • @harismasqati5410
    @harismasqati5410 4 ปีที่แล้ว

    i am using odoo v10 and i apply force_save attribute on Product_uom_id field like this
    but this is not working, field data invisible after save document.
    please help me what should i do?

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

      force save attribute is not available in v10, try with readonly bypass module of oca

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

    2,438 view should be likes 🫶🏼
    Sharing:
    Works great with _default_get() for one2many
    I have one2many with a section with four options. I need to create for lines but didn't want the user to change the options when I was saving the section was not saves force_save="1" made it work or store=True

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

      Glad it helps