Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] sale_delivery_term tests #22

Merged
merged 2 commits into from
Aug 21, 2014

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented Aug 18, 2014

File "/home/travis/build/OCA/sale-workflow/sale_delivery_term/sale.py", line 241, in generate_detailed_lines
len(group_ids)))
except_orm: (u'Error', u'Delivery term lines are 4. Order line groups are 2. Please create more groups')

found at https://travis-ci.org/OCA/sale-workflow/jobs/32663504
because [(0, 0, {'quantity_perc': 0.5, 'delay': 15}),(0, 0, {'quantity_perc': 0.5, 'delay': 30})] run more than 1 time created more than 2 term lines

…ale.py", line 241, in generate_detailed_lines

len(group_ids)))

except_orm: (u'Error', u'Delivery term lines are 4. Order line groups are 2. Please create more groups')
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 5273d19 on eLBati:7.0_fix_sale_delivery_term_test into * on OCA:7.0*.

<record id="sale_delivery_term_1" model="sale.delivery.term">
<field name="name">15 - 30</field>
<field name="line_ids" eval="[(0, 0, {'quantity_perc': 0.5, 'delay': 15}),(0, 0, {'quantity_perc': 0.5, 'delay': 30})]"/>
<field name="line_ids" eval="[]"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can simply remove it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Fixed

@eLBati
Copy link
Member Author

eLBati commented Aug 18, 2014

OCB tests are red due to sale_exception_nostock

2014-08-18 10:01:12,788 23152 TEST openerp_test openerp.tools.yaml_import: Then my sale order should be in draft state and only related to no_stock_in_future exception
2014-08-18 10:01:12,790 23152 ERROR openerp_test openerp.tools.yaml_import: AssertionError in Python code : Incorrect state manual instead of draft

@nbessi any clue?

@pedrobaeza
Copy link
Member

The problem can be solved in another PR.

For this, 👍 Please port it to 8.0.

@yvaucher
Copy link
Member

On step forward to greenify those tests

Thanks

👍

@bwrsandman
Copy link

Error in OCB and not Odoo:

2014-08-18 10:38:38,923 23155 ERROR openerp_test openerp.tools.yaml_import: AssertionError in Python code : Incorrect state manual instead of draft

Why?

@eLBati
Copy link
Member Author

eLBati commented Aug 19, 2014

@bwrsandman some additional info at #22 (comment)

@bwrsandman
Copy link

There wasn't really an answer. These tests seem to point out a regression in OCB, this needs to be adressed.

@StefanRijnhart any idea?

@eLBati
Copy link
Member Author

eLBati commented Aug 19, 2014

Ported to 8 with #24

@eLBati
Copy link
Member Author

eLBati commented Aug 20, 2014

About sale_exception_nostock error, just debugged and can report additional info.

When the test 'Then I confirm the the 26th of March firesteel order' confirms SO so_1

  • Using OCB, at the end of future_orders_are_affected, prod_for_virtual_qty['virtual_available'] is 11000 and line.product_uom_qty is 10000. So, no exception is raised and the order is confirmed. The test fails because it expects the exception --> the order should stay draft.
  • Using odoo, at the end of future_orders_are_affected, prod_for_virtual_qty['virtual_available'] is 500 and line.product_uom_qty is 10000. So, the exception is raised and the order stays draft --> the test doesn't fail

Did not investigate further, so I don't know who is right between OCB and odoo about the virtual_available amount

@bwrsandman
Copy link

@eLBati could you post an issue on https://github.com/OCA/OCB

@eLBati
Copy link
Member Author

eLBati commented Aug 20, 2014

Done OCA/OCB#37

@pedrobaeza
Copy link
Member

Can we proceed then with the merge of this PR?

@bwrsandman
Copy link

I'd rather wait until we get a solution on OCB as this is our active example.

@eLBati
Copy link
Member Author

eLBati commented Aug 21, 2014

This PR fixes the tests of sale_delivery_term, so for me it can be merged

The references to this PR and the failing test stay on the OCB issue

@pedrobaeza
Copy link
Member

As there is an issue opened, I proceed with this merge and continue talking on that issue.

Regards.

pedrobaeza added a commit that referenced this pull request Aug 21, 2014
@pedrobaeza pedrobaeza merged commit 1e523f7 into OCA:7.0 Aug 21, 2014
@eLBati eLBati deleted the 7.0_fix_sale_delivery_term_test branch August 21, 2014 10:03
lmignon pushed a commit to acsone/sale-workflow that referenced this pull request Feb 11, 2021
Log shopfloor requests in a table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants