Odoo Help

0

Is it possible to rename the "Employee" label to "Staff"?

By
Nate Foster
on 4/5/15, 10:56 PM 1,196 views

How can one rename the "Employee" label to "Staff" throughout the application?

Hi Foster, Are you using odoo in odoo cloud or your own server??

Baiju KS
on 4/6/15, 12:58 AM

Which model? u just use xpath for that, to rename.

Demirel yakito
on 4/6/15, 1:13 AM

I'm running v8 on my local server. We need to change the label "employee" to "staff" as we have many contractors that we use the HR module to keep track of, however, for legal reasons, they can not be referred to as an employee.

Nate Foster
on 4/21/15, 5:47 PM
1

gunnar

--gunnar--
1168
| 6 7 8
Germany
--gunnar--

born

gunnar
On 4/21/15, 6:01 PM

Couldn't you just make a custom Language (based on the default English)?

  1. export the English Translation you have to a csv file (>Settings >Translations >Import/Export)

  2. find & replace 'Employee' with 'staff'

  3. import your custom language to odoo

  4. use it (>Settings >Translations >Load a Translation)

That is a good ideal! I'll try that as soon as I can. Thank you.

Nate Foster
on 4/21/15, 6:06 PM

fell free to check or upvote the answer if it actually works

gunnar
on 4/21/15, 11:02 PM
0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
4022
| 5 4 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 4/6/15, 1:34 AM

You can change the label by 2 ways:

1. Inherit the FORM view using XML (Preferred)

 <record id="view_attendance_form_inherit" model="ir.ui.view">
	<field name="name">hr.attendance.form</field>
	<field name="model">hr.attendance</field>
	<field name="inherit_id" ref="hr_attendance.view_attendance_form" />
	<field name="arch" type="xml">
		<xpath expr="//field[@name='employee_id']" position="attributes">
			<attribute name="string">Staff</attribute>
		</xpath>
	</field>
</record>
2. change the attribute with PY file

class hr_attendance(models.Model):
    _inherit='hr.attendance'
    employee_id = fields.Many2one(string="Staff")

Thanks for you answer! I'm a newbie here and am still learing the in and outs. So in the first listed solution, could you point me towards how to "inherit the form view"? I'm excited to finish getting my installation dialed in and deployed.

Nate Foster
on 4/21/15, 5:43 PM

copy the record available in Option1 to a view.xml file and add this file in __openerp__.py file. for more info check on how to create a basic module: https://www.odoo.com/documentation/8.0/howtos/backend.html

Atchuthan - Technical Consultant, Sodexis Inc
on 4/22/15, 12:58 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)

Stats

Asked: 4/5/15, 10:56 PM
Seen: 1196 times
Last updated: 4/21/15, 6:48 PM