Advertisement
rht_odoo

[QW][4141789] Séquence sur les contacts

Aug 28th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. # Done by RHT on the 28/08/2024
  2. #  Task : https://www.odoo.com/odoo/project/5686/tasks/4141789
  3. #  Need : Have an unique reference for each new contact
  4. #  Pastebin : https://pastebin.com/bBQKGaeL
  5. for partner in records:
  6.     partner['ref'] = env['ir.sequence'].next_by_code('contact.sequence')
  7.  
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement