summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorPedro M. Baeza <pedro.baeza@tecnativa.com>2020-03-02 11:05:50 +0000
committerPedro M. Baeza <pedro.baeza@tecnativa.com>2020-03-02 17:06:25 +0000
commit32c81cc1952f3bf1f95ab58b20f589bed24db257 (patch)
treec5f464d3121bd4d23dcd74868e8d9c1d73fbae9d /addons/web/static/src/js/views/basic/basic_controller.js
parent01412dd7d99e65885f240c4ba5e4b8de21c44fa2 (diff)
[FIX] mrp_subcontracting: Allow subcontractor contacts to be used
**Steps to reproduce:** * Create a subcontractor. * Create a BoM of type Subcontracting and assign the subcontractor. * Create a children contact for the subcontractor. * Creat a purchase order (or a receipt picking) with the children contact of the subcontractor. * Confirm the document. **Current behavior:** Subcontractor documents are not created. **Expected result:** They should be created. **Cause:** The BoM search is not including possible parents of the partners. **Solution:** With the use of `parent_of` operator in the search, we cover both cases of the children and the parent as initiators of the subcontracting. closes odoo/odoo#46670 X-original-commit: 86726aba26f4ba8d7dadb29ed2415baf49fe54c0 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions