Skip to content
Snippets Groups Projects
  • Abdelouahab (abla)'s avatar
    8f315eb2
    [FIX] purchase: no recomputing date when autocomplete · 8f315eb2
    Abdelouahab (abla) authored
    
    To reproduce
    ============
    - create a purchase order and confirm it
    - create a Bill, set its Bill date and Accounting date to different dates
    to today
    - save it, then choose the created PO in autocomplete field
    the Accounting day will be changed to today
    
    Problem
    =======
    when calling the autocomplete, some values will be updated on the record,
    where `move_type` is one of them, and updating this field will trigger the
    compute of accounting date.
    
    Solution
    ========
    if the value of `move_type` on the record is the same as the one of the update,
    it should not be taken into account which will avoid uneeded recompute.
    
    opw-3381530
    
    closes odoo/odoo#132841
    
    Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
    8f315eb2
    History
    [FIX] purchase: no recomputing date when autocomplete
    Abdelouahab (abla) authored
    
    To reproduce
    ============
    - create a purchase order and confirm it
    - create a Bill, set its Bill date and Accounting date to different dates
    to today
    - save it, then choose the created PO in autocomplete field
    the Accounting day will be changed to today
    
    Problem
    =======
    when calling the autocomplete, some values will be updated on the record,
    where `move_type` is one of them, and updating this field will trigger the
    compute of accounting date.
    
    Solution
    ========
    if the value of `move_type` on the record is the same as the one of the update,
    it should not be taken into account which will avoid uneeded recompute.
    
    opw-3381530
    
    closes odoo/odoo#132841
    
    Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
energy_communities NaN GiB