Purchase Order Report using Webkit Library and notes
purchase_order_webkit_with_notes · OCA/purchase-reporting
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 4 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
PurchaseConditionText— Class 'PurchaseConditionText' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. (2 occurrences in this file) migration-old-api-base · sourcePurchaseConditionText— Class 'PurchaseConditionText' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcepurchase_order_form_over— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_purchase_condition_list_webkit— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Replaces the legacy rml Quotation / Purchase Order report by a brand new webkit report with header and footer notes on the purchase order and quotation
It's the same report as purchase_order_webkit, but add notes for header and footer
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_order_form_over |
purchase.order.form.add.notes | purchase.order | form | Inherits purchase.purchase_order_form |
view_purchase_condition_list_webkit |
purchase.condition_text.list | purchase.condition_text | tree | New |
view_purchase_condition_webkit |
purchase.condition_text.form | purchase.condition_text | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (4)-
print_purchase(self, cr, uid, ids, context=None)This function prints the purchase order (already sent) -
print_quotation(self, cr, uid, ids, context=None)This function prints the purchase order and mark it as sent, so that we can see more easily the next step of the workflow -
set_footer(self, cr, uid, inv_id, commentid) -
set_header(self, cr, uid, inv_id, commentid)
Loading…
Loading…
Loading…