Bỏ qua để đến Nội dung
Odoo Menu
  • Đăng nhập
  • Dùng thử miễn phí
  • Ứng dụng
    Tài chính
    • Kế toán
    • Hóa đơn
    • Chi phí
    • Bảng tính (BI)
    • Tài liệu
    • Ký tên
    Bán hàng
    • CRM
    • Bán hàng
    • POS Cửa hàng
    • POS Nhà hàng
    • Đăng ký
    • Cho thuê
    Trang web
    • Trình tạo trang web
    • Thương mại điện tử
    • Blog
    • Diễn đàn
    • Trò chuyện trực tiếp
    • Học trực tuyến
    Chuỗi cung ứng
    • Tồn kho
    • Sản xuất
    • PLM
    • Mua hàng
    • Bảo dưỡng
    • Chất lượng
    Nhân sự
    • Nhân viên
    • Tuyển dụng
    • Ngày nghỉ
    • Đánh giá
    • Giới thiệu
    • Đội xe
    Marketing
    • Marketing trên MXH
    • Marketing qua email
    • Marketing qua SMS
    • Sự kiện
    • Tự động hóa Marketing
    • Khảo sát
    Dịch vụ
    • Dự án
    • Bảng chấm công
    • Dịch vụ hiện trường
    • Hỗ trợ
    • Kế hoạch
    • Lịch hẹn
    Năng suất
    • Thảo luận
    • Phê duyệt
    • IoT
    • VoIP
    • Kiến thức
    • WhatsApp
    Ứng dụng của bên thứ ba Studio Odoo Nền tảng Đám mây Odoo
  • Ngành
    Bán lẻ
    • Nhà sách
    • Cửa hàng quần áo
    • Cửa hàng nội thất
    • Cửa hàng tạp hóa
    • Cửa hàng đồ kim khí
    • Cửa hàng đồ chơi
    Ẩm thực & Dịch vụ lưu trú
    • Bar và quán rượu
    • Nhà hàng
    • Đồ ăn nhanh
    • Guest house
    • Nhà phân phối đồ uống
    • Khách sạn
    Bất động sản
    • Công ty môi giới bất động sản
    • Công ty kiến trúc
    • Xây dựng
    • Quản lý bất động sản
    • Làm vườn
    • Hiệp hội chủ sở hữu bất động sản
    Tư vấn
    • Công ty kế toán
    • Đối tác Odoo
    • Công ty marketing
    • Công ty luật
    • Tuyển dụng
    • Thanh tra & chứng nhận
    Sản xuất
    • Dệt may
    • Kim loại
    • Nội thất
    • Ẩm thực
    • Nhà máy bia
    • Quà tặng doanh nghiệp
    Sức khoẻ & fitness
    • CLB thể thao
    • Cửa hàng kính mắt
    • Trung tâm fitness
    • Chuyên gia chăm sóc sức khỏe
    • Hiệu thuốc
    • Tiệm làm tóc
    Thương mại
    • Dịch vụ sửa chữa
    • Phần cứng CNTT & Hỗ trợ
    • Hệ thống năng lượng mặt trời
    • Công ty sản xuất giày
    • Dịch vụ vệ sinh
    • Dịch vụ HVAC
    Khác
    • Tổ chức phi lợi nhuận
    • Cơ quan môi trường
    • Cho thuê biển quảng cáo
    • Nhiếp ảnh
    • Cho thuê xe đạp
    • Đại lý phần mềm
    Xem tất cả ngành
  • Cộng đồng
    Học tập
    • Khóa học
    • Tài liệu
    • Chứng chỉ
    • Đào tạo
    • Blog
    • Podcast
    Thúc đẩy đào tạo
    • Chương trình đào tạo
    • Trò chơi kinh doanh Scale Up!
    • Tham quan Odoo
    Nhận phần mềm
    • Tải xuống
    • So sánh các phiên bản
    • Phiên bản
    Hợp tác
    • Github
    • Diễn đàn
    • Sự kiện
    • Dịch thuật
    • Trở thành đối tác
    • Dịch vụ dành cho Đối tác
    • Đăng ký công ty kế toán của bạn
    Nhận dịch vụ
    • Tìm đối tác
    • Tìm kế toán
    • Gặp chuyên gia hỗ trợ
    • Dịch vụ Triển khai
    • Khách hàng tham khảo
    • Hỗ trợ
    • Nâng cấp
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Nhận một buổi demo
  • Bảng giá
  • Trợ giúp

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Kế toán
  • Tồn kho
  • PoS
  • Dự án
  • MRP
All apps
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Bạn cần phải đăng ký để tương tác với cộng đồng.
Tất cả bài viết Người Huy hiệu
Thẻ (Xem tất cả)
odoo accounting v14 pos v15
Về diễn đàn này
Hỗ trợ

Custom Code: Stock picking is ready although there is no stock amount available --> WHY!!?!?

Đăng ký nhận tin

Nhận thông báo khi có hoạt động trên bài viết này

Câu hỏi này đã bị gắn cờ
reservationstock.movepicking_idRoutestock.move.line
3 Trả lời
5980 Lượt xem
Ảnh đại diện
Riccardo Branoner

Hello odoo-friends,


I'm developing a module where I have to create transfers from customer location to stock. It is a return from a rental order. For several reasons I am creating the transfers via a given route_id I have prepared. It has stock rules for moving goods from Customer/Rental -> WH/Input -> WH/QualitlyControl. I introduced new operation types to separate the pickings from outgoing operation types (their code is therefore 'incoming').


I am for looping though stock rules which belong to my given route_id. This works fine since I am creating a list of products+lot_ids from a given line model and then create my pickings incl my stock_move_ids. After doing this I trigger action_confirm and action_assign, so the picking state will be 'confirmed' (I don't get which it doesn't get the state 'waiting', because there all the pickings are in the same procurement group, but that is another issue).


