Search 1.9 billion lines of Odoo code on GitHub

elvenstudio_product_cost_sale

Author: ElvenStudio
License: AGPL-3
Branch: dev
Repository: aschenkels-ictstudio/Odoo
Dependencies: product, product_supplierinfo_for_customer, and product_variant_cost
Languages: Markdown (10, 7.2%), PO File (18, 13.0%), Python (73, 52.9%), and XML (37, 26.8%)
Other branches: master
Other repositories: DITIntl/Odoo-3, ElvenStudio/Odoo, Gio666/Odoo-1, Openworx/Odoo, dek-odoo/Odoo-1, dmattosr/Odoo, marcelomora/Odoo, mgielissen/Odoo-4, necrodevz/Odoo, sc4you/Odoo-1, and westlyou/Odoo-3

<h1>Product Sale Cost</h1> <h2>Add a product cost that depends on the current stock and the supplier price.</h2> <p>This module adds a new product cost called cost<em>sale, that is evaluated as follow: * if the product is in stock, the cost is equal to the variant cost price; * if the product is not in stock, the price is got from the main supplier. * if the context need a quantity Q of the product and the shock has q1 &lt; Q the cost is: cost</em>sale = (q1 * variant<em>cost</em>price + (Q - q1) * supplier price ) / Q.</p> <p>This new cost_sale can be used in product pricelist as base cost for pricelists.</p>