Purchase Vendor Bill Breakdown
purchase_vendor_bill_breakdown · OCA/purchase-workflow
Health
45/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 38 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.15 MB
Module directory on disk
Code analysis
1 migration note
7 models
5 views
0 HTTP endpoints
Migration considerations
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. (2 occurrences in this file) migration-view-attrs-states · 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 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_supplierinfo_component_form_view |
product.supplierinfo.component.form.view | product.supplierinfo | form | Inherits purchase_supplierinfo_product_breakdown.product_supplierinfo_component_form_view |
product_supplierinfo_tree_view4 |
product.spplierinfo.inherit.tree.view | product.supplierinfo | tree | Inherits purchase_supplierinfo_product_breakdown.product_supplierinfo_tree_view3 |
purchase_order_form |
purchase.order.form.inherit | purchase.order | form | Inherits purchase.purchase_order_form |
purchase_order_line_components_form_view |
purchase.order.line.components.form.view | purchase.order.line | form | New |
view_product_supplier_inherit |
product.template.supplier.form.inherit | product.template | form | Inherits purchase_supplierinfo_product_breakdown.view_product_supplier_inherit |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
New fields (0)
No new fields.
Public methods (1)-
create(self, vals_list)@api.model_create_multi
New fields (1)
-
component_qtyFloatdefault=0.0
No public methods.
New fields (2)
-
priceFloatcompute='_compute_price'inverse='_inverse_price'store=True -
price_manualFloatcopy=Falsedigits='Product Price'string='Price'
No public methods.
New fields (2)
-
current_priceFloatcompute='_compute_current_price'store=Truestring='Current price' -
price_totalFloatcompute='_compute_price_total'store=True
-
get_supplier_by_args(self, product_id, partner_id)@api.modelGet first supplier by product and vendor name
New fields (1)
-
use_product_componentsBoolean
-
set_partner_use_product_components(self)@api.onchange('partner_id')Set 'Use Product Components' based on product settings -
write(self, vals)
New fields (5)
-
component_idsOne2many → purchase.order.line.componentcomodel_name='purchase.order.line.component'inverse_name='line_id' -
last_qty_invoicedFloatcompute='_compute_last_qty_invoiced'store=Truestring='Billed Qty' -
show_breakdownBooleancompute='_compute_show_breakdown' -
supplier_idMany2one → product.supplierinfocomodel_name='product.supplierinfo'compute='_compute_supplier_id'store=True -
use_product_componentsBooleanrelated='order_id.use_product_components'
-
action_open_component_view(self)Open view with product components -
check_component_ids(self)@api.constrains('component_ids')Checking a component for uniqueness -
create(self, vals)@api.model -
write(self, vals)
New fields (14)
-
component_idMany2one → product.productcomodel_name='product.product'required=Truestring='Component' -
component_uom_category_idMany2onerelated='component_id.uom_id.category_id' -
currency_idMany2onereadonly=Truerelated='line_id.order_id.currency_id'store=Truestring='Currency' -
line_idMany2one → purchase.order.linecomodel_name='purchase.order.line'required=Truestring='Purchase Order Line' -
partner_idMany2onerelated='line_id.order_id.partner_id' -
price_subtotalMonetarycompute='_compute_price_subtotal'store=Truestring='Subtotal' -
price_unitFloatcompute='_compute_price_unit'default=0.0digits='Unit Price'required=Truestore=Truestring='Unit Price' -
product_uom_idMany2one → uom.uomdomain="[('category_id', '=', component_uom_category_id)]"required=Truestring='Unit of Measure' args: 'uom.uom' -
product_uom_qtyFloatdefault=1.0required=Truestring='Quantity per Unit' -
qty_invoicedFloatcompute='_compute_qty_invoiced'readonly=1store=Truestring='Billed' -
qty_to_invoiceFloatcompute='_compute_qty_invoiced'digits='Component Unit of Measure'readonly=Truestore=Truestring='To Invoice Quantity' -
supplier_idMany2onerelated='line_id.supplier_id' -
totalFloatcompute='_compute_total'string='Quantity' -
total_qtyFloatdefault=0.0readonly=Truerequired=Truestring='Received'
-
onchange_component_id(self)@api.onchange('component_id')Set default value at component onchange