-
-
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
Partner lastname 2 #153
Partner lastname 2 #153
Conversation
After last commits, I think it's production-ready. This is the 2nd try of #105, FTR. |
@yajo @antespi @eLBati please review. We have two PR for two modules with different name and same functionality. @yajo I think we must change name. Better partner_second_lastname, as is how it is known for this field internationally. After @antespi and @eLBati review we will close PR 141 and go ahead with this one and the new name. I would not want to add more modules to this project until we discover the problem of issue #154. It's a general issue, no body can deleted res.partner. |
I know, but #105 was closed, and #141 depends on #140 (and both lack ✅).
No problem.
Let's keep that discussion in #154's thread. BTW you did not answer there to last comments. |
This module was written to extend the functionality of ``partner_firstname`` to | ||
support having a second lastname for contact partners. | ||
|
||
In some countries, it"s important to have a second last name for contacts. |
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.
it"s
-> it's
@yajo as you see in #154 even though you get a ✅ Bugs exists. Please add test for:
partner_firstname and partner_second_lastname addons are critical, this affect to the full functionality of Odoo. It could be more easy if core assume that anyone in the worldwide has name and family name at least! Thanks |
👍 |
@eLBati @pedrobaeza could you review this PR please? |
|
||
@api.one | ||
@api.depends("firstname", "lastname", "lastname2") | ||
def _compute_name(self): |
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 should use new hooks functions to modify the behaviour instead of overwriting the original method.
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.
Actually I need to modify it because it depends in lastname2
now. BTW, #159 complicated more than helped. I'll update and fix it here too ASAP.
👍 code review and functional review. Some comments:
|
@yajo @pedrobaeza @eLBati anything yo say of
|
Please, one more review here? already review by @antespi and me. Thanks |
All will be easier if you merge #170 before. 😉 |
I'm pinging @adrienpeiffer @antespi because the last commits will break #159. I need a dict in
It should be tested after merging #170 (and it would be related with this one too if merged, but I already fixed it in the last commits).
You read my mind! 😆 And about I'd appreciate some help about the coveralls' 🚫. |
Last commit removed the workaround of #154 assuming that #171 was fixing it, but at the end it does not. However the bug is not in this package nor in I'd still like @adrienpeiffer, @antespi or somebody else to check if something is broken related to #159 because I don't know what project relies on that PR. |
@antespi please review. I thinks this PR is ready to merge. |
Are the 23 commits really necessary? |
Please, check pylint-odoo beta messages: ************* Module partner_firstname.__openerp__
partner_firstname/__openerp__.py:21: [C8102(manifest-required-key), ] Missing required key "license" in manifest file
************* Module partner_firstname.exceptions
partner_firstname/exceptions.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module partner_firstname.tests.test_empty
partner_firstname/tests/test_empty.py:1: [C8201(no-utf8-coding-comment), ] No UTF-8 coding comment found: Use `# coding: utf-8` or `# -*- coding: utf-8 -*-`
************* Module partner_second_lastname.__openerp__
partner_second_lastname/__openerp__.py:5: [C8101(manifest-required-author), ] Missing author required "Odoo Community Association (OCA)" in manifest file
partner_second_lastname/__openerp__.py:5: [C8102(manifest-required-key), ] Missing required key "license" in manifest file |
Rebased, squashed, fixed. |
Tested 👍 Latin people will be very happy including their mother's lastname ;) |
Teste in runbot 👍 |
I think this module is ready to be merged, any opinions/comments please? Thanks |
For further information, please visit: | ||
|
||
* https://www.odoo.com/forum/help-1 | ||
|
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 👍 A little comment: Add try-me-on-runbot button in readme, please |
👍 |
Done. |
Aiming for OCA/l10n-spain#174, this is an alternative for #141.
It adds a second lastname to contacts.