-
- Downloads
[MERGE] various: replace workflows by integrating them in models
Workflows are removed and replaced by python code directly embeded in model files. There are several reasons to do this * most of workflows are simple state machines. They simple go from state to state under simple conditions. Short circuits exist allowing to bypass part of the flow, like cancelling a record. However it is easier to understand a flow composed of several simple methods than having to understand the workflow in a separate xml file * workflows are hard to debug and modify. Each modification require a small migration. Moreover ensuring records are not blocked or that there does not exist unreachable states is hard to do. * having all business code in models helps understanding the business code. * most of our flows are quite simple and does not require a complex machinery to reflect it Workflow engine itself is kept. Lot of people use it and it can be very useful in some cases, notably in modeling more complex flows. Removing it is therefore not planned in this task.
Showing
- addons/account/__openerp__.py 0 additions, 1 deletionaddons/account/__openerp__.py
- addons/account/demo/account_invoice_demo.yml 8 additions, 5 deletionsaddons/account/demo/account_invoice_demo.yml
- addons/account/models/account_invoice.py 52 additions, 7 deletionsaddons/account/models/account_invoice.py
- addons/account/tests/test_account_customer_invoice.py 2 additions, 2 deletionsaddons/account/tests/test_account_customer_invoice.py
- addons/account/tests/test_account_supplier_invoice.py 1 addition, 1 deletionaddons/account/tests/test_account_supplier_invoice.py
- addons/account/tests/test_bank_statement_reconciliation.py 1 addition, 1 deletionaddons/account/tests/test_bank_statement_reconciliation.py
- addons/account/tests/test_payment.py 1 addition, 1 deletionaddons/account/tests/test_payment.py
- addons/account/tests/test_reconciliation.py 2 additions, 2 deletionsaddons/account/tests/test_reconciliation.py
- addons/account/views/account_invoice_view.xml 9 additions, 9 deletionsaddons/account/views/account_invoice_view.xml
- addons/account/views/account_invoice_workflow.xml 0 additions, 113 deletionsaddons/account/views/account_invoice_workflow.xml
- addons/account/views/account_unit_test.xml 1 addition, 1 deletionaddons/account/views/account_unit_test.xml
- addons/account/wizard/account_invoice_refund.py 1 addition, 1 deletionaddons/account/wizard/account_invoice_refund.py
- addons/account/wizard/account_invoice_state.py 2 additions, 2 deletionsaddons/account/wizard/account_invoice_state.py
- addons/account_budget/__openerp__.py 0 additions, 1 deletionaddons/account_budget/__openerp__.py
- addons/account_budget/data/account_budget_workflow.xml 0 additions, 87 deletionsaddons/account_budget/data/account_budget_workflow.xml
- addons/account_budget/models/account_budget.py 5 additions, 5 deletionsaddons/account_budget/models/account_budget.py
- addons/account_budget/tests/test_account_budget.py 6 additions, 6 deletionsaddons/account_budget/tests/test_account_budget.py
- addons/account_budget/views/account_budget_views.xml 5 additions, 5 deletionsaddons/account_budget/views/account_budget_views.xml
- addons/account_cancel/views/account_views.xml 4 additions, 4 deletionsaddons/account_cancel/views/account_views.xml
- addons/account_voucher/models/account_voucher.py 0 additions, 6 deletionsaddons/account_voucher/models/account_voucher.py
Loading
Please register or sign in to comment