Merge pull request #4043 from luisramos0/bring_shipment

Bring spree/admin/orders/shipment and shipment_manifest partials from spree_backend and fix an authorization bug
This commit is contained in:
Luis Ramos
2019-07-24 21:59:47 +01:00
committed by GitHub
4 changed files with 129 additions and 5 deletions

View File

@@ -24,8 +24,3 @@ angular.module("admin.orders").controller "orderCtrl", ($scope, shops, orderCycl
for shop in $scope.shops
shop.disabled = !$scope.distributorHasOrderCycles(shop)
# Removes the split button introduced by spree in the order form
# We only have one stock location in OFN so it's meaningless to split the order between stock locations
# We delete it instead of hiding or changing CSS so that, when spree code toggles the element, nothing hapens
$('.split-item').remove()