Skip to content

Commit

Permalink
[IMP]其他入库单行context去掉源和目标库位
Browse files Browse the repository at this point in the history
  • Loading branch information
floraXiao committed Jul 8, 2016
1 parent ab216da commit 53d0634
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion sell/tests/test_sell.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def test_onchange_warehouse_id(self):
'warehouse_type': 'customer',
'default_partner': self.delivery.partner_id.id}).onchange_warehouse_id()
self.assertTrue(line.discount_rate == 90)
line.with_context({'default_date':'2017-02-01',
line.with_context({'default_date':'3000-02-01',
'warehouse_type': 'customer',
'default_partner': self.delivery.partner_id.id}).onchange_warehouse_id()
self.assertTrue(line.discount_rate == 0)
Expand Down
2 changes: 0 additions & 2 deletions warehouse/view/warehouse_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,6 @@
<group string='入库明细'>
<field nolabel='1' name='line_in_ids' context="{
'tree_view_ref': 'warehouse.wh_move_line_in_tree',
'warehouse_id': warehouse_id,
'warehouse_dest_id': warehouse_dest_id,
'type': 'in',
}" attrs="{'readonly': [('state', '!=', 'draft')]}" />
</group>
Expand Down

0 comments on commit 53d0634

Please sign in to comment.