[18.0][ADD] partner_firstname_auth_signup#2118
Conversation
edb019d to
5518f49
Compare
f8c0a9f to
d652ebc
Compare
|
@rvalyi : you could be interested by this one. |
d652ebc to
4f59ee4
Compare
4f59ee4 to
6b7470b
Compare
maisim
left a comment
There was a problem hiding this comment.
Code review + live tests:
http://oca-partner-contact-18-0-pr2118-4f59ee46496b.runboat.odoo-community.org/odoo/users/8
c3465e1 to
4fa166a
Compare
|
@legalsylvain If you rebase the dependency problem should be gone now. |
4fa166a to
8c9f827
Compare
|
@legalsylvain I see one probably related test failure: Would be nice to solve this, then I can approve and merge. |
8c9f827 to
a2db97c
Compare
a2db97c to
e81724a
Compare
| @@ -0,0 +1,40 @@ | |||
| import publicWidget from "@web/legacy/js/public/public_widget"; | |||
There was a problem hiding this comment.
Should be scoped to src folder only
There was a problem hiding this comment.
What is the correct syntax for you ? I'm not a JS expert.
I took exemple on current OCA modules (at least in 7 modules in V18) :
./partner-contact/partner_firstname_auth_signup/static/src/js/signup.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./website/website_select2/static/src/js/website_select2.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./website/website_form_require_legal/static/src/js/terms_and_conditions.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./website/website_form_require_legal/static/src/js/submit_button.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./website/website_altcha/static/src/signup/signup.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./website/website_cf_turnstile_login/static/src/js/turnstileCaptchaSignIn.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
./timesheet/hr_timesheet_portal/static/src/js/hr_timesheet_portal.esm.js:import publicWidget from "@web/legacy/js/public/public_widget";
| type="checkbox" | ||
| id="checkbox_config_lastname_required" | ||
| t-att-checked="lastname_required" | ||
| style="display: none;" |
There was a problem hiding this comment.
Use d-none class instead.
There was a problem hiding this comment.
Done.
Naive question: why it is best to use "d-none" class instead of "display:none" ?
d-none looks an alias...
https://github.com/odoo/odoo/blob/18.0/addons/web/static/lib/bootstrap/dist/css/bootstrap.css#L7372
.d-none {
display: none !important;
}
| def get_auth_signup_qcontext(self): | ||
| qcontext = super().get_auth_signup_qcontext() | ||
| config_required = ( | ||
| request.env["ir.config_parameter"] |
There was a problem hiding this comment.
Prefer variable usage here
There was a problem hiding this comment.
Prefer variable usage here
sorry I don't get this one. Could you elaborate ?
|
We'll need other modules( |
…irstname_auth_signup' module is also installed
e81724a to
efdb411
Compare
I don't use middlename and second_lastname, but indeed, it will be required. @NL66278 : fixed ! CI is green. |
|
@legalsylvain I tend to think it is good enough, but you could solve the coverage problem by adding a unit test for _signup_retrieve_info. |
This module is a glue module installed when OCA
partner_firstnamemodule and Odoosignupmodule are installed.This allows the customer to enter their first and last names in the signup form.
depends on :