PMIS Purchase Stock
Allows authorized users to edit stock-move purchase-line links and adjusts open move dates when purchase planned dates change. Dependencies are purchase_stock and account; there are no addon-specific settings.
Purchase-line links
Billing users (account.group_account_invoice) and Accounting Managers (account.group_account_manager) can explicitly set or clear stock.move.purchase_line_id. Other users are blocked by the model's create/write checks, subject to the automatic-flow bypass described below.
Open the stock move or transfer.
Select Purchase Order Line matching the move's product and company.
Save the move; the linked purchase line's received-quantity cache is invalidated.
The form makes the field read-only for done or canceled moves. This state restriction is view-level, not a server-side prohibition for an authorized caller. Product and company consistency are checked when the link is supplied.
Automatic purchase stock-move creation sets pmis_purchase_auto_flow to bypass the group check; superuser calls also bypass it. This is a context-based bypass, not an independently authenticated automation identity. Consistency checks still apply.
Planned dates
After the standard deadline update, the addon updates both date_deadline and date on purchase-line moves that are not done or canceled. If no such direct moves exist, it uses unfinished destination moves instead. The value is the new planned date plus the move company's purchase lead time in days. Picking scheduling follows the standard stock dependencies.
Bug Tracker
Bugs are tracked on PMISuite Repository Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Credits
Contributors
Matjaž Mozetič
Maintainers
Current maintainer:
Luxim is an independent R&D and deployment company focused on solving complex problems in the Odoo ecosystem.
Luxim is an active member of OCA (Odoo Community Association).






