03.03.26
This commit is contained in:
@@ -475,11 +475,14 @@ class ShipmentIn(metaclass=PoolMeta):
|
||||
fee.supplier = controller
|
||||
fee.type = 'budgeted'
|
||||
fee.p_r = 'pay'
|
||||
fee.mode = 'perqt'
|
||||
fee.currency = 1
|
||||
fee.product = Product.get_by_name('Reweighing')
|
||||
fee.price = controller.get_sla_cost(self.to_location)
|
||||
Fee.save([fee])
|
||||
price,mode,curr,unit = controller.get_sla_cost(self.to_location)
|
||||
if price and mode and curr and unit:
|
||||
fee.mode = mode
|
||||
fee.currency = curr
|
||||
fee.unit = unit
|
||||
fee.product = Product.get_by_name('Reweighing')
|
||||
fee.price = price
|
||||
Fee.save([fee])
|
||||
|
||||
def get_controller(self):
|
||||
ControllerCategory = Pool().get('party.category')
|
||||
|
||||
Reference in New Issue
Block a user