This question has been flagged
1 Reply
9489 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

Avatar
Discard
Best Answer

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....

Avatar
Discard
Author

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

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

Author

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

Author

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

Have you tried dropbox??

Author

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

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...

Author

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

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

Author

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....

Author

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......

Author

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

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

Author

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........

Author

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

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

Author

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

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.

Author

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

Author

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

Author

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

Author

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

Author

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

Author

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

Author

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

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

Author

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

please check your mail

Author

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