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

Implement static factory inheritance #10

Merged
merged 1 commit into from
Sep 23, 2020
Merged

Conversation

dmollerm
Copy link
Contributor

While factories declared at runtime -after a trytond
transaction and pool have been setup- could be inherited,
factories declared at module import time couldn't
because of the base factory options assumptions.

Hack the _get_counter_reference method to work with
trytond models.

Also improve the get_model_class so that inherited
classes don't need to repeat the meta model.

While factories declared at runtime -after a trytond
transaction and pool have been setup- could be inherited,
factories declared at module import time couldn't
because of the base factory options assumptions.

Hack the _get_counter_reference method to work with
trytond models.

Also improve the get_model_class so that inherited
classes don't need to repeat the meta model.
@dmollerm dmollerm merged commit 165a641 into master Sep 23, 2020
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.

4 participants