Technical name: account_reclassification
Establish a parallel reclassification on supplier invoices and let the product category decide the offset, without touching the inventory valuation. For accounting with your own chart of accounts that does not match the one Odoo uses by default.