Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Done by RHT on the 28/08/2024
- # Task : https://www.odoo.com/odoo/project/5686/tasks/4141789
- # Need : Have an unique reference for each new contact
- # Pastebin : https://pastebin.com/bBQKGaeL
- for partner in records:
- partner['ref'] = env['ir.sequence'].next_by_code('contact.sequence')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement