콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5343 화면

I need to add a field in my saler order view and use the on_change function on that field, but I do not want to be a relationship between this view field and a data base field.

I just need this field to do some calculations,

thanks in advance for your help

regards. Naitsir

아바타
취소
베스트 답변

OpenERP Functional field.

Functional field do calculation and you can make it store=False.

Also visit openerp documents.

def _compute_day(self, cr, uid, ids, context=None):
    ....
    .....
'day_open': fields.function(_compute_day, string='Days to Open', \
                                multi='day_open', type="float", store=False),

See more example in addons.

Hope with will be helpful to you.

:)

아바타
취소
작성자

thanks for you help :)

I have another question, I hope you can help me. Is there a way to "add an item" on a view on the client? I mean, I have the sale order for and we can add products by click "add an item" link, I need a way to add items just click on a buttom.

in OpenERP 6.0 this is possible by creating a new sale.order.line using the "create" function. but in OpenERO 7.0 the all the "create" functions are executed at the moment of save the order. How can I do to add items?? should be generally for any item (not necessarlly for lines of a sale order) thank you in advance

Sorry I am not getting, Please explore your problem with simple work or by posting images ?

작성자

thanks, I created a new threat for this question :)

hii...Zahin I'm new to OpenERP and even I'm facing a similar problem, I need a add a image to my report which is not stored in my database can u please help me out...! Thanks in advance

#Sampath: From URL image convert to base64 image then pass to report.

Hii.... Zahin i tried it but its not working the image is not getting printed

관련 게시물 답글 화면 활동
4
12월 24
30923
1
12월 24
1641
1
2월 24
2048
2
9월 23
8493
1
7월 19
4540