|
| 1 | +======= |
| 2 | +Margins |
| 3 | +======= |
| 4 | + |
| 5 | +The sales margin is the profit gained from the sale of a product or service after all the costs |
| 6 | +related to it have been accounted for. |
| 7 | + |
| 8 | +In the Odoo **Sales** application, it is possible to show sales margins on quotations and sales |
| 9 | +orders. Salespeople can use the feature for better management and monitoring of profitability. |
| 10 | + |
| 11 | +Configuration |
| 12 | +============= |
| 13 | + |
| 14 | +To activate the *Margins* feature, go to the :menuselection:`Sales app --> Configuration --> |
| 15 | +Settings`. In the :guilabel:`Pricing` section, tick the :guilabel:`Margins` checkbox. Then click |
| 16 | +:guilabel:`Save`. |
| 17 | + |
| 18 | +.. image:: margin/margins-checkbox.png |
| 19 | + :alt: Margins checkbox. |
| 20 | + |
| 21 | +.. _sales_quotations/margin/configure-price-and-cost: |
| 22 | + |
| 23 | +Configure price and cost |
| 24 | +------------------------ |
| 25 | + |
| 26 | +To automatically calculate the sales margin for each quotation or sales order line item, go to |
| 27 | +:menuselection:`Sales app --> Products --> Products`. Fill out the :guilabel:`Sales Price` and |
| 28 | +:guilabel:`Cost` fields in the :guilabel:`General Information` tab for every product. |
| 29 | + |
| 30 | +Odoo calculates the margin by: |
| 31 | + |
| 32 | +.. math:: |
| 33 | + Sales~Margin = Sales~Price - Cost |
| 34 | +
|
| 35 | +The margin percentage is calculated by: |
| 36 | + |
| 37 | +.. math:: |
| 38 | + \frac{Sales~Price - Cost~Price}{Sales~Price} \times 100 |
| 39 | +
|
| 40 | +.. image:: margin/product-view.png |
| 41 | + :alt: Cable Management box product page. |
| 42 | + |
| 43 | +Compute margins on sales orders |
| 44 | +=============================== |
| 45 | + |
| 46 | +Go to :menuselection:`Sales app --> Orders --> Quotations` and click the :guilabel:`New` button to |
| 47 | +begin a new quotation. Fill out the quotation with the necessary information. While adding products |
| 48 | +to the quotation, a new field, :guilabel:`Margin`, automatically appears at the bottom of the |
| 49 | +document. This field displays the order's total margin in the configured currency as well as the |
| 50 | +percentage. |
| 51 | + |
| 52 | +.. image:: margin/so-with-margin-field.png |
| 53 | + :alt: Sales order with Margin field on the bottom. |
| 54 | + |
| 55 | +To display a product's margin and the margin percentage per line item, click the |
| 56 | +:icon:`oi-settings-adjust` :guilabel:`(settings adjust)` icon in the :guilabel:`Order Lines` tab. |
| 57 | + |
| 58 | +Then, tick the checkboxes for :guilabel:`Margin` and :guilabel:`Margin(%)`. The :guilabel:`Margin` |
| 59 | +column shows the profit to earn from the sale after accounting for all associated costs. It displays |
| 60 | +in the configured currency value. The :guilabel:`Margin(%)` shows the margin value as a percentage. |
| 61 | +The margin for one unit is multiplied by the quantity to determine the margin for the entire line. |
| 62 | + |
| 63 | +The :guilabel:`Margin` and :guilabel:`Margin(%)` columns are not displayed by default, but once |
| 64 | +enabled, the columns appear on all new and existing quotations and :abbr:`SOs (sales orders)`. |
| 65 | + |
| 66 | +.. image:: margin/so-with-margins-checkboxes.png |
| 67 | + :alt: Sales order with Margin and Margin(%) columns displayed. |
| 68 | + |
| 69 | +.. note:: |
| 70 | + The :guilabel:`Margin` and :guilabel:`Margin (%)` columns are not editable since they are |
| 71 | + automatic calculations. To change the calculation, refer to :ref:`Configure price and cost |
| 72 | + <sales_quotations/margin/configure-price-and-cost>` section for more information. |
| 73 | + |
| 74 | +Margin calculation with a pricelist |
| 75 | +=================================== |
| 76 | + |
| 77 | +To calculate the margin with an applied pricelist, begin with configuring a pricelist for the |
| 78 | +product. Follow these steps: |
| 79 | + |
| 80 | +#. Go to :menuselection:`Sales app --> Products --> Pricelists` and click the :guilabel:`New` |
| 81 | + button. |
| 82 | +#. Enter the name of the pricelist and click :guilabel:`Add a line` to create a new pricelist |
| 83 | + rule. |
| 84 | +#. Configure the pricelist and click :guilabel:`Save & Close` button. |
| 85 | +#. Go to :menuselection:`Sales app --> Orders --> Quotations` and create a quotation. |
| 86 | +#. In the :guilabel:`Pricelist` field, select the newly made pricelist. |
| 87 | +#. Click on :guilabel:`Update Prices` to refresh the product price and margin. |
| 88 | + |
| 89 | +.. example:: |
| 90 | + To apply a seasonal 5% discount on blue denim jeans that requires a minumim of two pairs of jeans |
| 91 | + in an order and is valid only from October to the end of December, the pricelist rule should look |
| 92 | + like this: |
| 93 | + |
| 94 | + .. image:: margin/pricelist-configuration.png |
| 95 | + :alt: Pricelist Rules pop-up window. |
| 96 | + |
| 97 | + After saving the pricelist, go to the desired :abbr:`SO (sales order)` and select the newly |
| 98 | + created pricelist, and adjust the quantity according to the pricelist's rule. |
| 99 | + |
| 100 | + .. image:: margin/so-with-pricelist.png |
| 101 | + :alt: Sales order with a new pricelist selected. |
| 102 | + |
| 103 | + After the changes are made, click :icon:`fa-refresh` :guilabel:`Update Prices` to update the |
| 104 | + :guilabel:`Margin`, :guilabel:`Margin (%)`, and :guilabel:`Amount`. The margin is recalculated |
| 105 | + based on the pricelist-adjusted product's sales price and cost. |
| 106 | + |
| 107 | + .. image:: margin/so-with-applied-pricelist.png |
| 108 | + :alt: Sales order with margins recalculated based on the price-list adjustment. |
| 109 | + |
| 110 | +.. tip:: |
| 111 | + Another way to visualize the impact of margins on sales orders is to go to :menuselection:`Sales |
| 112 | + app --> Orders --> Quotations`, select the :icon:`fa-area-chart` :guilabel:`(area chart)` icon or |
| 113 | + :icon:`oi-view-pivot` :guilabel:`(pivot)` icon, click :guilabel:`Measures` button and change it |
| 114 | + to :guilabel:`Margin` to see margin contributions across the customer base. |
| 115 | + |
0 commit comments