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

[14.0][MIG] l10n_be_national_number #190

Merged
merged 9 commits into from
Jul 17, 2023

Conversation

carmenbianca
Copy link
Member

@carmenbianca carmenbianca marked this pull request as draft May 23, 2023 14:13
@carmenbianca carmenbianca marked this pull request as ready for review May 23, 2023 14:29
class ResPartner(models.Model):
_inherit = "res.partner"

national_number = fields.Char(string="National Number")
Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member

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 ?

Copy link
Member Author

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.

Copy link
Member

@victor-champonnois victor-champonnois left a 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 !

victor-champonnois and others added 9 commits June 22, 2023 10:21
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>
@carmenbianca carmenbianca force-pushed the 14.0-mig-l10n_be_national_number branch from b1f7ce8 to a02f5de Compare June 22, 2023 08:22
Copy link
Member

@huguesdk huguesdk left a 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>
Copy link
Member

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

Copy link
Member

@huguesdk huguesdk left a 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!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@carmenbianca
Copy link
Member Author

@victor-champonnois can you review/approve this?

Copy link
Contributor

@remytms remytms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@victor-champonnois
Copy link
Member

@carmenbianca Remy just approved so it's good to merge, you don't need my review anymore

@carmenbianca
Copy link
Member Author

@robinkeunen please merge :)

@robinkeunen
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-190-by-robinkeunen-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 19f1439 into OCA:14.0 Jul 17, 2023
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 3d36b0d. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants