Skip to content

Commit

Permalink
Merge pull request #29 from lepistone/fix-from-agreement-to-po-number
Browse files Browse the repository at this point in the history
fix: don't set code on PO generated from agreement
  • Loading branch information
yvaucher committed Nov 10, 2014
2 parents 9fd6a2a + e14a296 commit 19dfec7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def _prepare_purchase_order(self, cr, uid, line, po_pricelist,
data['fiscal_position'] = position
data['origin'] = requisition.name
data['date_order'] = requisition.date
data['name'] = requisition.name
data['consignee_id'] = requisition.consignee_id.id
data['incoterm_id'] = requisition.incoterm_id.id
data['incoterm_address'] = requisition.incoterm_address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_01_transform_source_to_agreement(self):
self.assertEqual(po.dest_address_id, add)
self.assertEqual(po.consignee_id, consignee)
self.assertEqual(po.state, 'draftpo')

self.assertNotEqual(po.name, self.requisition.name)
self.assertEqual(len(po.order_line), 2)

po_line = next(x for x in po.order_line
Expand Down

0 comments on commit 19dfec7

Please sign in to comment.