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

[9.0] [PORT] partner_firstname #238

Merged
merged 20 commits into from
Feb 12, 2016
Merged

Conversation

yvaucher
Copy link
Member

  • Take history of module partner_firstname from 8.0
  • 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
  • remove hack to make user editable
  • adapt check to accept invoicing or shipping address without name

@pedrobaeza pedrobaeza mentioned this pull request Jan 13, 2016
31 tasks
@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch 3 times, most recently from 59f95e0 to e4e2c3e Compare January 13, 2016 13:20
@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from e4e2c3e to db36544 Compare January 13, 2016 13:48
@yvaucher yvaucher added this to the 9.0 milestone Jan 13, 2016
@yvaucher
Copy link
Member Author

pylint error is not related. I fix it in #239

@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch 2 times, most recently from 0e92966 to 4895b4e Compare January 14, 2016 11:07
@pedrobaeza
Copy link
Member

Have you included latest changes in v8 following https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0?

@yvaucher
Copy link
Member Author

@pedrobaeza Can you be more specific? What I did is use the new short license header, check the README.rst (some contributors were missing) and move files in models and views folder, as stated in the description of this PR. Plus changes to moke travis happy of course.

Got it you talk about commits in 8.0 tree. I'll check it

@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from 4895b4e to 5f9b61b Compare January 18, 2016 13:29
@yvaucher
Copy link
Member Author

@pedrobaeza I added the missing commits some impact other modules. I tried to follow https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-9.0 however, 2nd procedure had conflicts on cherry picks, thus I had to make cherry-picks one by one by hand.

@pedrobaeza
Copy link
Member

I'm afraid cherry-picking doesn't work, because it modifies a lot of modules. Can you try again? Maybe I can bring the changes in 8.0 to 9.0 and then you rebase over that new 9.0 branch.

@yvaucher
Copy link
Member Author

@pedrobaeza What I can do is reedit my cherry-pick to ignore change in other modules. But this will split the commits in 9.0. Especially for translation. Maybe I should drop completely the translation commits ?

@pedrobaeza
Copy link
Member

You can use filter-branch in that commits to remove the rest of the modules, or directly discard then and then we need to make the translation again in Transifex. We can also do the other option I mention (prepare the 9.0 branch).

@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from 5f9b61b to ae0d15e Compare January 18, 2016 14:04

* Danish: Hans Henrik Gabelgaard
* Italian: Leonardo Donelli
* Spanish: Antonelli Espinosa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Antonelli Espinosa/Antonio Espinosa/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that, I'll fix it.

yvaucher and others added 5 commits January 20, 2016 13:05
- 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
…iew. Fixed in odoo/odoo#cf63d4d277ef1ba02ff4ebcdae8583332a1775b1
@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from 3c43fdc to a55ea3e Compare January 20, 2016 12:05
@yvaucher
Copy link
Member Author

@antespi It seems #227 is not ready yet. I can update this PR once it's resolved. Or we can do another PR.

@antespi
Copy link
Contributor

antespi commented Jan 20, 2016

@yvaucher ok, whatever first. Thanks

"is_company": False,
"type": 'invoice',
"lastname": "",
"firstname": ""})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really expected to work? A partner without name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does. For invoicing or shipping address only

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then shouldn't you add a test for shipping too?

@JonathanNEMRY
Copy link

Hello!
What's the status of this PR? Is the label need_review is always relevant?
In any cases, @yvaucher: Great work! I made some tests and it works perfectly. Also reviewed your code (maybe modification again about the name file res_partner.py) but for me it is a 👍

@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from 88ea07a to b5cabce Compare February 12, 2016 09:49
@yvaucher
Copy link
Member Author

@pedrobaeza Fixed the user.py and partner.py filename
@yajo improved the comment about removing the constraint

@JonathanNEMRY Should be ready now

@yajo
Copy link
Member

yajo commented Feb 12, 2016

Would you mind fixing #238 (comment)?

@yvaucher
Copy link
Member Author

@yajo this should do the trick 5dd2ceb

"""Create an shipping patner without name."""
self.original = self.env["res.partner"].create({
"is_company": False,
"type": 'shipping',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"delivery". See travis.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, thanks

@yvaucher yvaucher force-pushed the 9.0-port-partner-firstname branch from 5dd2ceb to 205ccfe Compare February 12, 2016 10:10
@yajo
Copy link
Member

yajo commented Feb 12, 2016

👍 Tested on runbot. Great work!

@JonathanNEMRY
Copy link

Awesome! So it's ready to be merged 😄

pedrobaeza added a commit that referenced this pull request Feb 12, 2016
@pedrobaeza pedrobaeza merged commit 3b65772 into OCA:9.0 Feb 12, 2016
@yvaucher yvaucher deleted the 9.0-port-partner-firstname branch February 15, 2016 09:31
@yvaucher
Copy link
Member Author

It seems we missed the required name on user form which forbid to create a user. Fixed here:

#249

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants