In some applications, such as invoicing, you need to fill data based on a document. To ease the data-filling process, a new feature was added to Odoo version 12 to display the document on the side of the form view.
In this recipe, we will learn how to display the form view and the document side by side:
Internally, this feature uses some responsive utilities, so this feature only works in enterprise edition. However you can still use this code in your module. Odoo will automatically handle this, so if the module is installed in the enterprise edition, it will show the document, while in the community edition, it will hide everything without any side-effects.