bouvyd’s avatarbouvyd’s Twitter Archive—№ 2,060

          1. Writing kanban views in #Odoo has been a frustrating experience - any idea what the class oe_kanban_bottom_right does? Or the weird record.field_id.raw_value syntax? Still a WIP, but as a test I rewrote the task kanban in 50 LOC instead of 100! Here's an example for product.
            oh my god twitter doesn’t include alt text from images in their API
        1. …in reply to @bouvyd
          In short: - use <aside> if you want a side panel (e.g. product pictures, etc.) - use <section> for sections in your view (with an optional type row if you want your field to be in a row instead of stacked) - use the invisible attribute like in any other backend view
      1. …in reply to @bouvyd
        Want to do fancy stuff? Use bootstrap to have more complex/appealing layouts if you want to!
    1. …in reply to @bouvyd
      The new engine will be in Odoo 18 and we plan on switching all existing standard views to it - that means that any 3rd party module will have to update their inherited kanban views. Both engines will coexist in 18 for a year, but we encourage migrating all views in 18 for sure.
  1. …in reply to @bouvyd
    If you're curious to have a look at it or try it out: github.com/odoo/odoo/pull/156439