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

class manufacturing_process(osv.Model):
    _name = 'manufacturing_process'
    _description = 'manufacturing process'
    _columns = {

        'status': fields.selection([('0','process created'),
                                    ('1','outstock'),
                                    ('2','supplier choice'),
                                    ('3','waiting financial agreement'),
                                    ('4','order process')], default='0')
    }

When I work on my local machine server (127.0.0.1,odoo 8 version 8.0-20170429

used for development) It works perfectly, default value is set correctly

When I copy  my module on my synology server with Odoo 8.0.0-0109, default value is not set with exactly the same code...

Someone can helps me for this issue?

Thanks and sincerely yours

อวตาร
ละทิ้ง

Are you sure that you copied the module there, then restarted the server, installed/upgraded the module?

I am not 100% sure of this but for defaults I think the module needs to be upgraded.

ผู้เขียน

Yes... I'm sure...

Formerly I thought that it was a "wright access" issue... So I have done a lot of restart upgrade etc...

Then I discovered that it was a default value that wasn't set.

Thanks for the hint

ผู้เขียน คำตอบที่ดีที่สุด

I made a little very ugly bypass by having created a: Settings->"Action"-> "User-defined defaults"

But I'm not happy at all with that solution... I'm not stuck anymore but it's an ugly way to bypass the issue...

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 21
94
0
มิ.ย. 25
2
3
มิ.ย. 25
722
3
เม.ย. 25
9510
3
ก.ค. 24
18342