Community mailing list archives

community@mail.odoo.com

Re: Odoo v9 Module : base_import_module

by
Andi Becker
- 01/05/2016 09:57:30
on what Odoo version are you actually working?


With kind regards,
Mit freundlichen Grüßen,
Con un cordial saludo,
Cordialement,
с сердечным приветом,
เรื่องที่เกี่ยวกับชนิด,
與親切的問候,

 ANDI BECKER

CEO/General Manager LisAndi Co., Ltd.

--------------------------------------------------

LisAndi Co. Ltd., Phuket, Thailand (lisandi.com)
15/21 M.2 Viset Road, Rawai, Muang, Phuket, Thailand 83130

Mobile: +66 (0)81 606 3378
VoIP:   +49 (0)711 50 88788 50
Fax:     +49 (0)711 50 88788 50
Skype:          lisandi
Facebook:     andibecker
Google Talk/Facetime/eMail:  andi@lisandi.com

--------------------------------------------------

This email may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email by mistake), please notify the sender immediately and destroy this email. Any unauthorized copying, disclosure or distribution of the material in this email is strictly prohibited. Email transmission security and error-free status cannot be guaranteed as information could be intercepted, corrupted, destroyed, delayed, incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which may arise as a result of email transmission

On Tue, Jan 5, 2016 at 2:28 AM, Luis Miguel Sarabia <luismiguel.sarabia@gmail.com> wrote:
Dear All,

Does anybody knows or have documentation on how to work with the base_import_module?

I am using it with no success. As follows I explain my first test.

I have created a module which adds a field in the client list of the point of sales and also adds this field in the Client List Search. 

My module have the following:

__openerp__.py

{
    'name' : 'point of sale extension',
    'version': '1.0',
    'author': "Same Motion",
    'website': "http://www.samemotion.com",
    'summary': 'Adapt point of Sales',
    'sequence': '1',
    'category': 'Extensions',
    'complexity': 'easy',
    'description':
        """
Point of Sale Extension
===========
Add the following to Point of Sale
        """,
    'depends': ['point_of_sale'],
    'data': ['views/template.xml'],
    'qweb': ['static/src/xml/pos.xml'],
    'installable': True,
    'auto_install': False,
    'application': False,
}

Template.xml

<?xml version="1.0" encoding="utf-8"?>
<!-- vim:fdn=3:
-->
<openerp>
    <data>

        <template id="assets" name="mydb assets" inherit_id="point_of_sale.assets">

            <xpath expr="." position="inside">
                
                <script type="text/javascript" src="/point_of_sale_extension/static/src/js/mydb.js"></script>
               
            </xpath>
        </template>

    </data>
</openerp>

I have tested this module by adding it in the addons folder and restaring my server and it works.

Now I would like to add this module to an Odoo Saas instance. For which I have followed the next steps. 
1. Created a zip file which contains the module folders and files.
2. Import the zip file using the base_import_module 

The import was successful , but the when I open the point of sale the new fields in the pos.xml files are not loaded. But the search which is in mydb.js is working.



Thanks a lot,


--



_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe