Few remarks:
1. onchange_duedate_search_entries => onchange_duedate
2. onchange_duedate_search_entries method missing domain of credit > 0 and account_id.reconcile = True as shown in old code.
3. Will select the unpaid yet supplier's invoices before the selected due date. => Remove this.
4. Please improve get_obj_ref return variable types.
Few remarks: duedate_ search_ entries => onchange_duedate duedate_ search_ entries method missing domain of credit > 0 and account_ id.reconcile = True as shown in old code.
1. onchange_
2. onchange_
3. Will select the unpaid yet supplier's invoices before the selected due date. => Remove this.
4. Please improve get_obj_ref return variable types.