I want to add two more columns "column1" and "column2" to res.users model. I want to show these two columns in the Settings -> users -> create -> in "Access Rights", "Other" menu. How can i proceed for this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi,
Try below code
class res_users(osv.osv):
_inherit = 'res.users'
_columns = {
'column1': fields.char('column1', size=30),
'column2': fields.char('column1', size=30),
}res_users()
<record id="view_users_form_inherit" model="ir.ui.view">
<field name="name">res.users.form.inherit</field>
<field name="model">res.users</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="column1" />
<field name="column2" />
</field>
</field>
</record>
Thank you, This solved my problem
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Nov 24
|
3368 | ||
|
2
Okt 17
|
6971 | ||
|
2
Des 16
|
11739 | ||
|
1
Mei 16
|
5605 | ||
|
4
Feb 25
|
2311 |