Git Product home page Git Product logo

Comments (14)

guewen avatar guewen commented on July 19, 2024

Was the job already existing in the database before you added the default_channel or is it happening an a fresh database?

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

Well, it's not a fresh database, but a fresh job, that is created after confirming the invoice in the code in the second line (https://github.com/OCA/l10n-spain/blob/3baa28b44211fc34516ebe87b9068204231bff47/l10n_es_aeat_sii/models/account_invoice.py#L964)

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

@guewen any news about this?

from queue.

guewen avatar guewen commented on July 19, 2024

No I couldn't have a look at it 😭

from queue.

lmignon avatar lmignon commented on July 19, 2024

@pedrobaeza Is your channel declared/configured into odoo.cfg or on the command line? Is your channel listed into the list of available channels?

from queue.

guewen avatar guewen commented on July 19, 2024

I confirm the automatic registration of job functions and default channels is no longer working with #49 and #50.

from queue.

guewen avatar guewen commented on July 19, 2024

Working on a patch.

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

Great, thanks!

from queue.

guewen avatar guewen commented on July 19, 2024

@pedrobaeza did you encounter the issue in 10.0 or 11.0?
I expect the 10.0 one to works, and the 11.0 failing due to this difference between py2 and py3: #69 (comment)

And indeed I couldn't reproduce on 10.0

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

Thanks for the following-up, Guewen. I found the problem in v10. The line I mentioned (https://github.com/OCA/l10n-spain/blob/3baa28b44211fc34516ebe87b9068204231bff47/l10n_es_aeat_sii/models/account_invoice.py#L964), was for this module in v10: https://github.com/OCA/l10n-spain/tree/10.0/l10n_es_aeat_sii, so there should be something different there.

Tell me if you need that I do any test.

from queue.

guewen avatar guewen commented on July 19, 2024

I installed l10n_es_aeat_sii from the branch 10.0, and the latest commit of the branch 10.0 of oca/queue, the channels have been created and properly assigned to the job function:

selection_294

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

Seeing my instances, I don't have the functions on that channels:

seleccion_014

What can be the problem? The code is updated (our Docker + module_auto_update system handles that), so I don't understand what can be. Are these functions registered only once or each time I restart the server?

from queue.

guewen avatar guewen commented on July 19, 2024

@pedrobaeza only once at registry loading, and if they are created without default_channel the first time, they'll keep the root channel. You can try to delete the "queue.job.function" rows and they'll be recreated on the registry load, so you can check if the channel is set correctly.

from queue.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

OK, that's it! It seems that I install the module with a code version that lacks this and this has remained meanwhile (or maybe there's a problem in installation time...). For now, I'm closing this, and if I observe there's a different behavior on installation than when running afterwards, I'll report back.

Thanks for the support.

from queue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.