Odoo Ayuda

0

1
4 Respuestas
2
Avatar

Ajeet Yadav(Nurosolution Pvt Ltd) India

--Ajeet Yadav(Nurosolution Pvt Ltd)--
7518
| 6 3 7
Noida, India
--Ajeet Yadav(Nurosolution Pvt Ltd)--
Expert in odoo Technical and Functional

I am working with odoo from openERP 6.1 to current version. It is wonderfull experience working with odoo and solved many industries business problem during odoo Implementation.

I love programmimg and most impoprtant the Language "PYTHON"

Following are the core modules that I have experties-

1-CRM

2-Sales

3-Purchase

3-Inventory/Warehouse Manangement

5-Manufacturing and Production Planning

6-Advance Accounting

7-Website and Ecommerce

9-Human Resource, Payroll, Leave Management.

Ajeet Yadav(Nurosolution Pvt Ltd) India
14/8/19 1:24

Problem is in your for loop. You search search all sales order in creates variable. Then you are using create  variable in for loop which is sale order. Your second loop is incorrect. You again looping sale order amount in i variable. you can directly use create.amount_total and add that in your sum_amount.

If you want sum of all searched sale order, then sum_amount variable should be before the first loop. It's depends on your requirement and logic.

2
Avatar

Niyas Raphy India

--Niyas Raphy--
26373
| 7 7 11
Wayanad, Kerala, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to connect :  niyasraphyk@gmail.com

Twitter:https://twitter.com/niyasraphy
LinkedIn: https://www.linkedin.com/in/niyasraphy/
FB:https://www.facebook.com/niyasraphy123
Whatsapp : +917736136763
Happy to help :)

Niyas Raphy India
14/8/19 0:54

Hi.

Seems there is issue with what you have done, you have already iterated the creates over the for loop. Then why to again iterate the creat.amount_total over a for loop ? creat.amount_total will have a value like 4.02 or 5.6 etc, and float value. What is the use of iterating a float value over the for loop ?

So what you can do is that, remove the for loop which you tries to iterate the create.amount_total and update the code based on the logic.

Thanks

0
Hoang Quan Vietnam
14/8/19 0:30

@everyone I changed. But have new error. Pls help me. Thanks :D

Sorry everyone about format code. I can't change this 

0
Avatar

Manish Kumar Bohra India

--Manish Kumar Bohra--
11018
| 6 5 10
Bikaner, India
--Manish Kumar Bohra--


Manish Kumar Bohra India
14/8/19 0:27

Hello,

You can change in this  sum_amount += i line. Maybe your problem solve. 

Thanks. 


Realizar una pregunta
Writer
Etiquetas
Keep Informed
1 seguidor(es)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now