Community mailing list archives
Re: How to insert and appear a suppliers name inside product templateby
Hi Loïc,You should not use direct write, but the same approach as the user would do from the screen.In order to see what does the system call when you click on a button, you should activate the debug mode (Go to the Administrator button - upper right on the screen and press 'About Odoo'. Then press 'Activate debugger mode').Then you will be able to display the XML that any screen is formed on,Now go here and check what are the parameters to call 'action_done':Regards,Jordi.On Fri, Dec 12, 2014 at 10:27 PM, Loïc Richard <firstname.lastname@example.org> wrote:Hi Jordy,Thank you for all explanations, It help me, now i manage my stock quantity of my product since my ecommerce platformI have another question concerning the stock move.In Odoo, there is 3 buttons- to close the transaction- Available.- Cancel the transactionTo go at the last step (close the transaction) in stok.move, is it a workflow ? or just an update (what is the fields in this case to change);Thank you.------------------------
loïc Richard2014-12-07 14:49 GMT-05:00 Jordi Ballester Alomar <email@example.com>:
product_qty is a calculated field. Not meant to enter values.
product_uom_qty is the quantity in the sktockkeeping unit. That is, the unit of measure in which you manage the product in the warehouse.
Remember to use field 'uom' as well.
product_uos_qty is the quantity in the sales unit of measure. That is, the unit in which the product was sold.
You should look at fields defined in class stock_move: https://github.com/odoo/odoo/blob/8.0/addons/stock/stock.py
Hi Jordy,Thank you for informationsCould you help me for the fieldsI do that but it miss some fields :What is the difference betweenproduct_qty ==> quantity normalproduct_uom_qty ===> ?????product_uos_qty ====> ????$values = array(
"name" => new xmlrpcval($product['products_name'], "string"), // name of my product
"product_qty" => new xmlrpcval($product['products_quantity'], "double"), // qty of my product
"product_id" => new xmlrpcval($products_id, "int"), // odoo id of my product
"availability" => new xmlrpcval($product['products_quantity'], "double"), // qty of my product
"product_uom_qty" => new xmlrpcval($product['products_quantity'], "double"), // qty of my product
"product_uos_qty" => new xmlrpcval($product['products_quantity'], "double"), // qty of my product
"location_dest_id" => new xmlrpcval(1, "int"), // 1 for WHS/Stock
"origin" => new xmlrpcval("WebStore Admin - " . $product['products_model'] , "string"), // model of my product
If you want to upload quantities of products (your stock) you should create records of stock.move, indcating:
- Move date
- Source location: Virtual Locations/Inbentory Loss
-Destination Location: WHS/Stock
If your intent is to create the initial inventory, look at this: https://www.odoo.com/forum/how-to/warehouse-management-6/how-can-i-record-my-initial-inventory-55257
Jordi Ballester Alomar
Tel: (+34) 629530707
Twitter: @jbeficent_erp | Skype: jordi.ballester
Este email contiene información confidencial. El contenido de la misma se encuentra protegido por Ley. Cualquier persona distinta a su destinatario tiene prohibida su reproducción, uso, divulgación o impresión total o parcial. Si ha recibido este mensaje por error, notifíquelo de inmediato al remitente y borre el mensaje original junto con los ficheros anexos.
This message contains confidential information and it is intended only for the individual named. If you are not the named addressee, you should not disseminate, distribute or copy this email. Please notify the sender immediately by email if you have received this email by mistake and delete it from your system. If you are not the intended recipient, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.