Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
8700 มุมมอง

If anyone does not know this directly, where at least is located the script that control product importing validation?? Thanks!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello Matheus !

Just inherit product.product and override the _constraints and _check_ean_key for ean13. remove the validation from the function and make it working as you want .

Example is here

https://bitbucket.org/BizzAppDev/product_ean13_validation_remove

อวตาร
ละทิ้ง

however, POS will still have some constraints when using the gun reader..%

The add point_of_sale in your depenc in __openerp__ file.

https://bitbucket.org/BizzAppDev/product_ean13_validation_remove

This module for Odoo 8 ? Thanks

@erdal Tuna No it is not yet migrated or tested for v8 . But most probably it will work.

@Ruchir Shukla Thanks for fast reply :) I need disable EAN Code on Odoo8, but i cant :( Can you do this ?

@erdal yes sir

@Ruchir Shukla, How do I do it ? :(

for V8 checkout 8.0 branch

@Ruchir Shukla , I need new product create but , EAN Validation error came always. How can i disable ean validation V8. Sorry for my broken English.

คำตอบที่ดีที่สุด

Erdal,

Install the module from https://bitbucket.org/BizzAppDev/product_ean13_validation_remove.

Rest will be all yours.

Thanks.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

I dont understand all answers, How can i disable ean13 validation. Please help.

Please explain step by step.

Regards.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

The module that you can find here allows you to create product with a value inside EAN13 fields that is not a EAN13 but an other type of barcode.

https://bitbucket.org/BizzAppDev/product_ean13_validation_remove

BUT, this module do not modify the behavior of the POS when you scan the barcode of a product.
If you scan a UPC code (12 digits), the javascript in devices.js add a leading 0 to the scanned barcode in order to match the EAN patern (13 digits). So, the search of products failed and you receive a warning message...

Does anyone know how to modify the device.js to let us allow the use of any barcode with the POS?

 

 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.ค. 15
5284
2
พ.ค. 25
1369
Import from Winbooks แก้ไขแล้ว
4
พ.ค. 25
5082
1
ส.ค. 24
2362
1
ก.พ. 24
3118