Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def create_bulk_transfer(self):
- self._generate_uuid()
- # Method 1 (Also tried typecasting to string): [https://pastebin.com/A5PSHcPu]
- beneficiary_transactions = self.env['openg2p.disbursement.main'].browse(
- [('batch_id', '=', self.id)])
- print(beneficiary_transactions)
- # Method 2 : (Same error as above): [https://pastebin.com/A5PSHcPu]
- beneficiary_transactions = self.env['openg2p.disbursement.main'].search(
- [('batch_id', '=', self.id)])
- #Finds batch_ids successfully
- print(beneficiary_transactions) # openg2p.disbursement.main(19,)
- beneficiary_transactions_records = []
- for ids in beneficiary_transactions:
- beneficiary_transactions_records.append(self.env['openg2p.disbursement.main'].browse(
- [('batch_id', '=', ids.id)]))
- #Method 3 : [https://pastebin.com/MaizEJpk]
- beneficiary_transactions = self.env['openg2p.disbursement.main'].search(
- [('batch_id', '=', self.id)])
- print(beneficiary_transactions) # openg2p.disbursement.main(19,)
- beneficiary_data = self.env['openg2p.disbursement.main'].browse(
- [('batch_id', '=', (beneficiary_transactions))])
Advertisement
Add Comment
Please, Sign In to add comment