-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
base: 16.0
Are you sure you want to change the base?
Add partner_base_multicompany_default_queue #712
Conversation
ca86fb0
to
30cb398
Compare
30cb398
to
faf0992
Compare
There was a problem hiding this 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"], |
There was a problem hiding this comment.
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
"""Keys to keep in context of stored jobs | ||
Empty by default for backward compatibility. | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Keys to keep in context of stored jobs | |
Empty by default for backward compatibility. | |
""" |
There was a problem hiding this comment.
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
"""Keys to keep in context of stored jobs | ||
Empty by default for backward compatibility. | ||
""" |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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
Glue module inbetween
partner_base_multicompany
andqueue_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.