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

[MIG]Migrated Business Requirement Deliverable Resource Template from 8.0 to 10.0. #236

Conversation

sudhir-serpentcs
Copy link
Contributor

Issue #48

Copy link
Contributor

@elicoidal elicoidal left a comment

Choose a reason for hiding this comment

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

LGTM

@elicoidal
Copy link
Contributor

@seb-elico @victormartinelicocorp

@elicoidal elicoidal added this to the 10.0 milestone Aug 4, 2017
@pedrobaeza pedrobaeza mentioned this pull request Aug 4, 2017
14 tasks
@victormmtorres
Copy link
Collaborator

@elicoidal Need #223 #224 merged and this re-base as soon is done. Any later issue could not be discovered now.

@@ -24,7 +24,7 @@ def setUp(self):
'factor': 1,
'uom_type': 'reference',
'rounding': 0.000001})
self.ProductS = self.env.ref('product.product_product_consultant')
self.ProductS = self.env.ref('product.service_order_01')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Out of curiosity, why changing the product?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@seb-elico The product wasn't exist in v10 product module. So we changed it by other service type of product.

Copy link
Collaborator

@seb-elico seb-elico left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@victormmtorres victormmtorres left a comment

Choose a reason for hiding this comment

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

@sudhir-serpentcs @elicoidal @seb-elico
UT was designed before just to pass coveralls.

Need to improve quality of Test.

Extend the BRD test so the DL product change should be covered by the tested before this module.

Now specific here is the fact we need test whether the DL have generated the RL with same information as the product template resources.

For instance:
def test_product_id_onchnage(self):
(by the way name is wrong)
def test_product_id_onchange(self):
A)Setup the condition to test. (done in def setUp)
B)Execute the function. (product_id_change)
C)Check with assert the value or values expected.

@seb-elico
Copy link
Collaborator

Agreed with @victormartinelicocorp

@elicoidal
Copy link
Contributor

@sudhir-serpentcs Let's try to finish this today 😄

@elicoidal
Copy link
Contributor

What is the situation here?

@elicoidal
Copy link
Contributor

@victormartinelicocorp Can you review the tests so that we can move forward?

@victormmtorres
Copy link
Collaborator

@sudhir-serpentcs Travis first error is on here:

======== Testing test_flake8 ========

business_requirement_deliverable_resource_template/tests/test_br_deliverable.py:5:1: F401 'odoo.exceptions.ValidationError' imported but unused

@elicoidal Others errors cause dependency on BRD. So need to rebase this PR with #224 once is merged

@elicoidal
Copy link
Contributor

#224 and #223 are merged: please rebase

@elicoidal
Copy link
Contributor

@victormartinelicocorp can you recheck your review?

Copy link
Collaborator

@victormmtorres victormmtorres left a comment

Choose a reason for hiding this comment

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

@YogeshMahera-SerpentCS

Please move all _demo.xml files into folder /demo as OCA guidelines suggest.

https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#directories

@elicoidal
Copy link
Contributor

Functional tests are OK

@elicoidal
Copy link
Contributor

@victormartinelicocorp

@victormmtorres
Copy link
Collaborator

@YogeshMahera-SerpentCS
Please move all _demo.xml files into folder /demo as OCA guidelines suggest.
https://github.com/OCA/maintainer-tools/blob/master/CONTRIBUTING.md#directories

@sudhir-serpentcs @YogeshMahera-SerpentCS Could have a check?
Is just move demo files to the right folder, if too busy let me know.

cc @elicoidal

@YogeshMahera-SerpentCS YogeshMahera-SerpentCS force-pushed the 10.0-MIG-Business_requirement_deliverable_resource_template branch from d7f073a to 519a1f9 Compare September 15, 2017 05:26
@YogeshMahera-SerpentCS
Copy link
Member

@victormartinelicocorp
Please review

@elicoidal elicoidal merged commit 4793547 into OCA:10.0 Sep 15, 2017
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 22, 2019
… 8.0 to 10.0. (OCA#236)

* [MIG]Migrated Business Requirement Deliverable Resource Template from 8.0 to 10.0.

* [IMP]Added Test-cases and Improved test-cases code

* [IMP]Improved code for demo data

* [IMP]Removed unused import statement

* [REM/ADD]Moved demo data files from data folder to demo folder
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.

None yet

5 participants