-
-
Notifications
You must be signed in to change notification settings - Fork 851
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
[17.0][MIG] partner_firstname: Migration to 17.0 #1606
Conversation
because it's working as is
Fix pylint errors
…avoid problem with the new API [FIX] partner_firstname : Remove the value checks in tests. With Odoo v8, the value checks in tests raise a Warning "2015-02-05 08:59:44,867 4590 WARNING 00846-develop-v8-9743ea-all openerp.modules.module: Found deprecated fast_suite or checks attribute in test module openerp.addons.partner_firstname.tests. These have no effect in or after version 8.0." With Runbot, we cannot have any Warning.
In order to get visibility on https://www.odoo.com/apps the OCA board has decided to add the OCA as author of all the addons maintained as part of the association.
Fix wrong naming. Remove subclassing of exception, since there is only one. Rename exception according to PEP8. Reduce tests' redundancy. Add test for whitespace trimming. Use unicode for code & tests. Fix wrong comments. Split _name_inverse adding _name_clean_inverse. Conflicts: partner_firstname/models.py Remove license header in XML files. Preserve old view names. Credits to last translator. Increase coverage. Add args to exception to display the correct message in the UI. Execute _firstname_install when installing, and log it. Rename methods to follow guidelines. Better docstrings. Workaround odoo/odoo#6324. Fix users not being able to create companies. This happened because the invert method was not being called when using the UI, and because lastname & firstname fields were required while hidden. Add new tests and fix the resulting bugs. New tests, some fail. Add docs to test modules. Fix recursive onchange misbehavior & tests. Fix UI problem when lastname was u"". It should be `False` to avoid `required` errors. Use new() to create onchange records. Reduce redundancy in tests. Tests work with `mail` module installed now. Sometimes, the only way is to just skip them.
This fixes OCA#78 and adds new tests for it.
…tics. Conflicts: partner_contact_gender/__openerp__.py
- add missing authors - use reduced license header - move models in models directory - adapt views - show firstname, lastname only in edit mode - use company_type in views instead of is_company - adapt constraint on contacts [PORT][9.0] partner_firstname - remove hack to be able to edit user view. Fixed in odoo/odoo#cf63d4d277ef1ba02ff4ebcdae8583332a1775b1 [PORT][9.0] partner_firstname - Format of string in __openerp__.py [PORT][9.0] Adapt tests to take new constraint raising IntegrityError partner_firstname: Name is not mandatory if partner is an address [FIX] Ensure default values are computed for res.users Add test for shipping address with empty name partner_firstname: fix user creation User name field is required what is stoping to create a new user Fix user form with firstname and lastname asking for a mandatory name
…f adress 'type' is contact
* Prefer odoo to openerp & remove data tags * Move exceptions file out of models * Fix string selection in xpath * Rename res_users and add import * Fix api mismatches * Add missing param * Alphabetize imports * Remove readonly from computed field * Remove deprecated api.one * Add Tecnativa * Fix icon * Fix singleton issue * Add depends to compute
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, With the old xml it works, the change is just to make it more correct for V17, but the module works correctly in a local instance. With the old xml it works, the change is just to make it more correct for V17, but the module works correctly in a local instance.
@@ -0,0 +1,490 @@ | |||
<?xml version="1.0" encoding="utf-8"?> |
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.
On Odoo.sh to have the green light on branch, we need to remove this line
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 would have to be said in the mainteners repo as it creates it only when you pass the pre-commit.
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
@pedrobaeza Can you merge it? It works correctly |
/ocabot migration partner_firstname I see a comment unattended in |
Yes, but it does not affect the functionality at all, and as it stands it works fine. |
But it's the new syntax to be followed, so it's preferable to be changed. @moitabenfdz can you please change it? |
@AntoniRomera can you please extract a text for such conversion of the seetings to be added to the migration guide? |
Issue with the text: #594 |
c71665a
to
4725bd6
Compare
@pedrobaeza Changed it! Thank you @AntoniRomera for the proposed changes. |
Please squash the latest commit into the migration one. |
4725bd6
to
fd3bc85
Compare
@pedrobaeza I think it's more than ready now. |
/ocabot merge nobump |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 91354f0. Thanks a lot for contributing to OCA. ❤️ |
@OCA/board @OCA/core-maintainers It seems module is merged but not published on OCA shop: nor on Odoo apps page: https://apps.odoo.com/apps/modules/16.0/partner_firstname/ But correctly on pypi : https://pypi.org/project/odoo-addon-partner-firstname/ Could you look at ? |
No description provided.