Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Is it possible to have view fields without storing into the database?

By
naitsir
on 6/5/13, 10:14 PM 988 views

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

2
Zahin
On 6/6/13, 2:37 AM

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

naitsir
on 6/11/13, 11:52 AM

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

Zahin
on 6/12/13, 6:08 AM

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

naitsir
on 6/12/13, 7:44 PM

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 Kumar S
on 11/12/13, 6:58 AM

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

Zahin
on 11/12/13, 8:16 AM

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

Sampath Kumar S
on 11/13/13, 8:38 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 6/5/13, 10:14 PM
Seen: 988 times
Last updated: 3/16/15, 8:10 AM