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

[Add] [10.0] hr_employee_social_media #317

Merged
merged 2 commits into from
Mar 2, 2017
Merged

Conversation

leemannd
Copy link
Contributor

@leemannd leemannd commented Feb 22, 2017

The main goal of this module is to have a list of the employee's social media
and social communication tools.

This module add the following to Employee:

  • Menu entry in settings for creating new social-media
  • View Tree in employee's form to list/add new social-media accounts

@leemannd leemannd changed the title Add 10.0 hr_employee_social_media [Add] [10.0] hr_employee_social_media Feb 22, 2017
@feketemihai feketemihai added this to the 10.0 milestone Feb 23, 2017
@leemannd
Copy link
Contributor Author

@feketemihai Hello, I'll gladly fix the PR. Did you forget to put a comment?

Copy link
Member

@feketemihai feketemihai left a comment

Choose a reason for hiding this comment

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

I put one direct on the readme file...check it again...

Thanks for the contribution, nice module, but i think we should make it more usefull, adding a model hr.employee.social.media.sites with the name of the site(network, eg. Skype, Facebook,...), a new model that links employee with social media sites and add their account name, by this we are letting people adding the one that they want...beside skype, twitter, whatsapp, there are a lot of other social media network theat people are used to...

@@ -0,0 +1,44 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
Copy link
Member

Choose a reason for hiding this comment

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

@leemannd Thanks for the contribution, nice module, but i think we should make it more usefull, adding a model hr.employee.social.media.sites with the name of the site(network, eg. Skype, Facebook,...), a new model that links employee with social media sites and add their account name, by this we are letting people adding the one that they want...beside skype, twitter, whatsapp, there are a lot of other social media network theat people are used to...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@feketemihai Thanks for the comment. I agree, it could be more usefull in your way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@feketemihai I've updated it following your comments. You'll find a first draft to review.

@leemannd leemannd force-pushed the add-hr_social_media branch 2 times, most recently from 3da6b13 to 873759d Compare February 27, 2017 11:20
@leemannd
Copy link
Contributor Author

leemannd commented Feb 27, 2017

N.B: Data file is going to be updated to have a sample.
EDIT: data sample added

name = fields.Char(
string='Name',
)
website = fields.Char(

Choose a reason for hiding this comment

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

pls, do not use "website" as field name. It can collide many times. Be more explicit and use something like "social_url".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@simahawk Updated. & added small sample data

@leemannd leemannd force-pushed the add-hr_social_media branch 4 times, most recently from f63aea8 to 63d9958 Compare February 27, 2017 12:58
<xpath expr="//page[@name='public']/group" position="inside">
<group name="social_media" string="Social Media Accounts">
<field name="social_media_account_ids" nolabel="1">
<tree>
Copy link
Member

Choose a reason for hiding this comment

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

@leemannd Can you add an editable="bottom" on the tree, even specified only the tree view, it still open the form view...and on the form view it shows the employee Null, so you can assign from one employee a social media account for other employee...

Copy link
Member

@gurneyalex gurneyalex left a comment

Choose a reason for hiding this comment

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

I approve once the small leaked in file is removed.

@leemannd
Copy link
Contributor Author

@gurneyalex @feketemihai Hello, Thanks for your feedback. It has been updated

@feketemihai
Copy link
Member

@leemannd @gurneyalex The PR is ok, but i am wondering, should we leave the Social Media Accounts on the Public Info tab, or we should move them to Personal Info tab...

@guewen guewen merged commit 981acd6 into OCA:10.0 Mar 2, 2017
@leemannd leemannd deleted the add-hr_social_media branch March 3, 2017 08:48
@gurneyalex
Copy link
Member

@feketemihai Could also be a new separate page.

sambarros pushed a commit to sambarros/hr that referenced this pull request Jul 26, 2018
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.

5 participants