-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
[10.0][ADD] business code and validation #16
Conversation
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.
My concerns on the previous version of this pull request (#15) were already addressed. This is OK.
README.md
Outdated
@@ -13,6 +13,7 @@ Available addons | |||
addon | version | summary | |||
--- | --- | --- | |||
[l10n_fi_banks](l10n_fi_banks/) | 10.0.1.0.0 | Finnish banks and their addresses | |||
[l10n_fi_edicode](l10n_fi_edicode/) | 10.0.1.1.2 | Adds EDI code field and operators |
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.
Maybe add l10n_fi_business_code
and l10n_fi_business_code_validate
here too.
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.
I'll take that back. This section is autogenerated: https://raw.githubusercontent.com/OCA/maintainer-quality-tools/master/sample_files/README.md
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.
Maybe remove this modification (edicode) and let OCA bot autogenerate it.
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.
Done. The auto-generation was the reason why I didn't add the business code -modules in readme.
setup/_metapackage/VERSION.txt
Outdated
10.0.20180727.0 |
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.
Is there a reason why all this setup/
stuff is in here? Isn't this something that OCA Bot generates automatically?
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.
As far as I know, they are autogenerated for https://pypi.org/project/setuptools-odoo/
They seem to be here due to a merge 4627715 from main branch
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.
Ok. Could you remove them from this PR?
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.
@aisopuro Do you know how we could get rid of those commits? I tried to remove them by using interactive rebase but failed miserably.
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.
It looks a little hairy. There are some merge commits in there, which could make the whole thing really complicated. Maybe try a reset-"rebase":
git checkout -b just-testing 10.0-l10n_fi_business_code
git fetch origin
git reset --soft origin/10.0
(Assumingorigin
is the remote pointing to the OCA repository)git add the-things-you-want-here
(make sure you don't add anysetup/
stuff if it isn't wanted)git commit
- (check the branch makes sense, then
reset --hard
your feature branch to point to this fixed branch) git push --force-with-lease
This should "squash" everything so that you only have one commit with the files you want to have. You can also do steps 4 and 5 several times, if you want to have different commits cover different things.
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.
@mlaitinen it looks like your review is maybe the only thing holding this back.
266288f
to
1240cca
Compare
Tried to clean up the commit history. If everything went as planned, it should be identical to the original PR (with fixes of course), but without any Pre-cleanup branch for reference https://github.com/Tawasta/l10n-finland/tree/10.0-l10n_fi_business_code_original |
* Add a module for partner business id (business code) * Add a module for partner business id (business code) validation
Adds a business id for partners.
Split to two modules: one just adds the field and other adds validation and formatting.
This way the validation will be optional, and the module can be installed in environments with incorrectly formatted business ids