• Nicolas Dumazet's avatar
    Fix display of price and quantity for Cells listed on PackingList views · 62637ff0
    Nicolas Dumazet authored
    Packing List views are a bit particular because they use getMovementList.
    All the listbox lines are movements. Similarly, some lines can bear
    variation categories. It means that the "enabled" TALES test:
      python: cell.isMovement() and not cell.getVariationCategoryList()
    is problematic for this view.
    
    For quantity fields, the Base_viewFieldLibrary.my_view_mode_quantity
    fits perfectly our usecase.
    For price, we need to get price precision from the cell, so
    Base_viewFieldLibrary.my_view_mode_price does not fit. On the other hand,
    Base_viewTradeFieldLibrary.my_view_mode_price does include the "enabled" TALES,
    which we do not want.
    We thus create a new "my_view_mode_movement_listbox_price" field in
    Base_viewTradeFieldLibrary for this usage.
    
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37500 20353a03-c40f-0410-a6d1-a30d3c3de9de
    62637ff0
listbox_quantity.xml 2.96 KB