Skip to Content
Menu
This question has been flagged
2 Replies
2757 Views

Hi,

I've installed a module called barcode_scanning_sale_purchase from cybrosys, unfortunately this one broke my whole invoice or offer view. They are not responding.

I've uninstalled it already.


Every time I try to open an offer or invoice it says:


Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception
    raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'barcode_scan' on model 'sale.order.line'

Does anyone know where and how to get rid of that field barcode_scan in sale.order.line that even doesn't exist?

Thanks Martin
Avatar
Discard

Hello Martin,

Have you tried to update the sales app?

Thanks,

Hi Martin,

We have tested the above module (barcode_scanning_sale_purchase) which you have mentioned, but we didn't get such issues after uninstalling the module, this may be an issue of database cache or conflict between any other third-party module. If you need more clarification regarding the same you can sent your queries to odoo@cybrosys.com .

Reagards

Author

@Cybrosys: I already had this issue when installing the module, not on uninstalling, also this error while installing:

Error while importing module 'barcode_scanning_sale_purchase'.

while parsing /tmp/tmpt016ff_n/barcode_scanning_sale_purchase/views/sale_order_line.xml:4, near

<record id="sale_order_view_inherit_barcode1" model="ir.ui.view">

<field name="name">sale.order.form.inherit</field>

<field name="model">sale.order</field>

<field name="inherit_id" ref="sale.view_order_form"/>

<field name="arch" type="xml">

<xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="before">

<field name="barcode_scan"/>

</xpath>

</field>

</record>

Make sure those modules are installed and try again.

Thanks Martin

Author

@Jack Dane: No I didn't. Did it now, no changes thanks Martin

Author

@cybrosys: yes I tired it as you described, and I'm on community edition. I'll test the direct upload via filesystem. thanks

Author

Thanks installing it via filesystem repaired it somehow and installation ran successfully! Thanks Martin

Best Answer

@Martin are you trying to install the module using following option?. If you are trying this method,  these option is used for importing modules mostly build in Odoo studio(if you are using enterprise edition).

If you need to install the above module you refer the following slide.

https://www.cybrosys.com/slides/Install-Custom-Modules-in-Odoo


Avatar
Discard
Author Best Answer

@Cybrosys: I already had this issue when installing the module, not on uninstalling, also this error while installing:

Error while importing module 'barcode_scanning_sale_purchase'.


 while parsing /tmp/tmpt016ff_n/barcode_scanning_sale_purchase/views/sale_order_line.xml:4, near

<record id="sale_order_view_inherit_barcode1" model="ir.ui.view">

            <field name="name">sale.order.form.inherit</field>

            <field name="model">sale.order</field>

            <field name="inherit_id" ref="sale.view_order_form"/>

            <field name="arch" type="xml">

               <xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="before">

                        <field name="barcode_scan"/>

               </xpath>

            </field>

        </record> 

 Make sure those modules are installed and try again.


Thanks Martin

Avatar
Discard

Hello Martin,

When you uninstall this app, is the view still present in Settings->Technical->Views?

Thanks,

Author

Hello Jack,

If you mean sale_order_view_inherit_barcode1 no, this is no longer present.

Sorry to ask but I'm new to odoo, digged deep into for setting it up in school, and then this neck-breaker.

Everything was ready and I just wanted to add barcode for stock picking and lot number for products in stock (where they are really stored and not using different locations) :-(

thanks

Martin