Skip to content

Commit

Permalink
[17.0][MIG] stock_request_purchase: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ced-adhoc committed Jul 22, 2024
1 parent 5dd2e03 commit 6361791
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion stock_request_purchase/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Stock Request Purchase",
"summary": "Internal request for stock",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-request",
"author": "ForgeFlow, Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions stock_request_purchase/tests/test_stock_request_purchase.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def test_create_request_01(self):

picking.action_assign()
packout1 = picking.move_line_ids[0]
packout1.qty_done = 5
packout1.quantity = 5
picking.button_validate()

self.assertEqual(order.stock_request_ids.qty_in_progress, 0.0)
Expand Down Expand Up @@ -142,7 +142,7 @@ def test_create_request_02(self):

picking.action_assign()
packout1 = picking.move_line_ids[0]
packout1.qty_done = 10
packout1.quantity = 10
picking.button_validate()

self.assertEqual(stock_request_1.qty_in_progress, 0.0)
Expand Down
4 changes: 2 additions & 2 deletions stock_request_purchase/views/purchase_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
name="action_view_stock_request"
class="oe_stat_button"
icon="fa-chain"
attrs="{'invisible':[('stock_request_ids', '=', [])]}"
invisible="not stock_request_ids"
groups="stock_request.group_stock_request_user"
>
<field
name="stock_request_count"
widget="statinfo"
string="Stock Requests"
/>
<field name="stock_request_ids" attrs="{'invisible': True}" />
<field name="stock_request_ids" invisible="True" />
</button>
</xpath>
<xpath expr="//field[@name='order_line']/form//notebook" position="inside">
Expand Down
2 changes: 1 addition & 1 deletion stock_request_purchase/views/stock_request_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
name="action_view_purchase"
class="oe_stat_button"
icon="fa-credit-card"
attrs="{'invisible': [('purchase_count', '=', 0)]}"
invisible="purchase_count == 0"
groups="purchase.group_purchase_user"
>
<field name="purchase_count" widget="statinfo" string="Purchase" />
Expand Down
2 changes: 1 addition & 1 deletion stock_request_purchase/views/stock_request_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
name="action_view_purchase"
class="oe_stat_button"
icon="fa-credit-card"
attrs="{'invisible': [('purchase_count', '=', 0)]}"
invisible="purchase_count == 0"
groups="purchase.group_purchase_user"
>
<field name="purchase_count" widget="statinfo" string="Purchase" />
Expand Down

0 comments on commit 6361791

Please sign in to comment.