-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
[14.0][MIG] l10n_be_national_number #190
[14.0][MIG] l10n_be_national_number #190
Conversation
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
national_number = fields.Char(string="National Number") |
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 this field even used? id_numbers
appears to be the field that is actually used. This field national_number
is displayed in no view. I also can't find downstream usage of this field.
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 think you are right ! I think I made a mistake.
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 let's delete this module then ?
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.
The only important thing in this module is the category definition in the data file :) We can remove this Python code.
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.
Wow that's weird, how could it have worked without the import statement !
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
…never used Signed-off-by: Carmen Bianca BAKKER <carmen@coopiteasy.be>
b1f7ce8
to
a02f5de
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.
i think the official name for this identification number is “national registration number”. or is this category also used for the bis number? then the module should be called “l10n_be_identification_number” (https://sma-help.bosa.belgium.be/en/faq/i-do-not-know-my-belgian-identification-number).
|
||
<record id="l10n_be_national_number_category" model="res.partner.id_category"> | ||
<field name="code">l10n_be_national_number</field> | ||
<field name="name">Belgium National Number</field> |
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.
shouldn’t this be “Belgian national registration number” (translated to “Numéro de registre national belge”)? or something like “Belgium: national registration number” or ”National registration number (Belgium)”? https://sma-help.bosa.belgium.be/en/faq/where-can-i-find-my-national-registration-number
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 is a port of a module in 12.0 that is used in production since several months and that it’s too late too rename things at this stage before deployment, but we should plan a renaming at some point.
otherwise, lgtm!
This PR has the |
@victor-champonnois can you review/approve this? |
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.
LGTM
@carmenbianca Remy just approved so it's good to merge, you don't need my review anymore |
@robinkeunen please merge :) |
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 3d36b0d. Thanks a lot for contributing to OCA. ❤️ |
internal task: https://gestion.coopiteasy.be/web#view_type=form&model=project.task&id=10633&active_id=10633&menu_id=
needed for OCA/cooperative#69