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

add field for uploading image in custom module

By
arsalan
on 6/26/13, 3:38 AM 2,901 views

Hi I have created an openerp 7 custom module. I am using eclipse IDE with Python for debugging. I have added 2 fields in my module and is working fine . But on adding the 3rd field am having "xml architecture " error .

1) I cant resolve this issue

2) Next thing is that I want to add field for image attachment . So that users can attach their image along with their account. How can this be done?

Hopes for suggestion

Hi! Please specify or paste your error here. So we can solve your problem.

Keyur
on 6/26/13, 3:50 AM
0
vim24
On 6/26/13, 4:01 AM

In regards to 2): add the field into your python file with:

'image': fields.binary("Image", help="Select image here"),

and into you view xml file with:

<field name="image" widget='image' />

As for question 1) you will need to provide more details or a proper stacktrace. XML architecture errors could refer to any number of things.

" Error occurred while validating the field(s) arch: Invalid XML for View Architecture! " I am having this error

arsalan
on 6/26/13, 4:19 AM

As I said, you will need to provide more details about the error, theres no way to tell whats wrong with that message alone...Edit your post with your actual code so we can have hope of seeing what the issue is, or post the full stack trace from the openerp log

vim24
on 6/30/13, 7:25 PM

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

1 follower(s)

Stats

Asked: 6/26/13, 3:38 AM
Seen: 2901 times
Last updated: 3/16/15, 8:10 AM