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/12/2014 16:45:43
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'). 

Inline image 1

Inline image 2

Then you will be able to display the XML that any screen is formed on,

Inline image 3

Inline image 4

Now go here and check what are the parameters to call 'action_done':


Inline image 5

Regards,
Jordi.


On Fri, Dec 12, 2014 at 10:27 PM, Loïc Richard <loic.richard1@free.fr> wrote:
Hi Jordy,

Thank you for all explanations, It help me, now i manage my stock quantity of my product since my ecommerce platform

I have another question concerning the stock move.
In Odoo, there is 3  buttons

- to close the transaction 
- Available.
- Cancel the transaction 

To 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.





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

2014-12-07 14:49 GMT-05:00 Jordi Ballester Alomar <jordi.ballester@eficent.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

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

_______________________________________________
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



--

Jordi Ballester Alomar


Tel: (+34) 629530707 

E-mail: jordi.ballester@eficent.com  |   Web: http://www.eficent.com

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.