-
-
Notifications
You must be signed in to change notification settings - Fork 697
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
[15.0][ADD]website_sale_partner_firstname: New module to set lastname from portal #1007
[15.0][ADD]website_sale_partner_firstname: New module to set lastname from portal #1007
Conversation
b57a18d
to
2520c43
Compare
4233698
to
aee206b
Compare
@manuelregidor Only some comments:
|
No need to change oca-dependecies.txt, as it is generated automatically with pip 😉 |
aee206b
to
804c1ed
Compare
Done |
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.
Functional review. Tested in runboat. Works as expected.
@chienandalu could you add a quick review? Any suggestion?
THX in advance.
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.
Some comments in the formal part
"installable": True, | ||
"depends": [ | ||
"auth_signup", | ||
"website_account_fiscal_position_partner_type", |
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 this too specific for the task?
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.
Sorry, but I don't think I get what you mean in this point.
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.
That this dependency is too specific and not everyone will be interested in pulling it to enjoy this new feature
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.
then we would have to carry out 3 separate modules. Since we have made the extension for the secondname. I don't see any harm in indicating on the website whether the client is a company or an individual for the correct treatment of the fields (the addition of the dependency).
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 agree. The module has been designed considering that a customer can be B2B or B2C. Considering this fiscal position type, the dependency is a must
804c1ed
to
00c93a3
Compare
00c93a3
to
fa494aa
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.
Oh, it looks like the module already existed!: OCA/e-commerce#804
We have several modules to upload:
both are with dependencies to the 'website_account_fiscal_position_partner_type' module because it makes sense to indicate whether certain fields are required or not depending on whether the user is a company or an individual user.
with the 'website_account_fiscal_position_partner_type'. |
The problem is that you are using the partner type in fiscal position to determine if individual or company, which is not correct. If core doesn't do that distinction, you should build another base module for that (although I think you can infer it through the input data). |
New module to set and edit lastname from portal.
This field is mandatory when the contact is B2C.