Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
5 Trả lời
28239 Lượt xem

I filled in the MPS and all corresponding quantities and forecast. When i pressed on "Launch Green Cells" i received the following error:  No procurement rule found. Please verify the configuration of your routes. I entered the warehouse configuration but did not know which route to create and to create it in order to resolve the error.


Ảnh đại diện
Huỷ bỏ

First you can check the stock location, May be there is no stock in Location

Câu trả lời hay nhất

first you need  to get this access role  (Manage Push and Pull inventory flows)
after that go to Inventory / Configuration / Warehouse Management / Routes

create new Route and link it with Product option (boolean field) , then select this route in your desired products

now you can process with these products according to your Route (Source - Destination settings) above .

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

First you can check the stock location, May be there is no stock in Location

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I faced this issue. In my case the Buy Route had no Procurement Rule Set. It was blank. Under the Inventory module I went to Settings / Warehouses / WH and checked the box names “”Purchase to Resupply this Warehouse”. This created the missing Procurement Rule inside the Buy route. This worked for me. May be you should try. 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Have you changed and default routes. Probably this error occurred when you have wrong route configured or in chain if system not get the route to perform then it gives this error.

Please check your products routes.

(BTW currently not any easiest way to  know system breaks due to which route)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If you want to know which product's route is not define properly, just inherit this method and it will give you relevant message.  

class ProcurementGroup(models.Model):

_inherit = 'procurement.group'

_description = 'Procurement Requisition'

_order = "id desc"

@api.model

def run(self, product_id, product_qty, product_uom, location_id, name, origin, values):

values.setdefault('company_id', self.env['res.company']._company_default_get('procurement.group'))

values.setdefault('priority', '1')

values.setdefault('date_planned', fields.Datetime.now())

rule = self._get_rule(product_id, location_id, values)

if not rule:

raise UserError(_('No procurement rule found. Please verify the configuration of %s routes, product id %s') % (product_id.name, product_id.id))

getattr(rule, '_run_%s' % rule.action)(product_id, product_qty, product_uom, location_id, name, origin, values)

return True

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 15
4752
1
thg 1 25
1115
0
thg 3 23
1834
2
thg 8 24
20175
2
thg 6 23
48430