Advertisement
rht_odoo

[QW][4381530] Automatic Internal Reference

Dec 4th, 2024 (edited)
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. # Done by RHT on the 04/12/2024
  2. # Task : https://www.odoo.com/odoo/project/5686/tasks/4381530
  3. # Pastebin : https://pastebin.com/SsJHfEYF
  4. # Need : Have a unique, automatical incrementing internal reference
  5. for product in records:
  6. product.partner_id['default_code']= env['ir.sequence'].next_by_code('internal_reference')
  7.  
  8.  
  9.  
  10.  
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement