How To Inherit And Add Field To One2many Field In Odoo

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • How to inherit and add fields to one2many field in odoo. How to inherit and add field in Odoo. Odoo inheritance. How to inherit one2many model in Odoo. Odoo customization steps. Inheritance in Odoo. Odoo 15 development tutorials. Creating module in Odoo.
    𝐉𝐨𝐢𝐧 𝐭𝐡𝐢𝐬 𝐜𝐡𝐚𝐧𝐧𝐞𝐥:
    / @odoomates
    𝐎𝐝𝐨𝐨 𝟏𝟓 𝐏𝐥𝐚𝐲𝐥𝐢𝐬𝐭: • How To Configure Odoo1...
    Sponsor Us: github.com/spo...
    𝐖𝐞𝐛𝐬𝐢𝐭𝐞: www.odoomates....
    𝐈𝐧𝐬𝐭𝐠𝐫𝐚𝐦: / odoomates
    𝐆𝐢𝐭𝐡𝐮𝐛: github.com/odo...
    𝐄𝐦𝐚𝐢𝐥 : odoomates@gmail.com
    𝐅𝐚𝐜𝐞𝐛𝐨𝐨𝐤: / odoomate
    𝐓𝐰𝐢𝐭𝐭𝐞𝐫: / odoomates
    𝐒𝐮𝐩𝐩𝐨𝐫𝐭 𝐔𝐬 𝐢𝐧 𝐊𝐨 𝐅𝐢 : ko-fi.com/odoo...

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

  • @seanbentsen163
    @seanbentsen163 Год назад +1

    Hey guys, what would be the best way to inherit a custom field's information from stock to sale order line? I have tried related field, but it only fills in the name of the column when I add products it doesn't bring the information for that field. Cheers

    • @OdooMates
      @OdooMates  Год назад

      tried a computed field ?

    • @seanbentsen163
      @seanbentsen163 Год назад

      @@OdooMates no I haven't, can't say I'm confident in figuring out how computed fields work but I'll give it a go. Do you guys happen to have any examples similar to my issue?

    • @user-hj3xz5mb4y
      @user-hj3xz5mb4y 10 месяцев назад

      @@seanbentsen163 Hi did u find the solution?

  • @tnina8787
    @tnina8787 2 года назад

    I have tried this in odoo 14 but the field didn't appear in the form?

    • @OdooMates
      @OdooMates  2 года назад

      Can we see the code..

    • @tnina8787
      @tnina8787 2 года назад

      @@OdooMates < xpath expr ="//field[@name='invoice_line_ids']/form//field [@name='product_id']" position="after">

    • @OdooMates
      @OdooMates  2 года назад

      So you are adding the field to one2many form ? Can you confirm that you checked in one2many form not in one2many treee

    • @tnina8787
      @tnina8787 2 года назад

      @@OdooMates know it's added to the form view.but it don't get information from.same problem in 7:00min

    • @OdooMates
      @OdooMates  2 года назад

      Your inherited view get added in the db, can you check views menu

  • @sanjaibalajinallasivam3291
    @sanjaibalajinallasivam3291 2 года назад

    How to inherit the whole one2many field?

    • @OdooMates
      @OdooMates  2 года назад

      Can you elaborate, suppose if it is sale order line , what you are looking to do

    • @sanjaibalajinallasivam3291
      @sanjaibalajinallasivam3291 2 года назад

      @@OdooMates I need that, while clicking the customer name, the list of products are want to be filled automatically. only one click for selecting the customer. for different customers, there will be a different product.can you please help me in this
      Thanks

    • @OdooMates
      @OdooMates  2 года назад

      @@sanjaibalajinallasivam3291 ruclips.net/video/LE7E2O4lBrQ/видео.html

  • @mohamedsobh2626
    @mohamedsobh2626 Год назад +1

    i try this on stock.picking it gives error!!

    • @OdooMates
      @OdooMates  Год назад +1

      Did you checked the original view? Inside one2many is there is a inline tree defined or not ?

    • @mohamedsobh2626
      @mohamedsobh2626 Год назад

      @@OdooMates the function was not defined in its class 😁