Accounting - MRP
mrp_account · odoo/odoo
product_extended via mrp_bom_cost (12.0) · mrp_bom_cost (13.0) · mrp_production_byproduct_cost_share (15.0)-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 8 Odoo series since 13.0
Heuristic over the facts below, not an audit · How it's computed
Description
Analytic Accounting in MRP
- Cost structure report
Also, allows to compute the cost of the product based on its BoM, using the costs of its components and work center operations. It adds a button on the product itself but also an action in the list view of the products. If the automated inventory valuation is active, the necessary accounting entries will be created.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 12
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
account_analytic_account_view_form_mrp |
account.analytic.account.form.mrp | account.analytic.account | form | Inherits analytic.view_account_analytic_account_form |
mrp_account.mo_overview_components |
mrp_account.mo_overview_components | ir.ui.view | qweb | Inherits mrp.mo_overview_components |
mrp_account.report_wip |
mrp_account.report_wip | ir.ui.view | qweb | New |
mrp_account_inherits_mrp_bom_form_view |
mrp_account.bom.form | mrp.bom | form | Inherits mrp.mrp_bom_form_view |
mrp_production_form_view_inherited |
mrp.production.view.inherited | mrp.production | form | Inherits mrp.mrp_production_form_view |
mrp_workcenter_view_inherit |
mrp.workcenter.form.inherit | mrp.workcenter | form | Inherits mrp.mrp_workcenter_view |
product_product_ext_form_view2 |
product_extended.product.form.view | product.template | form | Inherits product.product_template_only_form_view |
product_product_view_form_normal_inherit_extended |
product.product.view.form.normal.inherit.extended | product.product | form | Inherits product.product_normal_form_view |
view_move_form_inherit_mrp_account |
account.move.inherit.mrp.account | account.move | form | Inherits account.view_move_form |
view_production_graph_inherit_mrp_account |
mrp.production.graph.inherited.mrp.account | mrp.production | graph | Inherits mrp.view_production_graph |
view_production_pivot_inherit_mrp_account |
mrp.production.pivot.inherit.mrp.account | mrp.production | pivot | Inherits mrp.view_production_pivot |
view_wip_accounting_form |
Post WIP Accounting Entry | mrp.account.wip.accounting | form | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 20
-
bom_countIntegercompute='_compute_bom_count' args: 'BoM Count' -
bom_idsMany2many → mrp.bomargs: 'mrp.bom' -
production_countIntegercompute='_compute_production_count' args: 'Manufacturing Orders Count' -
production_idsMany2many → mrp.productionargs: 'mrp.production' -
workcenter_idsMany2many → mrp.workcenterargs: 'mrp.workcenter' -
workorder_countIntegercompute='_compute_workorder_count' args: 'Work Order Count'
-
action_view_mrp_bom(self) -
action_view_mrp_production(self) -
action_view_workorder(self)
-
business_domainSelectionondelete={'manufacturing_order': 'cascade'}selection_add=[('manufacturing_order', 'Manufacturing Order')]
No public methods.
-
categorySelectionselection_add=[('manufacturing_order', 'Manufacturing Orders')]
No public methods.
-
wip_production_countIntegercompute='_compute_wip_production_count' args: 'Manufacturing Orders Count' -
wip_production_idsMany2many → mrp.productioncopy=Falsehelp='The MOs that this WIP entry was based on. Expected to be set at time of WIP entry creation.'string='Relevant WIP MOs' args: 'mrp.production', 'wip_move_production_rel', 'move_id', 'production_id'
-
action_view_wip_production(self) -
copy(self, default=None)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
dateDatedefault=fields.Datetime.now args: 'Date' -
journal_idMany2one → account.journalrequired=True args: 'account.journal', 'Journal' -
line_idsOne2many → mrp.account.wip.accounting.linecompute='_compute_line_ids'readonly=Falsestore=True args: 'mrp.account.wip.accounting.line', 'wip_accounting_id', 'WIP accounting lines' -
mo_idsMany2many → mrp.productionargs: 'mrp.production' -
referenceCharargs: 'Reference' -
reversal_dateDatecompute='_compute_reversal_date'readonly=Falserequired=Truestore=True args: 'Reversal Date'
-
confirm(self) -
default_get(self, fields)@api.model
-
account_idMany2one → account.accountargs: 'account.account', 'Account' -
creditMonetarycompute='_compute_credit'readonly=Falsestore=True args: 'Credit' -
currency_idMany2one → res.currencydefault=<expr> args: 'res.currency', 'Currency' -
debitMonetarycompute='_compute_debit'readonly=Falsestore=True args: 'Debit' -
labelCharargs: 'Label' -
wip_accounting_idMany2one → mrp.account.wip.accountingargs: 'mrp.account.wip.accounting', 'WIP accounting wizard'
No public methods.
-
currency_idMany2one → res.currencyrelated='company_id.currency_id'string='Currency' args: 'res.currency' -
extra_costMonetarycurrency_field='currency_id'default=0.0help='Set an additional cost per manufactured unit (e.g. labour, energy, packaging)'readonly=Falsestore=Truestring='Extra Cost'
No public methods.
-
extra_costFloatcopy=Falsestring='Extra Unit Cost' -
show_valuationBooleancompute='_compute_show_valuation' -
wip_move_countIntegercompute='_compute_wip_move_count' args: 'WIP Journal Entry Count' -
wip_move_idsMany2many → account.movecopy=False args: 'account.move', 'wip_move_production_rel', 'production_id', 'move_id'
-
action_cancel(self) -
action_view_move_wip(self) -
create(self, vals_list)@api.model_create_multi -
write(self, vals)
-
costs_hour_account_idsMany2many → account.analytic.accountcompute='_compute_costs_hour_account_ids'store=True args: 'account.analytic.account' -
expense_account_idMany2one → account.accountcheck_company=Truehelp='The expense is accounted for when the manufacturing order is marked as done. If not set, it is the expense account of the final product that will be used instead.'string='Expense Account' args: 'account.account'
No public methods.
-
account_move_line_idMany2one → account.move.lineargs: 'account.move.line'
No public methods.
-
mo_analytic_account_line_idsMany2many → account.analytic.linecopy=False args: 'account.analytic.line', 'mrp_workorder_mo_analytic_rel' -
wc_analytic_account_line_idsMany2many → account.analytic.linecopy=False args: 'account.analytic.line', 'mrp_workorder_wc_analytic_rel'
-
action_cancel(self) -
unlink(self)
-
property_stock_account_production_cost_idMany2one → account.accountcheck_company=Truecompany_dependent=Truehelp='This account will be used as a valuation counterpart for both components and final products for manufacturing orders.\n If there are any workcenter/employee costs, this value will remain on the account once the production is completed.'ondelete='restrict' args: 'account.account', 'Production Account'
No public methods.
No new fields.
Public methods (2)-
action_bom_cost(self) -
button_bom_cost(self)
No new fields.
Public methods (2)-
action_bom_cost(self) -
button_bom_cost(self)
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
-
stock_account_production_cost_idMany2one → account.accountcheck_company=Truestring='Production Account' args: 'account.account'
No public methods.
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…