Purchase Update Proposal
purchase_update_proposal · OCA/purchase-workflow
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 61 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.27 MB
Module directory on disk
Code analysis
12 migration notes
4 models
7 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
PurchaseOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (11 methods) migration-api-multi-one · sourcePurchaseOrderLine— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourcepurchase_line_proposal_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourcepurchase_line_proposal_tree— 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 · sourcepurchase_order_form— 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 · sourcesupplier_purchase_order_form— 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 · sourcesupplier_purchase_order_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) 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
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
purchase_line_proposal_tree |
purchase.line.proposal | tree | New | |
purchase_order_form |
purchase.order | form | Inherits purchase.purchase_order_form | |
supplier_purchase_order_form |
purchase.order | form | New | |
supplier_purchase_order_tree |
purchase.order | tree | New | |
view_partner_form |
res.partner | form | Inherits base.view_partner_form | |
view_purchase_order_filter |
purchase.order | Inherits purchase.view_purchase_order_filter | ||
view_supplier_purchase_order_filter |
purchase.order | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (13)
-
check_priceBooleanrelated='order_id.partner_id.check_price_on_proposal' -
dateDatestring='New Date' -
date_plannedDatereadonly=Truerelated='line_id.date_planned'string='Old Date' -
line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'ondelete='cascade'required=Truestring='Purchase Line' -
line_id_Integercompute='_compute_line_id' -
order_idMany2one → purchase.ordercomodel_name='purchase.order'ondelete='cascade'required=Truestring='Purchase' -
partially_receivedBooleanrelated='order_id.partially_received' -
price_uFloatdigits_compute=dp.get_precision('Product Price')string='New Price U.' -
price_unitFloatreadonly=Truerelated='line_id.price_unit'string='Old Price' -
product_idMany2onereadonly=Truerelated='line_id.product_id' -
product_qtyFloatreadonly=Truerelated='line_id.product_qty'string='Old Qty' -
qtyFloatdigits_compute=dp.get_precision('Product Unit of Measure')string='New Qty' -
supplier_refCharcompute='_compute_supplier_ref'readonly=Truestring='Ref'
No public methods.
New fields (8)
-
check_price_on_proposalBooleanrelated='partner_id.check_price_on_proposal' -
partially_receivedBooleancompute='_compute_partially_received'compute_sudo=Truehelp='Checked if at least partially delivered'store=False -
proposal_countIntegercompute='_compute_proposal' -
proposal_dateDatecopy=Falsehelp='Update all date of the order with this date'string='Update all dates at once' -
proposal_displayBooleanhelp='If checked, rejected proposals are hidden.'string='Display/Hide Proposal' -
proposal_idsOne2many → purchase.line.proposalcomodel_name='purchase.line.proposal'inverse_name='order_id' -
proposal_stateSelectioncopy=Falsedefault='draft'readonly=Trueselection=[('draft', 'To Submit'), ('submitted', 'To Approve by an internal user'), ('rejected', 'Rejected'), ('approved', 'Approved')] -
proposal_updatableSelectioncopy=Falsedefault=''help='Computed to be sure that stock move are in a state compatible with update'selection=[('', 'undefined'), ('yes', 'Yes'), ('no', 'No')]
-
approve_proposal(self)@api.multiWe need to update purchase lines with approved lines. If 1 purchase line has created more than 1 line, we update the first one and create another purchase line -
button_switch2other_view(self)@api.multi -
onchange_proposal_date(self)@api.onchange('proposal_date') -
populate_all_purchase_lines(self)@api.multi -
reject_proposal(self)@api.multi -
reset_proposal(self)@api.multi -
submit_proposal(self)@api.multi -
wkf_confirm_order(self)@api.multi -
write(self, vals)@api.multi
New fields (3)
-
proposal_countIntegerrelated='order_id.proposal_count'store=False -
receivedSelectioncompute='_compute_received'compute_sudo=Truehelp='Defined if quantity is partially or completely received (at least the quantity of the line)'selection=[('', 'No'), ('partially', 'Partially'), ('all', 'All')]store=False -
supplier_cancel_statusCharcompute='_compute_supplier_cancel_status'help='Indicate if the line is cancelled'string='Status'
-
button_supplier_update_proposal(self)@api.multiCall button_update_proposal() but from the view supplier_purchase_order_form We can't pass the context from the view because the button is linked to the tree view of order_line -
button_update_proposal(self)@api.multi
New fields (1)
-
check_price_on_proposalBooleanhelp='If checked, match price on purchase proposal'
No public methods.