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

In Open ERP 7 there is feature in status bar that have attribute clickable.I've set clickable="True" but when I click the status bar, there is just return null value. And the state doesnt update to state that I clicked. Did I miss something?

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

This issue has been patched, please look at :- bugs.launchpad.net/openerp-web/+bug/1202080

For statusbar color please look at :- bugs.launchpad.net/openerp-web/+bug/1159723

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

Hi,

As standard the status bar is not a selected object that I can see (correct me if if I am wrong) simply setting the attributes to click-able will really do nothing.

You or somebody would need to write a module to do what you want. Order status changes depending on the location in the order workflow. i.e from draft to confirmed to done. It is possible to create a module that would change the order or object state say if you pressed a button. Hope this helps

Rhys

อวตาร
ละทิ้ง
ผู้เขียน

well,I've application that status bar is clickable, and when I click the state, it automaticly change state that I click. But I can't find the source because it's someone customize modul. and yes, change the attributes to clickable do something, like status bar is clickable but in my case there is just return null value,and when I set clickable false the statusbar not click able.

so the question is how I can do like that?

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

Hi,

I have this same problem right now. When I put in view

<field name="state"  widget="statusbar" clickable="True" />

and in _columns

'state' : fields.selection([
                               ('active','Active'),
                                ('inactive','Inactive'), 
                                ('expiring', 'Expiring'),
                                ],
                                'State', 
                                track_visibility='onchange'),

when I click a status on the statusbar server receive vals['state'] == None.

But when I use in _columns

'state_id': fields.many2one('jp.offer.state', 'State', track_visibility='onchange', ondelete="set null"),

and in view

<field name="state_id" widget="statusbar" clickable="True"/>

It works properly.

Does it mean statusbar widget works only with many2one fields?

Regards, Marcin

อวตาร
ละทิ้ง

Yes impressive, i confirme this case, same thing here.

Hi,I followed you suggestions but the status bar color not change.My code is here,<field name="state" widget="statusbar" statusbar_visible="draft,confirm,approved,done,cancel" statusbar_colors='{"draft":"blue","confirm":"blue","approved":"blue"}'/>

<field name="state" widget="statusbar" statusbar_visible="draft,confirm,approved,done,cancel" statusbar_colors='{"draft":"blue","confirm":"blue","approved":"blue"}'/>. But color not change..pls help how to solve this

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

Hi

I think it is a bug, and as such I posted it here >>bugs.launchpad.net/openerp-web/+bug/1175960<< (copy without ">>" "<<", I can't post links yet), but I haven't received any reply so far. Maybe if you click on "Does this bug affect you?" it will get more visibility and recieve an answer from the dev team.

Thanks!

อวตาร
ละทิ้ง

I did affect my self in the Bug, thanks for sharing..

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ม.ค. 22
6938
1
มี.ค. 15
4903
1
พ.ค. 25
2797
1
เม.ย. 22
6163
1
พ.ค. 21
6981