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

[8.0][FIX] Wizard to generate the project #42

Merged
merged 14 commits into from
Mar 25, 2017
Merged

[8.0][FIX] Wizard to generate the project #42

merged 14 commits into from
Mar 25, 2017

Conversation

kl-adonze
Copy link
Contributor

[fix Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

kl-adonze and others added 4 commits October 4, 2016 10:21
…displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)
…displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)
@oca-clabot
Copy link

Hey @khalidoss, thank you for your Pull Request.

It looks like some users haven't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here: http://odoo-community.org/page/website.cla
Here is a list of the users:

  • Khalid LAKHSAM (no github login found)

Appreciation of efforts,
OCA CLAbot

@elicoidal
Copy link
Contributor

👍
@pedrobaeza @mmalorni @astirpe

@pedrobaeza
Copy link
Member

Please check CLA and Travis status

@elicoidal
Copy link
Contributor

@khalidoss can you check the status for travis?
Did you sign the CLA?

@kl-adonze
Copy link
Contributor Author

@elicoidal I signed the CLA in the OCA sprint
I'm so busy this week. I will check the travis this weekend

@elicoidal
Copy link
Contributor

OK thanks!

@elicoidal
Copy link
Contributor

@khalidoss I hope you are fine: any news on this PR?

@victormmtorres
Copy link
Collaborator

@elicoidal @khalidoss

Please note that UT is failing as Travis said:

Here is just a Trace:

2017-02-24 07:34:12,599 5370 ERROR openerp_test openerp.addons.business_requirement_deliverable_project.tests.test_br: ` File "/home/travis/build/OCA/business-requirement/business_requirement_deliverable_project/tests/test_br.py", line 155, in test_wizard_apply

2017-02-24 07:34:12,599 5370 ERROR openerp_test openerp.addons.business_requirement_deliverable_project.tests.test_br: ` action = self.brA.generate_project_wizard()

2017-02-24 07:34:12,599 5370 ERROR openerp_test openerp.addons.business_requirement_deliverable_project.tests.test_br: ` AttributeError: 'business.requirement' object has no attribute 'generate_project_wizard'

@elicoidal
Copy link
Contributor

@victormartinelicocorp can you fix it?

@elicoidal elicoidal changed the title [fix]8.0 Fix generate the project [8.0][FIX] Wizard to generate the project Feb 25, 2017
@elicoidal elicoidal added this to the 8.0 milestone Feb 25, 2017
@elicoidal
Copy link
Contributor

@victormartinelicocorp @sudhir-serpentcs can you check this PR, fix conflict and travis?

@sudhir-serpentcs
Copy link
Contributor

@elicoidal Fixed the conflicts.

@elicoidal
Copy link
Contributor

@sudhir-serpentcs Travis still needs some love

@sudhir-serpentcs
Copy link
Contributor

Yeah, test cases failed. We will check and make them working.
@elicoidal

@sudhir-serpentcs
Copy link
Contributor

@elicoidal I have fixed the previous error "generate_project_wizard not found for business.requirement model". Now, its throwing some exception from the code.
Can you please guide me should I just change the states of all the BRs in UT?

@victormmtorres
Copy link
Collaborator

@sudhir-serpentcs Have a look on this piece of code:
`

  •    for br in br_ids:
          if br.state not in ['stakeholder_approved', 'cancel', 'done']:
              raise ValidationError(
                  _("All business requirements of the project should "
                  "be stakeholder_approved/canceled/done"))`
    

Means on the Test the BR should be on this states to not raise ValidationError or
if it's what you want then need to use assertRaises

cc @elicoidal

@victormmtorres
Copy link
Collaborator

@sudhir-serpentcs Looks good but the only thing I am not sure is the change from stakeholder_approval (legacy data) from stakeholder_approved (which I agree is better).
Issue is that it implies change of version with migration and migration script.
Given the modules are still WIP I think this is not yet a big deal and I am willing to take the risk for the sake of cleanness in future version.
@pedrobaeza @dreispt @jbeficent any opinion?

@sudhir-serpentcs not sure why but I think is not the main point of this PR.

Somehow the name of the states check on the function was not exactly the same as BR main module.

  • if br.state not in ['stakeholder_approved', 'cancel', 'done']:
    continue

So I guess you think to fix it directly on main module business_requierement.

  •        ('stakeholder_approval', 'Stakeholder Approval'),
    
  •        ('stakeholder_approved', 'Approved by Stakeholder'),
    

IMO should be fix here on this module business_requirement_deliverable_project because others BR's modules with depends one way another on business_requirement could be impact and of course we need some data migration for BR module.

@elicoidal
Copy link
Contributor

@victormartinelicocorp agree with your solution. We will plan for a migration later on as this is not relevant today
@sudhir-serpentcs

@elicoidal
Copy link
Contributor

@sudhir-serpentcs can you update the status here so that we can merge?

@sudhir-serpentcs
Copy link
Contributor

@elicoidal I already have made changes as per the review. I don't have anything to update / push.

@elicoidal
Copy link
Contributor

@sudhir-serpentcs We should not change the stages name which is currently what you do in this PR.
Let me know if unclear

@sudhir-serpentcs
Copy link
Contributor

@elicoidal If you check the commit history, you will see that I just fixed the conflicts. The stages name were already changed in this PR.
Let me know if you want me to change the stage name as they were before.

@elicoidal
Copy link
Contributor

vLet me know if you want me to change the stage name as they were before.

Yes please. I do not want to trigger a migration for this version. We will do it for v10 as there s currently no code created.

@elicoidal
Copy link
Contributor

@sudhir-serpentcs let me know when we can move forward

@sudhir-serpentcs
Copy link
Contributor

@elicoidal Please review.

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.

@victormartinelicocorp can you have a look on the tests?

@victormmtorres
Copy link
Collaborator

@victormartinelicocorp can you have a look on the tests?

Do you mean the UT? LGTM

@elicoidal
Copy link
Contributor

OK

@elicoidal
Copy link
Contributor

@dreispt @astirpe can you have a look so that we move forward this one?

@elicoidal elicoidal merged commit df6d8d0 into OCA:8.0 Mar 25, 2017
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 22, 2019
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
pedrobaeza pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 24, 2020
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
AntoniRomera pushed a commit to AntoniRomera/business-requirement that referenced this pull request Jul 4, 2023
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
NachoAlesLopez pushed a commit to NachoAlesLopez/business-requirement that referenced this pull request Apr 28, 2024
* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [FIX]Move when button to generate the project appears. It should get displayed when the stage is set to Stakeholder approval (rename to Approved by Stakeholders)

* [Fix] Fix unit test

* [IMP] Improved the UT to fix the Travis.

* [IMP] Improved UT for increase Code Coverage.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [IMP] Added UT to increase coveralls.

* [FIX] stakeholder_approval

* [FIX] stakeholder_approval
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants