Merge pull request #4219 from bafbes/patch-10

Fix the list of thirdparty must be restricted to customer for invoices
This commit is contained in:
Laurent Destailleur 2015-12-16 19:04:01 +01:00
commit b2640498c4

View File

@ -2837,7 +2837,7 @@ else if ($id > 0 || ! empty($ref))
print '</tr></table>';
print '</td><td colspan="5">';
if ($action == 'editthirdparty') {
$form->form_thirdparty($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->socid, 'socid');
$form->form_thirdparty($_SERVER['PHP_SELF'] . '?facid=' . $object->id, $object->socid, 'socid','client>0');
} else {
print ' &nbsp;' . $soc->getNomUrl(1, 'compta');
print ' &nbsp; ';