Advertisement
rht_odoo

[3908842][QW]x_studio_no_next_payment_till

May 23rd, 2024 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. # Done by ELU on the 07/05/2024
  2. # Reviewed by SEA on the 22/05/2024
  3. # Review:https://pastebin.com/q2QxuThK
  4. # Need: Having a date for invoicing purpose set as today when the order is comfirmed
  5. # Task: https://www.odoo.com/odoo/project.task/3908842?cids=1
  6. for order in self:
  7.     if order.state == 'sale':
  8.         order['x_studio_no_next_payment_till'] = datetime.datetime.today()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement