Skip to content

Commit

Permalink
Fix build errors and image
Browse files Browse the repository at this point in the history
  • Loading branch information
lasley committed Feb 20, 2017
1 parent 0c45a33 commit bcefd89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 5 additions & 0 deletions barcodes_generator_stock_picking/demo/stock_picking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

<record id="stock_picking_barcode" model="stock.picking">
<field name="name">Picking with Generated Barcode</field>
<field name="picking_type_id" ref="stock.picking_type_out" />
<field name="origin">outgoing shipment w/ barcode</field>
<field name="partner_id" ref="base.res_partner_1" />
<field name="location_id" ref="stock.stock_location_stock" />
<field name="location_dest_id" ref="stock.stock_location_customers" />
<field name="barcode_rule_id" ref="stock_picking_generated_barcode" />
</record>

Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 4 additions & 8 deletions barcodes_generator_stock_picking/tests/test_barcode_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,9 @@
class TestBarcodeGenerator(TransactionCase):

def setUp(self):
super(Tests, self).setUp()
self.Model = self.env['stock.picking']
self.record = self.partner_obj.browse(
self.ref(
'barcodes_generator_stock_picking'
'.stock_picking_barcode'
),
super(TestBarcodeGenerator, self).setUp()
self.record = self.env.ref(
'barcodes_generator_stock_picking.stock_picking_barcode',
)
self.record.generate_barcode()

Expand All @@ -28,5 +24,5 @@ def test_generate_sequence(self):
""" It should generate the correct sequence for the barcode. """
self.assertEqual(
self.record.barcode,
"1230000000013",
"1230000000017",
)

0 comments on commit bcefd89

Please sign in to comment.