03.02.26
This commit is contained in:
@@ -455,6 +455,20 @@ class ShipmentIn(metaclass=PoolMeta):
|
||||
else:
|
||||
return str(self.id)
|
||||
|
||||
def create_fee(self,controller):
|
||||
Fee = Pool().get('fee.fee')
|
||||
Product = Pool().get('product.product')
|
||||
fee = Fee()
|
||||
fee.shipment_in = self.id
|
||||
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])
|
||||
|
||||
def get_controller(self):
|
||||
ControllerCategory = Pool().get('party.category')
|
||||
PartyCategory = Pool().get('party.party-party.category')
|
||||
|
||||
Reference in New Issue
Block a user