Community mailing list archives

community@mail.odoo.com

Re: How to insert and appear a suppliers name inside product template

by
Eficent Business and IT Consulting Services, S.L.
- 12/07/2014 14:44:49

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

El dia 07/12/2014 20:23, "Loïc Richard" <loic.richard1@free.fr> va escriure:
Hi Jordy,

Thank you for informations

Could you help me for the fields

I do that but it miss some fields :

What is the difference between 
product_qty ==> quantity normal
product_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
);


------------------------
Cordialement,
loïc Richard

2014-12-07 12:37 GMT-05:00 Jordi Ballester Alomar <jordi.ballester@eficent.com>:

If you want to upload quantities of products (your stock) you should create records of stock.move, indcating:

- Product
- Journal
- Move date
- Source location: Virtual Locations/Inbentory Loss
-Destination Location: WHS/Stock
- Quantity

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

Regards,
Jordi.

Thank you I found,

I need another question about the quantity,
What is the good fields and table to appear in product (products.template) the quantity.
Inside theproduct,there is an udate to update the quantity, To insert a quantity via xmlrpc, I need to create a workflow ?
I research but I don't found something interesting in stock.quant.

Thank you.


------------------------
Cordialement,
loïc Richard

2014-12-07 3:27 GMT-05:00 Jordi Ballester Alomar <jordi.ballester@eficent.com>:

Hello Loïc,

The suppliers are recorded in 'product.supplierinfo'. One product can have multiple suppliers, and they can be prioritized.

You can enter then in the product form view.

Regards,
Jordi

El dia 07/12/2014 1:22, "Loïc Richard" <loic.richard1@free.fr> va escriure:
Hello,

I want  for a product to apply a supplier but I don't found on my template a fields supplier.
I try to install wharehouse for example, but I don't see nothing.

Inside product.template  we can see a fields like seller_id  for example,

I suppose this id of the supplier in relation with res.partner.

I need more informations and if you know the solution to appear inside product.template the supplier.
It will be cool.

thank you
------------------------
Cordialement,
loïc Richard

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe