Skip to content

Commit

Permalink
[MIG] mrp_subcontracting_purchase_link: Migration to 17.0
Browse files Browse the repository at this point in the history
Standard migration to 17.0
  • Loading branch information
MeritxellAForgeFlow committed Jan 9, 2025
1 parent c253ea4 commit 7b91bba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mrp_subcontracting_purchase_link/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
{
"name": "Link Purchase Order Line to Subcontract Productions",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Manufacturing",
"license": "LGPL-3",
"author": "Quartile Limited, ForgeFlow, Odoo Community Association (OCA)",
Expand Down
4 changes: 2 additions & 2 deletions mrp_subcontracting_purchase_link/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ def update_po_line_in_mrp_production(cr):
)


def post_init_hook(cr, registry):
update_po_line_in_mrp_production(cr)
def post_init_hook(env):
update_po_line_in_mrp_production(env.cr)
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
name="action_view_mrp"
class="oe_stat_button"
icon="fa-wrench"
attrs="{'invisible':[('subcontract_production_count', '=', 0)]}"
invisible="subcontract_production_count == 0"
groups="stock.group_stock_user"
>
<field name="subcontract_production_ids" invisible="1" />
Expand Down

0 comments on commit 7b91bba

Please sign in to comment.