Skip to content

Commit

Permalink
[MIG] sale_barcode: Migration to 16.0
Browse files Browse the repository at this point in the history
closes #674

Signed-off-by: matiasperalta1 <mnp@adhoc.com.ar>
  • Loading branch information
JrAdhoc authored and matiasperalta1 committed Aug 1, 2023
1 parent dfb5614 commit 06c5afe
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 43 deletions.
9 changes: 2 additions & 7 deletions sale_barcode/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale Barcode',
'version': "15.0.1.0.0",
'version': "16.0.1.0.0",
'category': 'Sales',
'sequence': 14,
'summary': '',
Expand All @@ -36,14 +36,9 @@
'views/sale_order_view.xml',
'wizards/res_config_settings_view.xml',
],
'assets':{
'web.assets_backend': [
'sale_barcode/static/src/js/sale_barcode_handler.js',
],
},
'demo': [
],
'installable': False,
'installable': True,
'auto_install': False,
'application': False,
}
3 changes: 0 additions & 3 deletions sale_barcode/models/sale_order.py
Expand Up @@ -34,7 +34,4 @@ def _add_product(self, product, qty=1.0):
'product_uom_qty': qty,
'order_id': self.id,
})
line.product_id_change()
line.product_uom_change()
line._onchange_discount()
return True
32 changes: 0 additions & 32 deletions sale_barcode/static/src/js/sale_barcode_handler.js

This file was deleted.

2 changes: 1 addition & 1 deletion sale_barcode/views/sale_order_view.xml
Expand Up @@ -7,7 +7,7 @@
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<form position="inside">
<field name="_barcode_scanned" widget="sale_barcode_handler" invisible="1"/>
<field name="_barcode_scanned" widget="barcode_handler" />
</form>
<xpath expr="//field[@name='order_line']/tree" position="inside">
<field name="product_barcode" invisible="1"/>
Expand Down

0 comments on commit 06c5afe

Please sign in to comment.