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

[18.0] [MIG] partner_firstname: Migration to 18.0 #1865

Merged
merged 92 commits into from
Oct 24, 2024

Conversation

SonoDavid
Copy link

No description provided.

eLBati and others added 30 commits October 14, 2024 12:58
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.
Conflicts:
	partner_firstname/__openerp__.py
	partner_firstname/tests/__init__.py

Fix flake8 error

After all, this was just a workaround. Remove it.

The real fix was in OCA#171. I leave the tests.

Fix test that was having sentences after return.

PEP8 fix.
…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
* 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
@rousseldenis
Copy link
Contributor

/ocabot migration partner_firstname

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 18, 2024
@SonoDavid SonoDavid changed the title [MIG] partner_firstname: Migration to 18.0 [18.0] [MIG] partner_firstname: Migration to 18.0 Oct 19, 2024
@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). 🤖

@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-1865-by-rousseldenis-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 22, 2024
Signed-off-by rousseldenis
@OCA-git-bot
Copy link
Contributor

@rousseldenis your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1865-by-rousseldenis-bump-nobump.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@SonoDavid
Copy link
Author

The merge failed, should I do any action in order to make it succeed?

@SonoDavid SonoDavid force-pushed the 18.0-mig-partner_firstname branch 2 times, most recently from 92608d9 to ce2ec38 Compare October 23, 2024 11:56
@SonoDavid SonoDavid force-pushed the 18.0-mig-partner_firstname branch from ce2ec38 to 249f435 Compare October 23, 2024 12:01
@SonoDavid
Copy link
Author

SonoDavid commented Oct 23, 2024

Fixed testing and linting issues in this new MR (functionally the same) @rousseldenis

@rousseldenis
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 18.0-ocabot-merge-pr-1865-by-rousseldenis-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit c90a70a into OCA:18.0 Oct 24, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@SonoDavid SonoDavid deleted the 18.0-mig-partner_firstname branch October 24, 2024 12:20
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.