• Jérome Perrin's avatar
    Inventory Brain: Avoid calling getObject when not required · e369aa7d
    Jérome Perrin authored
    * date attribute is converted to timezone only when attribute is accessed (and not in __init__ anymore). Some code that needs performance may be able to use date_utc attribute wich is the date as UTC
    * debit, credit, debit_price and credit_price uses "is_cancellation" column instead of getObject().isCancellationAmount()
    e369aa7d
extension.erp5.InventoryBrain.py 12.9 KB