-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
[MIG] partner contact nationality: Migration to 16.0 #1421
[MIG] partner contact nationality: Migration to 16.0 #1421
Conversation
Sorry @FernandoRomera you are not allowed to mark the addon tobe migrated. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
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.
Hi. Thanks for porting this module.
Dont understand the design. Nationality should be a many2many, don't you think ?
@legalsylvain Nationality is for individuals, and it is true that they can have more than one, but if we manage it we would have to start administering more than one VAT number and associate it to each nationality. |
It is possible to add a constrain, dont you think ? |
This is a migration pull request, I had not planned to add functionality. Once this one is approved, we can decide what is right. |
/ocabot migration partner_contact_nationality |
I don't see the use case as for a company, the nationality has to be the country used for its address (legally) |
For the multiple instances case, why not using partner_identification_number module and add a country field ? |
Nationality is only for individuals, not for companies. The dependency of this module is clearly identified: partner_contact_personal_information_page |
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.
Tested on Runboat,
work as expected
LGTM
Thanks for the contribution
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
@legalsylvain Could you update your review ? |
Thanks for the ping. Well, AFAIK, this module is only for individuals contact, as it depends on In that case, the field should be a M2M. Don't you think ? |
I think it is best to leave this module for those use cases where the primary or sole nationality is identified. In case you want to be able to assign more than one nationality to the partner, you would have to use the module "partner_identification" and not this 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.
Ok
Please @yajo make here a review as original author, it could be of your interest. thank you! |
@FernandoRomera In fact, I see this is a duplicate of #1380 |
@rousseldenis |
Closing in favor of #1380. Code there is more up to date. |
BTW people here: please go there and approve to merge. |
No description provided.