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

error while importing a module

By
R.sridevi
on 11/12/13, 7:54 AM 1,455 views

I created a very simple export module...when i tried to update it i got error in syntax. I corrected the error in module and i replaced the same module in addons....when i again tried to update it. It shows as export : to install...when i press update it is showing me same error which was shown for the first time..though it is correct......

so i am unable to install module how can i fix it....please kindly help....thanks in advance

0
Prajul P T
On 11/12/13, 8:00 AM

Hi, After reviewing your module, i found following errors:

  • Indentation Error on line 2 and 11 of file export.py
  • In export.py from osv import osv,field should be from osv import osv,fields
  • invalid table name in export.py
  • Group tag mismatch in file export_view.xml. <group> tag starting at line 27 was not closed.
  • Actions defined for menus "Transactions" and "Master List of Document" was throwing errors since you have defined the action after the menu definition.
  • Model Name specified in all the view and actions are incorrect.
  • There is a action named "action_transexport_export" defined for model student.student but the model is not defined in the module. if this model is from any other module, please add dependency to that module.

I was able to install the module after solving above errors....

sir, I want to attach my module for your reference....so there is no enough space to put my code snippet

R.sridevi
on 11/12/13, 8:13 AM

You can upload the code to dropbox and share its link...

Zesty Beanz Technologies, Prajul P T
on 11/12/13, 8:36 AM

I am sad to say that when i tried attaching a file it says sorry, you require karma 30 to attach this file....its dissappointing

R.sridevi
on 11/12/13, 8:56 AM

i cant attach my file as i do not have karma 30 points....sad

R.sridevi
on 11/12/13, 8:59 AM

Have you tried dropbox??

Zesty Beanz Technologies, Prajul P T
on 11/12/13, 9:12 AM

if you dont mind can you please tell me where can i find drop box....please....I need your help sir....

R.sridevi
on 11/12/13, 9:19 AM

Register in https://www.dropbox.com/. After log in, you can upload in dropbox. After upload, rightclick on the file and select "Copy Public Link". Paste that link here...

Zesty Beanz Technologies, Prajul P T
on 11/12/13, 9:28 AM

https://www.dropbox.com/sh/bdaraktm3ke4jqg/CaC6ZLFKIY this is my link please check it...thanks a lot

R.sridevi
on 11/12/13, 10:12 AM

Hi, I have edited my answer. You can get the module from https://dl.dropboxusercontent.com/u/88263455/Help/export.zip

Zesty Beanz Technologies, Prajul P T
on 11/12/13, 1:14 PM

I thank you from my bottom of my heart for your reply.......I ll get back to you with in short time....i ll install my module now....

R.sridevi
on 11/13/13, 1:37 AM

I am able to install my module......I am terribly happy....Thans for everything..............sir i want my module name to be like this on openerp.......https://www.dropbox.com/sh/839wqpu0m5z6kf1/K7lY133U5l help me please......

R.sridevi
on 11/13/13, 2:19 AM

I am very eagerly waiting for your answer..........

R.sridevi
on 11/13/13, 3:42 AM

Change <menuitem name="Export" id="menu_export_module" parent="base.menu_base_partner"/> to <menuitem name="Export" id="menu_export_module"/>. Add another menu below this in code as <menuitem name="Transactions" id="menu_export_module_sub" parent="menu_export_module"/>. Now change parent of menu "Transactions" as menu_export_module_sub and "Master List of Document" as menu_export_module_sub

Zesty Beanz Technologies, Prajul P T
on 11/13/13, 10:05 AM

Thank you very much......sir i have a request for you.....as u are aware of module...i would like to ask this question.....In masterlist of document i have customer name and invoice number as fields.....so how can i make invoice number of sale order to be related with my invoice number of master list of documents.....so that i should be able to automatically fetch customer name........please give me ur suggestions........

R.sridevi
on 11/14/13, 1:05 AM

sir your suggestions is very important to me......i will be waiting....

