Skip to content

odoo/technical-training

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Odoo 12.0 - Technical Training

=======

Modify Business Flows

Goal

In this module, you will learn to modify existing business flows.

Requirements

Problem 1: Double Validation on Sales Orders

Create a small module that depends on the module sale. The module should add a double validation process on sales orders: the sales user first confirms their sales order, then a sales manager double-confirm it. Add an extra possible value for the field state on model sale.order, and modify the buttons on the sales order form. The first confirmation put the sales order in your extra state. The second confirmation should assign the sales order to the state sale.

References

Problem 2: Close an Issue with a URL

Project issues already provide email feedback to their customer. Currently, the email received by the customer of an issue already provides links to view the issue, etc. Add a link inside the email that closes the issue upon click.

When a links in the email is clicked, the url is resolved by an HTTP controller in the Odoo server. The controller is a method that may execute some business code thanks to the Odoo ORM, and it may return a response that renders an HTML template.

Note that creating a new controller is not really necessary: you may use the existing controllers to achieve what you want (see references below.) Make it call a method that checks the issue's field stage_id, and modifies it.

References

Problem 3: Detect Time Overtaking on Tasks

When a user encodes some timesheet for a project task, the remaining hours are computed on the task. If the user encodes more hours than the task's planned hours, it may be a sign of a problem on the task. In that case, an email should be sent to the user's manager.

References

Releases

No releases published

Packages

No packages published

Languages