Inherit And Add Buttons To Existing Views in Odoo

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

КОМЕНТАРІ • 24

  • @italaa86
    @italaa86 11 місяців тому

    Hello Thanks
    What if want to inherit a form without any smart button before and add first one ??

  • @ajithpoojari9660
    @ajithpoojari9660 3 роки тому +1

    Sir how can i inherit the confirm button from purchase.order model to my custom module

    • @OdooMates
      @OdooMates  3 роки тому +1

      is there any relation between your model and purchase order model ?

    • @ajithpoojari9660
      @ajithpoojari9660 3 роки тому +1

      @@OdooMates yes sir, i have added selection field in purchase order and how can i connect selection field and confirm button there.....

    • @OdooMates
      @OdooMates  3 роки тому +1

      @@ajithpoojari9660 is it selection field or many2one ? if it is many2one field, then you can do like this: self.field_name.function_name_of_confirm_button()

    • @ajithpoojari9660
      @ajithpoojari9660 3 роки тому

      @@OdooMates it's selection fiel. I have given 2 values valid and invalid there... If i give valid confirm button should perform the action

    • @OdooMates
      @OdooMates  3 роки тому +1

      @@ajithpoojari9660 how you will link a selection field with purchase.order

  • @moulaabyr3163
    @moulaabyr3163 7 місяців тому

    hello sir m
    what if I want to add a button in an inherited tree view next to the create button and this button triggers a wizard

  • @unghoangtu1256
    @unghoangtu1256 3 роки тому

    how can ii invisible button with type = action.

  • @unghoangtu1256
    @unghoangtu1256 3 роки тому +1

    if my form have 2 button with same name, show can i invisible just 1 button
    many thanks

    • @OdooMates
      @OdooMates  3 роки тому

      use positional argument to specify the correct one like this, button[@name='test'][1] , like this

  • @RoconAlex
    @RoconAlex 3 роки тому

    if there is no button already in the header section how we can refer?

    • @OdooMates
      @OdooMates  3 роки тому

      you can try as follows: www.odoo.com/forum/help-1/adding-a-custom-button-to-header-of-res-partner-149018

  • @pfe2056
    @pfe2056 4 роки тому

    Hello, please how can i load my customized version of odoo to a server, so i can use it from different computers with differents users?

    • @OdooMates
      @OdooMates  4 роки тому

      if you are asking about adding custom modules that you developed, add a new custom addons path in server and using copy commands or via git you can move this to server

    • @pfe2056
      @pfe2056 4 роки тому

      @@OdooMates yeah, thank you
      And how to use the same database from all these computers.?

  • @DuyNguyen-ns2rl
    @DuyNguyen-ns2rl 4 роки тому

    Hey bro, how to disable drop and drag in kanban view odoo 12 ?

    • @OdooMates
      @OdooMates  4 роки тому

      See: ua-cam.com/video/aQ7oGcsD6ow/v-deo.html

  • @alejandroalain7305
    @alejandroalain7305 3 роки тому +1

    Please fix your audio.

    • @OdooMates
      @OdooMates  3 роки тому

      sorry for the trouble

    • @alejandroalain7305
      @alejandroalain7305 3 роки тому +1

      @@OdooMates no problem, your video is very helpful to odoo community

    • @OdooMates
      @OdooMates  3 роки тому

      Happy to know that, we have tried to improve the noice and speed in the recent videos