Community: Inventory and MRP mailing list archives

expert-inventory@mail.odoo.com

Avatar

RE: Reg : Warning while creating stock move

by
amalraj.sagayaraj
- 2017年07月06日 02時43分18秒

Hi,

 

Thanks for the replay…

 

Please find my code below.

move_data = {

                        'name': order_br.production_id.name,

                        'date': order_br.date_start,

                        'product_id': order_br.production_id.product_id.id,

                        'product_uom': order_br.production_id.product_uom_id.id,

                        'product_uom_qty': order_br.production_id.product_qty,

                        'location_id': order_br.workcenter_id.location_id.id,

                        'location_dest_id': self.accepted_location_id.id,

                        'move_dest_id': False,

                        'state': 'draft',

    #                     'company_id': cur_obj.quality_id.company_id.id,

                    }

                print move_data

                new_move = self.env['stock.move'].create(move_data)

                print new_move

 

But still I get the same warning.

 

Could create a stock move.

 

Thanks & Regards,

 

Amal Raj S –  Odoo Developer

P P T S [India] Pvt.Ltd.

7th floor, Tower 1-A, India Land Tech Park, CHIL SEZ

Keeranatham Village, Saravanampatti, Coimbatore - 641 035.

Web: www.pptservices.com  | Tel: 0422 4037111

cid:image001.jpg@01D2F037.1914B260  cid:image002.jpg@01D2F037.1914B260  cid:image003.jpg@01D2F037.1914B260  cid:image004.jpg@01D2F037.1914B260

 

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Disclaimer:  The information contained in this message is legally privileged and confidential information intended only for the use of the addressed individual or entity indicated in this message (or responsible for delivery of the message to such person). It must not be read, copied, disclosed, distributed or used by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may be unlawful. Opinions, conclusions and other information on this message that do not relate to the official business of any of the constituent companies of the PPTS shall be understood as neither given nor endorsed by the Group. If you have received this message in error, you should destroy this message and kindly notify the sender by e-mail.

 

From: Omprakash Maurya [mailto:opmaurya111@gmail.com]
Sent: 06 July 2017 11:30
To: Community: Inventory and MRP
Subject: Re: Reg : Warning while creating stock move

 

Hi Amalraj,

 

If you are custmize code, please replace in your code product_qty to product_uom_qty

 

On Thu, Jul 6, 2017 at 11:00 AM, PPTS - Odoo Developer - Amalraj S <amalraj.sagayaraj@pptservices.com> wrote:

Hi ,

 

Greetings for the day.

 

I am working on Manufacturing  by work order.

 

I am trying to create stock move for each Work order.

 

But I could not create stock move.

 

It says…..

 

The requested operation cannot be processed because of a programming error setting the `product_qty` field instead of the `product_uom_qty`.

 

 

Thanks & Regards,

 

Amal Raj S –  Odoo Developer

P P T S [India] Pvt.Ltd.

7th floor, Tower 1-A, India Land Tech Park, CHIL SEZ

Keeranatham Village, Saravanampatti, Coimbatore - 641 035.

Web: www.pptservices.com  | Tel: 0422 4037111

cid:image001.jpg@01D2F037.1914B260  cid:image002.jpg@01D2F037.1914B260  cid:image003.jpg@01D2F037.1914B260  cid:image004.jpg@01D2F037.1914B260

 

 

 

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Disclaimer:  The information contained in this message is legally privileged and confidential information intended only for the use of the addressed individual or entity indicated in this message (or responsible for delivery of the message to such person). It must not be read, copied, disclosed, distributed or used by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may be unlawful. Opinions, conclusions and other information on this message that do not relate to the official business of any of the constituent companies of the PPTS shall be understood as neither given nor endorsed by the Group. If you have received this message in error, you should destroy this message and kindly notify the sender by e-mail.

 

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-inventory-and-mrp-66
Post to: mailto:expert-inventory@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



 

--

Thanks & Regards

OM Prakash Maurya

ERP Developer

Bista Solutions Inc

+918233142254

Reference