Thepoint which drives my crazy is now: My first transfer from Customer -> WH/input is ready in any case and odoo shows me stock_move_lines, ALTHOUGH THERE IS NO STOCK AMOUNT IN THE SOURCE LOCATION!!! How could that be! odoo reserves stock in my customer location but my products (even given serials) have not yet arrived in that location.


I am sure I do something wrong either on creating my pickings, or something is missconfigured in my operation type or whatever. I have check my configuration multiple times and I have no idea why odoo reserves serials in a location where the item has not yet arrived.


So please help me since I have no idea what else I could check. If you like I share any of my code or configuration.


THANKS in advance!!!


Regards, Tastenmeister




0
Ảnh đại diện
Huỷ bỏ
Ảnh đại diện
Riccardo Branoner
Tác giả Câu trả lời hay nhất

Hi there,

 up to now I didn't solved the issue, but I guess I found something interesting: If I apply any internal transfer from Customer/rental (or even just default Customer) I get the same result that my internal transfer is immediately ready and by validating I get negative stock amount.


I already noticed this behaviour before so I installed an OCA module called stock_no_negative. Unfortunately it prevents only in internal locations negative stock amounts, but maybe I can tweak it a bit so it works for external locations, too.


Do you or anyone else know how to prevent odoo from moving goods that are not existing? While picking goods it works fine: If I don't have items in stock, my picking transfers stays in state waiting until stock is available.


Any ideas?

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

Maybe have the location marked as replenishment location. Inventory >configuration >locations

Ảnh đại diện
Riccardo Branoner
Tác giả Câu trả lời hay nhất

Hi Jaideep,
thanks for your fast reply! =)

I played around with the push/pull rules, I think finally this config should make sense for the return case. Correct me if I am wrong. So let me share more details about my 3 step Route and Operation type (which is a bit different to my inital post):


1.) Pull: From Partnerts/Customers/Rental ->Transit via Operation Type TRANS, Method: Take from Stock

2.) Pull: From Transit -> WH/Input via Operation Type IN, Method: Take from Stock

3.) Pull: From WH/Input -> WH/Quality Control via Operation Type CHK, Method: Take From Stock

 Operation Types:

- IN is from Source Code, no changes

- TRANS is created by me: stock_picking_type.code = incoming, reservation_method = at_confirm, use_create_lots = false, use_existing_lots = true

- CHK is created by me: stock_picking_type.code = internal, reservation_method = at_confirm, use_create_lots = false, use_existing_lots = true


Shipping policy for all transfers is direct, so I don't see an issue here.That's why I am confused that odoo is not automatically checking the availablity. I am wondering if I am missing to create additional information an stock.picking and stock.move creation.

About your concerns about the generic location for all customers: Yes, you are right, it might cause problems if multiple customers have same goods in this location (especially if they are not tracked by serial, which most of them do). But in my test DB I don't have the lot_ids in customer location which odoo reserves, even I don't have the same product in there. That's what is totally confusing me.

I hope I provided enough information about my route and rules. I hope you have at least some more idea what I could check more deeply.

Regards, Tastenmeister



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

Pull route is fine, how are these operations created?

Ảnh đại diện
Jaideep
Câu trả lời hay nhất

1. What triggers the Customer > WH/ Input operation? Is it similar to return on delivery order (manual trigger available only after validation of delivery order) or a push rule set on the location customer/rental? A pull rule (Pull & Push) would require a demand to be created WH/Input location

2. The picking policy also has a role to play in deciding the status of a transfer. If Customer/rental is set as a generic location for all customers, it is likely to have products in them already


0
Ảnh đại diện
Huỷ bỏ
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!

Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!

Đăng ký
Bài viết liên quan Trả lời Lượt xem Hoạt động
Don't want to change qty on hand/forecasted when using MRP Đã xử lý
stock.move mrp.production stock.move.line
Ảnh đại diện
1
thg 10 22
3372
stock history, stock movement
stock.move stock.tracking Stock.move.report stock.move.line
Ảnh đại diện
Ảnh đại diện
1
thg 10 24
4605
How To Add Analytical Account to Inventory in Odoo 16
inventory stock.move stock.move.line analyticaccounting
Ảnh đại diện
Ảnh đại diện
Ảnh đại diện
2
thg 8 24
3354
How to add "Detailed Operations" tab inside MRP form view
stock mrp stock.move v15 stock.move.line
Ảnh đại diện
Ảnh đại diện
1
thg 6 23
3491
how odoo reserve stock for an stock.move ?
lot reservation stock.move odoo odoo10
Ảnh đại diện
0
thg 9 17
7130
Cộng đồng
  • Khóa học
  • Tài liệu
  • Diễn đàn
Open source
  • Tải xuống
  • Github
  • Runbot
  • Dịch thuật
Dịch vụ
  • Lưu trữ Odoo.sh
  • Hỗ trợ
  • Nâng cấp
  • Phát triển tùy chỉnh
  • Đào tạo
  • Tìm kế toán
  • Tìm đối tác
  • Trở thành đối tác
Giới thiệu công ty
  • Công ty của chúng tôi
  • Tài sản thương hiệu
  • Liên hệ
  • Việc làm
  • Sự kiện
  • Podcast
  • Blog
  • Khách hàng
  • Pháp lý • Riêng tư
  • Bảo mật
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo là bộ ứng dụng kinh doanh có open source đáp ứng tất cả các nhu cầu của công ty bạn: CRM, thương mại điện tử, kế toán, tồn kho, POS, quản lý dự án, v.v.

Định hướng giá trị riêng biệt của Odoo là tích hợp hoàn toàn và dễ dàng sử dụng.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now