Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Done by RHT on the 04/12/2024
- # Task : https://www.odoo.com/odoo/project/5686/tasks/4381530
- # Pastebin : https://pastebin.com/SsJHfEYF
- # Need : Have a unique, automatical incrementing internal reference
- for product in records:
- product.partner_id['default_code']= env['ir.sequence'].next_by_code('internal_reference')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement