Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partner_base_multicompany_default_queue #712

Draft
wants to merge 2 commits into
base: 16.0
Choose a base branch
from

Conversation

leemannd
Copy link
Contributor

@leemannd leemannd commented Oct 24, 2024

Glue module inbetween partner_base_multicompany and queue_job.

The propagation of the fields can be costly given the amount of fields to be propagated and the amount of companies. By default the base module will make a write for each field to be propagated on each companies. With 4 fields and 4 companies it will trigger 16 writes which makes unusefull slownesses in the UI.
With this module, we want to make the propagation of the fields asynchronous with the creation of queue_jobs.

@leemannd leemannd marked this pull request as draft October 24, 2024 12:15
@leemannd leemannd force-pushed the add-partner_base_multicompany_default_queue branch 3 times, most recently from ca86fb0 to 30cb398 Compare October 24, 2024 15:02
@leemannd leemannd force-pushed the add-partner_base_multicompany_default_queue branch from 30cb398 to faf0992 Compare October 24, 2024 15:21
Copy link

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any description on what this module is trying to solve?

"category": "Technical",
"website": "https://github.com/OCA/multi-company",
"author": "Camptocamp, Odoo Community Association (OCA)",
"maintainers": ["camptocamp"],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maintainers have to be persons

Comment on lines +13 to +15
"""Keys to keep in context of stored jobs
Empty by default for backward compatibility.
"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"""Keys to keep in context of stored jobs
Empty by default for backward compatibility.
"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, this override should be moved to res.partner

Comment on lines +13 to +15
"""Keys to keep in context of stored jobs
Empty by default for backward compatibility.
"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, this override should be moved to res.partner


_inherit = "res.partner"

def _propagate_property_fields(self):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you miss a queue.job.function to be able to delay this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants