Skip to content

Commit

Permalink
Merge pull request #169 from jgrandguillaume/vertical-ngo-ui-smart-li…
Browse files Browse the repository at this point in the history
…nk-imprv-jge

Vertical ngo ui smart link improvements
  • Loading branch information
lepistone committed Jun 11, 2015
2 parents 6ca9dff + a4afd77 commit a978ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion logistic_requisition/model/logistic_requisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def button_view_source_lines(self):
@api.multi
def _get_relevant_purchases(self):
sourced_lines = self.line_ids.filtered(
lambda rec: rec.state == 'Sourced'
lambda rec: rec.state in ('sourced', 'quoted')
)
purchases = sourced_lines.mapped(
'source_ids.purchase_line_id.order_id'
Expand Down
2 changes: 1 addition & 1 deletion logistic_requisition/view/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<field string="Relevant Bid &amp; PO" name="lr_purchase_count" widget="statinfo" />
</button>
<button class="oe_inline oe_stat_button" name="action_open_lr_purchases"
type="object" icon="fa-shopping-cart" states="accepted,waiting_date,progress,manual,shipping_except,invoice_except">
type="object" icon="fa-shopping-cart" states="sent,accepted,waiting_date,progress,manual,shipping_except,invoice_except,cancel,done">
<field string="Relevant PO" name="lr_purchase_count" widget="statinfo" />
</button>
</div>
Expand Down

0 comments on commit a978ed3

Please sign in to comment.