summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/core
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2018-01-02 08:56:41 +0100
committerjem-odoo <jem@openerp.com>2018-08-10 16:30:20 +0200
commit6ea10114160c9f2f61347f3a54e3ff07a6d79b40 (patch)
tree5ddc785bc0b7d525b59f40b2dcfb40809d014f97 /addons/web/static/src/js/core
parent8cdc95a331d9102778ff855f9bc4cdb7a8b6c9ba (diff)
[ADD] sale_purchase: purchase automatically for services
This commit adds a new module providing the automatically services purchasing feature ("Service Subcontracting"). The product of 'service' type can be flag (in the purchase tab of its form view) as "purchase automatically". When adding an sale order line with that kind of product, it will generate a Purchase Order for the supplier of the product, on Sales Order confirmation. The PO will contains one line with the quantity on the sale line, with the UoM conversion (purchase uom might be different from the sale uom on product configuration). The generated PO is in draft state. Then several cases can happen: 1/ Increasing the quantity on the sale line - If PO is draft state ('draft', 'sent', 'to approve') : increase the quantity on the PO - If PO is confirmed state ('purchase', 'done', 'cancel') : create a new PO 2/ Decreasing of quantity on the sale line - in any cases: shedule a next activity on the PO 3/ Cancelling SO: shedule a next activity on the impacted PO 4/ Cancelling PO: shedule a next activity on the origin SO The introduction of this module required to move the link between sale.order.line and purchase.order.line from stock_dropshipping to thie module, and put sale_purchase as a dependency of stock_dropshipping. This commit also brings some test cases. Task #39340 Closes #25221
Diffstat (limited to 'addons/web/static/src/js/core')
0 files changed, 0 insertions, 0 deletions