Skip to Content

Contributors

  • Re: Example of calling JavaScript from Odoo client and filling back in some field?

    I think you can also do the custom JS code execution with a client action

    For inserting the value somewhere in the form plain old jquery probably can be used :)


    Kind Regards,

    Kiril

    On 27.9.24 10:42, Radovan Skolnik wrote:

    Not really - at least I cannot see it there. The example shows the reverse flow: from JS to Python.


    What I need to do is:

    *) have a form in Odoo (it's pos.payment.method) and my field on it (let's call it my_field)

    *) put a control (button or something similar) on it

    *) when I click on the button, JavaScript code is called

    *) the result of the JS invocation is put into my_field


    Best regards


        Radovan


    On piatok 27. septembra 2024 10:32:27 CEST Tom Blauwendraat wrote:

    > Does this provide some kind of blueprint?

    > https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/paym

    > ent_terminal.js#L106 [1]

    >

    > On 9/27/24 10:17, Radovan Skolnik

    > wrote:

    >

    >

    > Hello,

    >

    > I

    > am looking for an example on how to call JavaScript from Odoo

    > client and feeding the result back to some field(s) on the

    > form. There is half of it (calling JavaScript) for example in

    > purchase/static/src/toaster_button/toaster_button_widget.js

    > but it lacks the other half.

    >

    > The

    > idea here is I need to query a PoS terminal for configuration

    > that's residing on the local network. The configuration would

    > be later used in PoS to communicate with the terminal.

    >

    > Thank

    > you. Best regards

    >

    >

    > Radovan Skolnik

    >

    > _______________________________________________

    > Mailing-List: https://odoo-community.org/groups/contributors-15 [2]

    > Post to: mailto:contributors@odoo-community.org [3]

    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [4]

    >

    >

    >

    > _______________________________________________

    > Mailing-List: https://odoo-community.org/groups/contributors-15 [5]

    > Post to: mailto:contributors@odoo-community.org

    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [6]

    >

    >

    >

    > [1]

    > https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/pay

    > ment_terminal.js#L106 [2] https://odoo-community.org/groups/contributors-15

    > [3] mailto:contributors@odoo-community.org

    > [4] https://odoo-community.org/groups?unsubscribe

    > [5] https://odoo-community.org/groups/contributors-15

    > [6] https://odoo-community.org/groups?unsubscribe



    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    -- 
    Lambda IS DOOEL - free/open-source information systems implementation & development
    
    Kiril Vangelovski - consultant/developer
    
    web: https://www.lambda-is.com
    tel: +38971753823

    by Kiril Vangelovski - 11:26 - 27 Sep 2024
  • Re: Example of calling JavaScript from Odoo client and filling back in some field?

    Ah ok, in that example it does call an external device on the local network via HTTP, a POSbox; thought you needed an example for that part. For the JS part of inserting it into the form, I don't know

    On 9/27/24 10:42, Radovan Skolnik wrote:

    Not really - at least I cannot see it there. The example shows the reverse flow: from JS to Python.


    What I need to do is:

    *) have a form in Odoo (it's pos.payment.method) and my field on it (let's call it my_field)

    *) put a control (button or something similar) on it

    *) when I click on the button, JavaScript code is called

    *) the result of the JS invocation is put into my_field



    by Tom Blauwendraat - 10:56 - 27 Sep 2024
  • Re: Example of calling JavaScript from Odoo client and filling back in some field?

    Not really - at least I cannot see it there. The example shows the reverse flow: from JS to Python.


    What I need to do is:

    *) have a form in Odoo (it's pos.payment.method) and my field on it (let's call it my_field)

    *) put a control (button or something similar) on it

    *) when I click on the button, JavaScript code is called

    *) the result of the JS invocation is put into my_field


    Best regards


        Radovan


    On piatok 27. septembra 2024 10:32:27 CEST Tom Blauwendraat wrote:

    > Does this provide some kind of blueprint?

    > https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/paym

    > ent_terminal.js#L106 [1]

    >

    > On 9/27/24 10:17, Radovan Skolnik

    > wrote:

    >

    >

    > Hello,

    >

    > I

    > am looking for an example on how to call JavaScript from Odoo

    > client and feeding the result back to some field(s) on the

    > form. There is half of it (calling JavaScript) for example in

    > purchase/static/src/toaster_button/toaster_button_widget.js

    > but it lacks the other half.

    >

    > The

    > idea here is I need to query a PoS terminal for configuration

    > that's residing on the local network. The configuration would

    > be later used in PoS to communicate with the terminal.

    >

    > Thank

    > you. Best regards

    >

    >

    > Radovan Skolnik

    >

    > _______________________________________________

    > Mailing-List: https://odoo-community.org/groups/contributors-15 [2]

    > Post to: mailto:contributors@odoo-community.org [3]

    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [4]

    >

    >

    >

    > _______________________________________________

    > Mailing-List: https://odoo-community.org/groups/contributors-15 [5]

    > Post to: mailto:contributors@odoo-community.org

    > Unsubscribe: https://odoo-community.org/groups?unsubscribe [6]

    >

    >

    >

    > [1]

    > https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/pay

    > ment_terminal.js#L106 [2] https://odoo-community.org/groups/contributors-15

    > [3] mailto:contributors@odoo-community.org

    > [4] https://odoo-community.org/groups?unsubscribe

    > [5] https://odoo-community.org/groups/contributors-15

    > [6] https://odoo-community.org/groups?unsubscribe




    by Radovan Skolnik - 10:41 - 27 Sep 2024
  • Re: Example of calling JavaScript from Odoo client and filling back in some field?
    have you tried orm/ rpc calls from JS client to backend model?  https://www.cybrosys.com/blog/how-does-rpc-and-orm-calls-works-in-odoo-16

    On Fri, Sep 27, 2024 at 1:47 PM Radovan Skolnik <notifications@odoo-community.org> wrote:

    Hello,


    I am looking for an example on how to call JavaScript from Odoo client and feeding the result back to some field(s) on the form. There is half of it (calling JavaScript) for example in purchase/static/src/toaster_button/toaster_button_widget.js but it lacks the other half.


    The idea here is I need to query a PoS terminal for configuration that's residing on the local network. The configuration would be later used in PoS to communicate with the terminal.


    Thank you. Best regards


        Radovan Skolnik

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe



    --
    Regards
    Sagar

    by sagars209 - 10:36 - 27 Sep 2024
  • Re: Example of calling JavaScript from Odoo client and filling back in some field?

    Does this provide some kind of blueprint?

    https://github.com/OCA/pos/blob/16.0/pos_payment_terminal/static/src/js/payment_terminal.js#L106

    On 9/27/24 10:17, Radovan Skolnik wrote:

    Hello,


    I am looking for an example on how to call JavaScript from Odoo client and feeding the result back to some field(s) on the form. There is half of it (calling JavaScript) for example in purchase/static/src/toaster_button/toaster_button_widget.js but it lacks the other half.


    The idea here is I need to query a PoS terminal for configuration that's residing on the local network. The configuration would be later used in PoS to communicate with the terminal.


    Thank you. Best regards


        Radovan Skolnik

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Tom Blauwendraat - 10:30 - 27 Sep 2024
  • Example of calling JavaScript from Odoo client and filling back in some field?

    Hello,


    I am looking for an example on how to call JavaScript from Odoo client and feeding the result back to some field(s) on the form. There is half of it (calling JavaScript) for example in purchase/static/src/toaster_button/toaster_button_widget.js but it lacks the other half.


    The idea here is I need to query a PoS terminal for configuration that's residing on the local network. The configuration would be later used in PoS to communicate with the terminal.


    Thank you. Best regards


        Radovan Skolnik


    by Radovan Skolnik - 10:16 - 27 Sep 2024
  • OCA Days 2024 - last minute items
    Hello Dear OCA Contributors

    We are very much looking forward to welcoming those that are attending OCA Days in person next week.
    All of the last minute information you need has been emailed this week or if you are a recent registration you can also find it on our blog.

    If you are attending the Sunday Night social at L'Atelier Bières please make sure you let us know on the survey.

    If you have any questions please get in touch.

    If you can't make the event this year, we will be streaming 2 of the rooms in real time on our YouTube Channel: 
    https://www.youtube.com/@OdooCommunity 
    Then all the talks will be available online in coming weeks.

    Have a great end to the week.
    Rebecca

    --
    Rebecca Gellatly
    General Secretary
    Odoo Community Association

    by Rebecca Gellatly (OCA) - 01:55 - 26 Sep 2024
  • Re: elasticsearch configure indexing
    If you are comfortable with k8s,  you can use the shopinvader-infra-demo16 repository (https://github.com/shopinvader/shopinvader-infra-demo16) to quickly get a running env with all the required dependencies.

    On Wed, Sep 25, 2024 at 5:22 PM mohamed alkobrosly <notifications@odoo-community.org> wrote:

    Thanks Mignon for helping me.

    In fact the channel connector repository was not pulled.

    I pulled it and installed sale_channel_search_engine_product module, then the json config index was correct and pushed to elasticsearch.

    I have to confirm that I linked a channel with search engine, also there is a default demo channel is connected with search engine.

    Despite all of this no any products or categories are fetched to search engine.

    there were many queued jobs are running successfully but none of them could fetch any products.

    I think there must be a link between channel and products but I don't know really.

    The main issue with OCA modules is that there is no description to guide me.

    may there there are some modules need to be installed to fetch the products or may be some other configuration.

    I am trying this with no templates yet, if it is necessary please tell me where to find nextjs template

    I tried to download the images but it didn't succeed

    thanks Mignon too


    On Wed, Sep 25, 2024, 09:33 Mignon, Laurent <notifications@odoo-community.org> wrote:
    Hi Mohamed,

    If you use the shopinvader demo app and the nuxtjs template the following index configuration should work for the product:
    {"settings": {"analysis": {"char_filter": {"replace": {"type": "mapping", "mappings": ["&=> and "]}}, "filter": {"word_delimiter": {"type": "word_delimiter", "split_on_numerics": false, "split_on_case_change": true, "generate_word_parts": true, "generate_number_parts": true, "catenate_all": true, "preserve_original": true, "catenate_numbers": true}}, "analyzer": {"default": {"type": "custom", "char_filter": ["html_strip", "replace"], "tokenizer": "whitespace", "filter": ["lowercase", "word_delimiter"]}}, "index": {"sort.field": ["main", "id"], "sort.order": ["desc", "asc"]}}}, "mappings": {"properties": {"categories": {"type": "nested", "properties": {"id": {"type": "integer"}, "level": {"type": "integer"}, "name": {"type": "keyword"}, "url_key": {"type": "keyword"}}}, "url_key": {"type": "keyword"}, "variant_attributes": {"properties": {"color": {"type": "text", "fielddata": true}}}, "main": {"type": "boolean"}, "id": {"type": "integer"}, "redirect_url_key": {"type": "keyword"}}}}

    For the category, you should set:
    {"settings": {"index": {"sort.field": ["id"], "sort.order": ["asc"]}}, "mappings": {"properties": {"url_key": {"type": "keyword"}, "redirect_url_key": {"type": "keyword"}, "id": {"type": "integer"}}}}


    In the demo app we use a specific addon to define the products to be exported to elasticsearch: 'sale_channel_search_engine_product'. Therefore on a channel, you must link the channel to a search engine. Once it's done, all the products linked to this sales channel will be exported to elasticsearch. 

    image.png
    image.png


    If you plan to come to the OCA days or Odoo XP I'll be happy to help you configure your env to get everything working.

    Regards,

    lmi

    On Wed, Sep 25, 2024 at 3:42 AM mohamed alkobrosly <notifications@odoo-community.org> wrote:
    Dear odoo community.

    While trying to install and run shopinvader project, I got an error that elasticsearch is connected successfully but there is no any document.

    I tried to make index by hand outside odoo and it succeeded.

    I guess the issue is related to configuration index filed which is in Se Index Config model.

    The default value for that field is {} but I am sure it must be changed.

    Can someone tell me how to set the value for that field please?

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Laurent Mignon - 05:35 - 25 Sep 2024
  • Re: elasticsearch configure indexing

    Thanks Mignon for helping me.

    In fact the channel connector repository was not pulled.

    I pulled it and installed sale_channel_search_engine_product module, then the json config index was correct and pushed to elasticsearch.

    I have to confirm that I linked a channel with search engine, also there is a default demo channel is connected with search engine.

    Despite all of this no any products or categories are fetched to search engine.

    there were many queued jobs are running successfully but none of them could fetch any products.

    I think there must be a link between channel and products but I don't know really.

    The main issue with OCA modules is that there is no description to guide me.

    may there there are some modules need to be installed to fetch the products or may be some other configuration.

    I am trying this with no templates yet, if it is necessary please tell me where to find nextjs template

    I tried to download the images but it didn't succeed

    thanks Mignon too


    On Wed, Sep 25, 2024, 09:33 Mignon, Laurent <notifications@odoo-community.org> wrote:
    Hi Mohamed,

    If you use the shopinvader demo app and the nuxtjs template the following index configuration should work for the product:
    {"settings": {"analysis": {"char_filter": {"replace": {"type": "mapping", "mappings": ["&=> and "]}}, "filter": {"word_delimiter": {"type": "word_delimiter", "split_on_numerics": false, "split_on_case_change": true, "generate_word_parts": true, "generate_number_parts": true, "catenate_all": true, "preserve_original": true, "catenate_numbers": true}}, "analyzer": {"default": {"type": "custom", "char_filter": ["html_strip", "replace"], "tokenizer": "whitespace", "filter": ["lowercase", "word_delimiter"]}}, "index": {"sort.field": ["main", "id"], "sort.order": ["desc", "asc"]}}}, "mappings": {"properties": {"categories": {"type": "nested", "properties": {"id": {"type": "integer"}, "level": {"type": "integer"}, "name": {"type": "keyword"}, "url_key": {"type": "keyword"}}}, "url_key": {"type": "keyword"}, "variant_attributes": {"properties": {"color": {"type": "text", "fielddata": true}}}, "main": {"type": "boolean"}, "id": {"type": "integer"}, "redirect_url_key": {"type": "keyword"}}}}

    For the category, you should set:
    {"settings": {"index": {"sort.field": ["id"], "sort.order": ["asc"]}}, "mappings": {"properties": {"url_key": {"type": "keyword"}, "redirect_url_key": {"type": "keyword"}, "id": {"type": "integer"}}}}


    In the demo app we use a specific addon to define the products to be exported to elasticsearch: 'sale_channel_search_engine_product'. Therefore on a channel, you must link the channel to a search engine. Once it's done, all the products linked to this sales channel will be exported to elasticsearch. 

    image.png
    image.png


    If you plan to come to the OCA days or Odoo XP I'll be happy to help you configure your env to get everything working.

    Regards,

    lmi

    On Wed, Sep 25, 2024 at 3:42 AM mohamed alkobrosly <notifications@odoo-community.org> wrote:
    Dear odoo community.

    While trying to install and run shopinvader project, I got an error that elasticsearch is connected successfully but there is no any document.

    I tried to make index by hand outside odoo and it succeeded.

    I guess the issue is related to configuration index filed which is in Se Index Config model.

    The default value for that field is {} but I am sure it must be changed.

    Can someone tell me how to set the value for that field please?

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Mohamed Alkobrosly - 05:21 - 25 Sep 2024
  • Re: [16.0] Reset to Draft button disappear after changed Price on Vendor Bills
    Thanks Denis!
    Sure, Rocío (rov-adhoc) has more details on the solution and how it was implemented. I'll let her know about this discussion.

    Sorry Rolando I do not have more details. Probably it was a first approach to give an initial workaround. 

    Regards!

    El mié, 25 sept 2024 a las 8:28, Roussel, Denis (<notifications@odoo-community.org>) escribió:
    Hello,

    I'm currently having the same requirements.

    I'm not fond of the actual implementation.

    I will post a PR soon (today) on account-financial-tools repository.

    The idea is to provide a new button to 'bypass' the draft restriction:

    - For users within a new security group
    - Without bypassing the hash if activated

    @Maria Don't hesitate to review. I can also for sure put `rov-adhoc` (I don't have the real name) in contributors for the original idea.



    On Tue, Sep 24, 2024 at 8:52 PM Rolando Pérez Rebollo <notifications@odoo-community.org> wrote:

    I have reviewed the addon's code. I think this could be the path to follow. I'm going to make some testing. I see the strategy is like to enable "reset to draft button" and suggest to the customer to do a manual stock valuation layer correction in order to avoid issues with product valuation at the re posting of the bill. I was thinking to coding that too. Do You know if your technical team saw any obstacle to instead of simply suggest to the customer the path to take, coding that path into the posting feature of journal entries??? I can even make a PR to your github repo.

    On 9/24/24 10:52, María Florencia Frigieri Parma wrote:
    Hi Rolando,
    We developed this module to address that issue: stock_account_ux
    Hope it helps!

    Flor.


    El mar, 24 sept 2024 a las 11:22, Rolando Pérez Rebollo (<notifications@odoo-community.org>) escribió:
    Hi team, We recently upgrade a client from v13 to v16, and now they are 
    being hit by the infamous "Reset to Draft button disappear after changed 
    Price on Vendor Bills" (https://github.com/odoo/odoo/issues/114732). I 
    have read a lot of code, blog posts, comments on github issues an so on. 
    Because fiscal regulations the customer can't issue credit notes as Odoo 
    officially suggested as workaround. So, has anyone figured out some 
    strategy to solve this problem. I'm a developer, maybe someone could 
    point me to functional steps to in somehow revert or reevaluate the 
    problematic stock.valuation.layers. This customer uses multi currency, 
    so the currency rate variations between product reception and bill 
    confirmation  date makes almost every vendor bill gets blocked with no 
    chances to any form of modification. Has anyone come out with a bright 
    solution?
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Maria Florencia Frigieri Parma - 01:36 - 25 Sep 2024
  • Re: [16.0] Reset to Draft button disappear after changed Price on Vendor Bills
    Hello,

    I'm currently having the same requirements.

    I'm not fond of the actual implementation.

    I will post a PR soon (today) on account-financial-tools repository.

    The idea is to provide a new button to 'bypass' the draft restriction:

    - For users within a new security group
    - Without bypassing the hash if activated

    @Maria Don't hesitate to review. I can also for sure put `rov-adhoc` (I don't have the real name) in contributors for the original idea.



    On Tue, Sep 24, 2024 at 8:52 PM Rolando Pérez Rebollo <notifications@odoo-community.org> wrote:

    I have reviewed the addon's code. I think this could be the path to follow. I'm going to make some testing. I see the strategy is like to enable "reset to draft button" and suggest to the customer to do a manual stock valuation layer correction in order to avoid issues with product valuation at the re posting of the bill. I was thinking to coding that too. Do You know if your technical team saw any obstacle to instead of simply suggest to the customer the path to take, coding that path into the posting feature of journal entries??? I can even make a PR to your github repo.

    On 9/24/24 10:52, María Florencia Frigieri Parma wrote:
    Hi Rolando,
    We developed this module to address that issue: stock_account_ux
    Hope it helps!

    Flor.


    El mar, 24 sept 2024 a las 11:22, Rolando Pérez Rebollo (<notifications@odoo-community.org>) escribió:
    Hi team, We recently upgrade a client from v13 to v16, and now they are 
    being hit by the infamous "Reset to Draft button disappear after changed 
    Price on Vendor Bills" (https://github.com/odoo/odoo/issues/114732). I 
    have read a lot of code, blog posts, comments on github issues an so on. 
    Because fiscal regulations the customer can't issue credit notes as Odoo 
    officially suggested as workaround. So, has anyone figured out some 
    strategy to solve this problem. I'm a developer, maybe someone could 
    point me to functional steps to in somehow revert or reevaluate the 
    problematic stock.valuation.layers. This customer uses multi currency, 
    so the currency rate variations between product reception and bill 
    confirmation  date makes almost every vendor bill gets blocked with no 
    chances to any form of modification. Has anyone come out with a bright 
    solution?
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Denis Roussel - 01:26 - 25 Sep 2024
  • Re: Dropping support for python 3.5 and Odoo 11

    I agree with you as I tried to build getting started shopinvader project that uses odoo 12 docker image and this image is using Python 3.5

    The image failed to build and the entire project didn't work due to this error.


    On Wed, Sep 25, 2024, 14:17 Stéphane Bidoul <notifications@odoo-community.org> wrote:
    Hi everyone,

    Our Odoo 11 support in CI is currently based on python 3.5, and builds of the OCA/oca-ci image now fail with that python version.

    I therefore propose to stop building these images.

    Repos who use it will continue to work, but won't get the latest OCB updates, if any.

    If you have stakes on this, please do not hesitate to chime in on the PR at https://github.com/OCA/oca-ci/pull/79.

    Best regards,

    -Stéphane

    --
    Stéphane Bidoul
    http://acsone.eu/

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Mohamed Alkobrosly - 01:26 - 25 Sep 2024
  • Dropping support for python 3.5 and Odoo 11
    Hi everyone,

    Our Odoo 11 support in CI is currently based on python 3.5, and builds of the OCA/oca-ci image now fail with that python version.

    I therefore propose to stop building these images.

    Repos who use it will continue to work, but won't get the latest OCB updates, if any.

    If you have stakes on this, please do not hesitate to chime in on the PR at https://github.com/OCA/oca-ci/pull/79.

    Best regards,

    -Stéphane

    --
    Stéphane Bidoul
    http://acsone.eu/

    by Stéphane Bidoul - 01:15 - 25 Sep 2024
  • Re: elasticsearch configure indexing
    Hi Mohamed,

    If you use the shopinvader demo app and the nuxtjs template the following index configuration should work for the product:
    {"settings": {"analysis": {"char_filter": {"replace": {"type": "mapping", "mappings": ["&=> and "]}}, "filter": {"word_delimiter": {"type": "word_delimiter", "split_on_numerics": false, "split_on_case_change": true, "generate_word_parts": true, "generate_number_parts": true, "catenate_all": true, "preserve_original": true, "catenate_numbers": true}}, "analyzer": {"default": {"type": "custom", "char_filter": ["html_strip", "replace"], "tokenizer": "whitespace", "filter": ["lowercase", "word_delimiter"]}}, "index": {"sort.field": ["main", "id"], "sort.order": ["desc", "asc"]}}}, "mappings": {"properties": {"categories": {"type": "nested", "properties": {"id": {"type": "integer"}, "level": {"type": "integer"}, "name": {"type": "keyword"}, "url_key": {"type": "keyword"}}}, "url_key": {"type": "keyword"}, "variant_attributes": {"properties": {"color": {"type": "text", "fielddata": true}}}, "main": {"type": "boolean"}, "id": {"type": "integer"}, "redirect_url_key": {"type": "keyword"}}}}

    For the category, you should set:
    {"settings": {"index": {"sort.field": ["id"], "sort.order": ["asc"]}}, "mappings": {"properties": {"url_key": {"type": "keyword"}, "redirect_url_key": {"type": "keyword"}, "id": {"type": "integer"}}}}


    In the demo app we use a specific addon to define the products to be exported to elasticsearch: 'sale_channel_search_engine_product'. Therefore on a channel, you must link the channel to a search engine. Once it's done, all the products linked to this sales channel will be exported to elasticsearch. 

    image.png
    image.png


    If you plan to come to the OCA days or Odoo XP I'll be happy to help you configure your env to get everything working.

    Regards,

    lmi

    On Wed, Sep 25, 2024 at 3:42 AM mohamed alkobrosly <notifications@odoo-community.org> wrote:
    Dear odoo community.

    While trying to install and run shopinvader project, I got an error that elasticsearch is connected successfully but there is no any document.

    I tried to make index by hand outside odoo and it succeeded.

    I guess the issue is related to configuration index filed which is in Se Index Config model.

    The default value for that field is {} but I am sure it must be changed.

    Can someone tell me how to set the value for that field please?

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Laurent Mignon - 08:30 - 25 Sep 2024
  • elasticsearch configure indexing
    Dear odoo community.

    While trying to install and run shopinvader project, I got an error that elasticsearch is connected successfully but there is no any document.

    I tried to make index by hand outside odoo and it succeeded.

    I guess the issue is related to configuration index filed which is in Se Index Config model.

    The default value for that field is {} but I am sure it must be changed.

    Can someone tell me how to set the value for that field please?

    by Mohamed Alkobrosly - 03:42 - 25 Sep 2024
  • Re: [16.0] Reset to Draft button disappear after changed Price on Vendor Bills

    I have reviewed the addon's code. I think this could be the path to follow. I'm going to make some testing. I see the strategy is like to enable "reset to draft button" and suggest to the customer to do a manual stock valuation layer correction in order to avoid issues with product valuation at the re posting of the bill. I was thinking to coding that too. Do You know if your technical team saw any obstacle to instead of simply suggest to the customer the path to take, coding that path into the posting feature of journal entries??? I can even make a PR to your github repo.

    On 9/24/24 10:52, María Florencia Frigieri Parma wrote:
    Hi Rolando,
    We developed this module to address that issue: stock_account_ux
    Hope it helps!

    Flor.


    El mar, 24 sept 2024 a las 11:22, Rolando Pérez Rebollo (<notifications@odoo-community.org>) escribió:
    Hi team, We recently upgrade a client from v13 to v16, and now they are 
    being hit by the infamous "Reset to Draft button disappear after changed 
    Price on Vendor Bills" (https://github.com/odoo/odoo/issues/114732). I 
    have read a lot of code, blog posts, comments on github issues an so on. 
    Because fiscal regulations the customer can't issue credit notes as Odoo 
    officially suggested as workaround. So, has anyone figured out some 
    strategy to solve this problem. I'm a developer, maybe someone could 
    point me to functional steps to in somehow revert or reevaluate the 
    problematic stock.valuation.layers. This customer uses multi currency, 
    so the currency rate variations between product reception and bill 
    confirmation  date makes almost every vendor bill gets blocked with no 
    chances to any form of modification. Has anyone come out with a bright 
    solution?
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Ing. Rolando Pérez Rebollo - 08:51 - 24 Sep 2024
  • Re: Shopinvader E-Commerce Bugs with odoo 12 docker image

    thanks Mignon very much for sharing this information

    I am grateful to you


    On Tue, Sep 24, 2024, 19:22 Mignon, Laurent <notifications@odoo-community.org> wrote:
    Hi Mohammed,

    A demo app exists for the new shopinvader api in Odoo v16. You can take a look at https://github.com/shopinvader/odoo-shopinvader/pull/1364

    Regards,

    lmi

    On Tue, Sep 24, 2024 at 5:22 PM mohamed alkobrosly <notifications@odoo-community.org> wrote:

    thanks Dora, yes I am starting with odoo 17, hoping to finish the goal to upgrade to version 17


    On Tue, Sep 24, 2024, 18:09 Dora Jurcevic <notifications@odoo-community.org> wrote:
    Hello Mohamed !
    Shopinvader e-commerce has a new version developed in vueJs and NuxtJs and  the API on Odoo side also changed a lot (Fast API now) !
    We still have some costumers using the old stack, but if you are starting from scratch, it would be better to start from the newest stack (available on Odoo 14 and Odoo 16).


    Best regards,

    Dora


    Le lun. 23 sept. 2024 à 23:38, mohamed alkobrosly <notifications@odoo-community.org> a écrit :
    Dear community.

    One of my customers needs an E-Commerce application that depends on odoo in the backend.

    A friend of mine recommended the Shopinvader project to use.

    I have read about it, I cloned many of it's repositories.

    I tried to follow the documentation and install and run the "getting started" docker-compose app. 

    It failed to run due to old odoo 12 dependency.

    I really need to install and try this project so that if it is useful I can upgrade to version 17 and share it in the community.

    Any guidance on how to install and run it without bugs even in version 16 of odoo?

    Thanks community

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Mohamed Alkobrosly - 08:06 - 24 Sep 2024
  • Re: Shopinvader E-Commerce Bugs with odoo 12 docker image
    Hi Mohammed,

    A demo app exists for the new shopinvader api in Odoo v16. You can take a look at https://github.com/shopinvader/odoo-shopinvader/pull/1364

    Regards,

    lmi

    On Tue, Sep 24, 2024 at 5:22 PM mohamed alkobrosly <notifications@odoo-community.org> wrote:

    thanks Dora, yes I am starting with odoo 17, hoping to finish the goal to upgrade to version 17


    On Tue, Sep 24, 2024, 18:09 Dora Jurcevic <notifications@odoo-community.org> wrote:
    Hello Mohamed !
    Shopinvader e-commerce has a new version developed in vueJs and NuxtJs and  the API on Odoo side also changed a lot (Fast API now) !
    We still have some costumers using the old stack, but if you are starting from scratch, it would be better to start from the newest stack (available on Odoo 14 and Odoo 16).


    Best regards,

    Dora


    Le lun. 23 sept. 2024 à 23:38, mohamed alkobrosly <notifications@odoo-community.org> a écrit :
    Dear community.

    One of my customers needs an E-Commerce application that depends on odoo in the backend.

    A friend of mine recommended the Shopinvader project to use.

    I have read about it, I cloned many of it's repositories.

    I tried to follow the documentation and install and run the "getting started" docker-compose app. 

    It failed to run due to old odoo 12 dependency.

    I really need to install and try this project so that if it is useful I can upgrade to version 17 and share it in the community.

    Any guidance on how to install and run it without bugs even in version 16 of odoo?

    Thanks community

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Laurent Mignon - 06:21 - 24 Sep 2024
  • Re: [16.0] Reset to Draft button disappear after changed Price on Vendor Bills

    the customer would have to make manual corrections to the stock accounting, leading to more problems

    On 9/24/24 10:58, Christian Zöllner wrote:
    Hi Rolando,

    what about the proposed solution in the issue? Simply show the button again by changing the view.

    Regards
    Christian


    Von: "Rolando Pérez Rebollo" <notifications@odoo-community.org>
    An: "Odoo Community Association, (OCA) Contributors" <contributors@odoo-community.org>
    Gesendet: Dienstag, 24. September 2024 16:22:00
    Betreff: [16.0] Reset to Draft button disappear after changed Price on Vendor Bills

    Hi team, We recently upgrade a client from v13 to v16, and now they are 
    being hit by the infamous "Reset to Draft button disappear after changed 
    Price on Vendor Bills" (https://github.com/odoo/odoo/issues/114732). I 
    have read a lot of code, blog posts, comments on github issues an so on. 
    Because fiscal regulations the customer can't issue credit notes as Odoo 
    officially suggested as workaround. So, has anyone figured out some 
    strategy to solve this problem. I'm a developer, maybe someone could 
    point me to functional steps to in somehow revert or reevaluate the 
    problematic stock.valuation.layers. This customer uses multi currency, 
    so the currency rate variations between product reception and bill 
    confirmation  date makes almost every vendor bill gets blocked with no 
    chances to any form of modification. Has anyone come out with a bright 
    solution?
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Ing. Rolando Pérez Rebollo - 05:26 - 24 Sep 2024
  • Re: Shopinvader E-Commerce Bugs with odoo 12 docker image

    thanks Dora, yes I am starting with odoo 17, hoping to finish the goal to upgrade to version 17


    On Tue, Sep 24, 2024, 18:09 Dora Jurcevic <notifications@odoo-community.org> wrote:
    Hello Mohamed !
    Shopinvader e-commerce has a new version developed in vueJs and NuxtJs and  the API on Odoo side also changed a lot (Fast API now) !
    We still have some costumers using the old stack, but if you are starting from scratch, it would be better to start from the newest stack (available on Odoo 14 and Odoo 16).


    Best regards,

    Dora


    Le lun. 23 sept. 2024 à 23:38, mohamed alkobrosly <notifications@odoo-community.org> a écrit :
    Dear community.

    One of my customers needs an E-Commerce application that depends on odoo in the backend.

    A friend of mine recommended the Shopinvader project to use.

    I have read about it, I cloned many of it's repositories.

    I tried to follow the documentation and install and run the "getting started" docker-compose app. 

    It failed to run due to old odoo 12 dependency.

    I really need to install and try this project so that if it is useful I can upgrade to version 17 and share it in the community.

    Any guidance on how to install and run it without bugs even in version 16 of odoo?

    Thanks community

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Mohamed Alkobrosly - 05:21 - 24 Sep 2024