Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
9 ตอบกลับ
20673 มุมมอง

Hello All

I got following error

Unknown error during import: <class 'openerp.exceptions.RedirectWarning'>: (u'You cannot create a new user from here.\n To create new user please go to configuration panel.', 76, u'Go to the configuration panel') at row 2

Resolve other errors first


while importing user.csv from create user(import button)


can we create user by importing data???

if any idea plz tell


thanks in advanced.

อวตาร
ละทิ้ง

were you able to solve this ?

คำตอบที่ดีที่สุด

Check your User CSV file Login form mandatory fields are included

Login form mandatory fields are:

"login"

"Related Partner"

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

It will appear only when 'login' field is blank/not given in file.

Thanks,

อวตาร
ละทิ้ง

This solved my issue, thanks

คำตอบที่ดีที่สุด

Thanks you Prakash for list of mandatory fields,  

Here is my full xml sample :


    <record id="myuser" model="res.users">

         <field name="name">myuser bla bla</field>

         <field name="login">myuser_bla_bla</field> 

         <field name="partner_id" eval="ref('base.main_partner')"/> <!-- base.main_partner is the external id of a res_partner -->

         <field name="comment">User for my website interface</field> 

          <field name="groups_id" eval="[(4, ref('mymodule.mypublicgroup')) ]"/> <!-- mymodule.mypublicgroup is the external id of a res_group to give some rights to my new user -->

    </record>


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

+1

I just got into the very same error!

อวตาร
ละทิ้ง

any success with the error ? just ran into the error too

คำตอบที่ดีที่สุด

In my case I just added some dummy data and create two user accounts first from the interface level and then I export those in to an excel sheet by using export button in Tree-view. Then again I created my csv file according to that file and then Import it again without any error.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Can you try with a fresh database without demo data? Demo data from some module may be causing the error. I think you may find the error causing file from the error log.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Prakash's answer works for me. To import users from cvs/xls file just need minimum two fields: Name and Login (email).

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ม.ค. 16
3297
0
ธ.ค. 15
3982
1
ก.ค. 18
4282
1
มี.ค. 18
3476
1
มี.ค. 16
3422