TIP: You can type at any time to perform a new search.
Account Cut-off Accrual Purchase
account_cutoff_accrual_purchase · OCA/account-closing
Security findings
Migration considerations
account_cutoff_line_form— For a target of Odoo 17.0+: view 'account_cutoff_line_form' uses `attrs=`/`states=`, which are no longer supported. Convert modifiers to direct Python boolean expressions in `invisible`/`readonly`/`required`; preserve the original AND/OR logic. migration-view-attrs-states · source- Raw `cr.execute()` INSERT/UPDATE/DELETE bypasses the ORM (no compute/constrains/tracking/mail): `UPDATE purchase_order_line SET is_cutoff_accrual_excluded = TRUE WHERE order_id IN ( SELECT id FROM purchase_order WHERE force_invoiced )` - re-check the table/column names still match after upgrading. migration-raw-sql-write · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/account-closing · module folder · Try on Runboat
- Module version
- Category
- Accounting & Finance
- Folder size
- 0.06 MB
- License
- AGPL-3
- Application
- Yes
- Auto-installable
- No
- Website
- https://github.com/OCA/account-closing
- Last tracking update
- 2026-09-10 10:57:49
- Authors
- Odoo Community Association (OCA), BCIM
- Maintainers
- Odoo Community Association (OCA), BCIM
- Committers
- Jacques-Etienne Baudoux, Laurent Mignon (ACSONE), Weblate, OCA-git-bot, oca-ci
- Odoo dependencies
- Python dependencies
- openupgradelib
- System dependencies
- None
- Required by
- account_cutoff_accrual_purchase_stock
- Description
Code Analysis
Views touched (1)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_cutoff_line_form |
account.cutoff.line | form | Inherits account_cutoff_base.account_cutoff_line_form |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (6)
New fields (1)
-
order_line_modelSelectionselection_add=[('purchase.order.line', 'Purchase Orders')]
No public methods.
New fields (2)
-
purchase_line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'readonly=Truestring='Purchase Order Line' -
purchase_order_idMany2onerelated='purchase_line_id.order_id'
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
unlink(self)check closed cutoffs when invoice lines are removed -
write(self, vals)keep closed cutoff quantities stable when invoice lines change
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)
New fields (2)
-
account_cutoff_line_idsOne2many → account.cutoff.linereadonly=Truestring='Account Cutoff Lines' args: 'account.cutoff.line', 'purchase_line_id' -
is_cutoff_accrual_excludedBooleancompute='_compute_is_cutoff_accrual_excluded'store=True
No public methods.