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 15, 2024
1 parent 7cfd421 commit 32f3c95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 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/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 32f3c95

Please sign in to comment.