Odoo:why the location is not the same on the reception? - location

when we receive product we choose the destination location on the warehouse
why the location_dest_id on the stock_move is not the same selected ?

I can not reproduce your issue in my system. Generally when we select Destination Location on Purchase Order, it will send that value into Destination Location.
I think, this issue will come because of custom module.
You need to track _prepare_order_line_move method. Checkout which value pass in location_dest_id

Related

Microsoft Access unable to display image attachment (Runtime Error 2220)

I have a table called "Subsidiary Companies" where I store the names of different subsidiary companies and their corresponding company logo images as an attachment in a table.
I have a form called "invoice" where I use it to generate invoices. Whenever I select a subsidiary from a Combobox, it will change the image attachment box on my form to the one corresponding to the company selected.
After I attach the image to the table it worked. When I closed my entire access program and went back to it, it doesn't work anymore even though I did not change any codes, settings or image path. I got an error instead, "Runtime Error 2220: Microsoft Access can't open the file image.jpeg".
Here is my code to select the attachment image based on the company selected:
Me.AttachmentCompanyLogo.DefaultPicture = Me.ComboboxCompanySelection.Column(1)
Not sure where it went wrong as I am not very familiar with Access, would appreciate some help, thank you :)
based on this statement: " When I closed my entire access program and went back to it, it doesn't work anymore"
that behavior would occur if you failed to also include the primary/foreign key cross reference value in the record. such that when you next go to select it - it can't be found because when you added the image/path it also needed the key value as a cross reference...
this is just a guess of course...
look directly at the table and see if this data is missing...
on a different topic; if you have only a small quantity of images the use of attachments is ok however if there will be a larger quantity then one should not use the attachments feature and instead store the image docs in a separate folder while putting the path to the image doc in a table.

Odoo 10 - product qty in a location shown in move_lines of internal stock transfer

It is for Odoo v10
When create a move within Inventory > Internal transfer, the default move_lines shows:
Product, Qty, Status
I want to add the product qty of the location_zone (stock). Is it possible? I wonder what my approach should be.
Login as admin and in the warehouse settings activate multiple warehouses and locations. Then in Internal transfer you will be able to specify the location also.
you can use this
total_availability =
self.env['stock.quant']._get_available_quantity(self.product_id,
self.location_id)
for more information Goto stock-->addons\stock\models\stock_move.py
Method :
> def _compute_product_availability(self):

Filtering order list in ofbiz for a store

We have created multiple stores in single ofbiz instance. We need to populate order list for a given admin user for a store. Currently its showing orders of both the stores even though user is not a part of second store.
Please suggest if it is possible. If yes, please let me know the corresponding configuration/code changes required.
You simply can filter the orders by the productStoreId which is part of the OrderHeader entity, see http://demo-stable-ofbiz.apache.org/webtools/control/FindGeneric?entityName=OrderHeader .

Is it possible to add shipping tracking number for different product in magento?

I would like know
Suppose, A order consist of three product. When i submit this product to warehouse it ship the prodduct in different shipping method.
I would like to know how can i add these tracking number in magento either programmatic php or directly using mysql query
Thank you.
You can do this without having to run any code (i.e PHP or MySQL), simply partially invoice the order by navigating to the order itself, choosing the invoice tab & checking / unchecking the appropriate products. Then, when you choose to create a shipment, you can base it off of an invoice number and assign appropriate tracking information to it.

Magento creating invoice redirect to wrong url

When I create an invoice from the order in the backend, this on this url:
http://www.site.com/index.php/safe/sales_order_invoice/new/order_id/4372/
But when the Invoice is about to be created it goes to:
http://www.site.com/shop/safe/sales_order/view/order_id/4372/
You see the (Shop), which is mostly correct because the storefront is named that(We had 2 storefronts once) If I remove the (Shop) part from the url, I'm getting back to the correct page and it shows that the invoice was correctly created. This only happens from the Order itself. If I use Mass action to create invoices from the orders list, it's not giving me any problems.
If anyone else has the problem (Using multi stores)
Please check your database, core_config_data and see if web/secure/base_url etc. is redirecting to the right path. And make sure to check that it's doing so for the right store ID that is giving you the trouble.
My problem was that the secure path for one of my stores, was ruining it.
All works fine now!

Resources