-
-
Notifications
You must be signed in to change notification settings - Fork 322
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] pingen_env #327
[ADD] pingen_env #327
Conversation
0d3e492
to
37be778
Compare
2f7b742
to
9b8b114
Compare
9b8b114
to
bf1fefa
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@ajaniszewska-dev can you please fix the tests? 🙏 |
56b1cd9
to
4da3ee2
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
6ba73ee
to
848a89c
Compare
@pedrobaeza can we merge? 🙏 |
848a89c
to
9a19dea
Compare
pingen_env/hooks.py
Outdated
def post_init_hook(cr, registry): | ||
# When installing pingen_env we want to delete data from DB | ||
cr.execute( | ||
"""UPDATE res_company |
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.
This seems a solution of your current problem in existing DBs instead of a generic one.
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.
@pedrobaeza updated readme + removed hook, i think we should be ok now
85cbf4a
to
b742427
Compare
pingen_env/readme/USAGE.rst
Outdated
Define values under global section name called 'pingen', or in case of different config per company - global section name connected with company name: | ||
|
||
|
||
[pingen.companyA] |
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.
Isn't there any problem with spaces in the company name or any other special character not correctly being parsed by configuration helper?
And in any case, it should be more descriptive if you put a real demo company name:
[pingen.companyA] | |
[pingen.My Company (San Francisco)] |
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.
agree company name maybe not the best way to differentiate, but we use it in prod env for many months already so for now ill leave it as it is.
Updated readme.
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.
but... please add a todo to use a tech name. This can be fragile.
d81e1d2
to
f692906
Compare
pingen_env/readme/USAGE.rst
Outdated
Define values under global section name called 'pingen', or in case of different config per company - global section name connected with company name: | ||
|
||
|
||
[pingen] |
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.
this must be wrapped in code block
f692906
to
a0601fd
Compare
a0601fd
to
13a979c
Compare
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
@pedrobaeza good to merge? |
@simahawk must say, as he has comments. |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 19abb3f. Thanks a lot for contributing to OCA. ❤️ |
we want to manage pingen config values via server environment