R.sridevi
on 11/14/13, 4:39 AM

I didn't get your requirement correctly......

Zesty Beanz Technologies, Prajul P T
on 11/14/13, 6:54 AM

ok il be clear....in openerp sales order we have customer reference number & customer name as fields.........in my module i have created two field like invoice number and customer name............so my idea is when i take customer reference number of sale order and if i put in my module invoice number field i should automatically get customer name.......please see this link https://www.dropbox.com/home/Screenshots.............i need your feedback sir

R.sridevi
on 11/14/13, 7:10 AM

Ok..... So i think the better way for you would be to write a onchange for the field invoice_number and in that onchange function, search for the order with the input number as customer reference and fetch the partner from that. But there is a problem. As you can see the field "Customer Reference" is a charecter field and can be edited at any time even after confirming the order. So i think it would be better to make it a readonly field after confirming the order.

Zesty Beanz Technologies, Prajul P T
on 11/14/13, 8:31 AM

thanks for your reply sir......instead of that can i take invoicing number of a customer from accounting module of openerp and if put it in to my module invoicing number field then can i fetch the customer data automatically .please refer this link https://www.dropbox.com/home/Screenshots

R.sridevi
on 11/14/13, 9:23 AM

thanks for your reply sir......instead of that can i take invoicing number of a customer from accounting module of openerp and if put it in to my module invoicing number field then can i fetch the customer data automatically .please refer this link https://www.dropbox.com/home/Screenshots

R.sridevi
on 11/14/13, 9:23 AM

thanks for your reply sir......instead of that can i take invoicing number of a customer from accounting module of openerp and if put it in to my module invoicing number field then can i fetch the customer data automatically .please refer this link https://www.dropbox.com/home/Screenshots

R.sridevi
on 11/14/13, 9:24 AM

thanks for your reply sir......instead of that can i take invoicing number of a customer from accounting module of openerp and if put it in to my module invoicing number field then can i fetch the customer data automatically .please refer this link https://www.dropbox.com/home/Screenshots

R.sridevi
on 11/14/13, 9:24 AM

sir i am really happy to see your replies.....actually my friend and me doing this project of openerp as our internship to create a export module....we like to share our functional spec if you like supporting two novice learners......my personal id is sridevi.sd14@gmail.com.......i also i have fear that you may stop giving us your precious help as i sent my personal id......if so forgive me....but a i believe that you will not stop replying me.....please do not do it.....you are only hope now

R.sridevi
on 11/14/13, 9:33 AM

sir is it possible to create print button at the center of the page....

R.sridevi
on 11/18/13, 1:37 AM

thanks a lot.....i understood very well.....i created a report module for a module to print a form with out fetching any objects.....my issue is when i try to install a module xml architecture error i do not know where i am going wrong....please view this link and help me https://www.dropbox.com/sh/x90ykrocworffkz/rusLpiXGVE

R.sridevi
on 11/18/13, 7:10 AM

Why is this module related to module export in __openerp__.py?

Zesty Beanz Technologies, Prajul P T
on 11/19/13, 9:31 AM

hmmm....sir i fixed it....I wanted to create a drop down for my print button for my same module.so in order to get drop downn i created another module with out business logic files...i could install that module but i couldnot find my new form name in my print button.view this link it has main module https://www.dropbox.com/sh/x90ykrocworffkz/rusLpiXGVE and new module https://www.dropbox.com/sh/77wq6foe8lj4t9p/2zX34QU3ui please check it

R.sridevi
on 11/19/13, 9:48 AM

please check your mail

Zesty Beanz Technologies, Prajul P T
on 11/19/13, 10:28 AM

sir please can you guide me how to convert amount to words in indian format

R.sridevi
on 11/21/13, 6:03 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

1 follower(s)

Stats

Asked: 11/12/13, 7:54 AM
Seen: 1455 times
Last updated: 3/16/15, 8:10 AM