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

[IMP][8.0][22070][ISSUE#115]-Modify projects and BR id relationship #192

Conversation

serpentcs-dev1
Copy link
Member

Issue #115

  • Added Smart button Linked Project.

  • Added two fields business_requirement_id and business_requirement_deliverable_id in project.project.

  • Make invisible linked_project field form BR.

  • Made read-only field for_br while generated projects wizard is open.

@seb-elico @elicoidal @victormartinelicocorp

@elicoidal
Copy link
Contributor

elicoidal commented Jun 30, 2017

@darshan-serpent thanks for the contribution.
I made a test with one BR, 2 deliverables and created the projects from both BR + deliverables:

  • In created project: cannot use the BR smart button to display the linked BR (nothing listed)
  • in original BR, Linked Project smart button only shows the project directly linked to the BR, not the ones linked to deliverables (expected shows all projects linked to the BR and its deliverable)

Rest looks good but I still need a test on BR with sub-BR
cc @seb-elico @victormartinelicocorp

@elicoidal
Copy link
Contributor

elicoidal commented Jun 30, 2017

Test with Children project are similar to the one with Deliverables

Problem while copying:

  • when copying a BR, the copied BR is still linked to the project of the initial BR (??)

@elicoidal elicoidal changed the title [IMP][8.0][22070][ISSUE#115]-Improved code as per changes [IMP][8.0][22070][ISSUE#115]-Modify projects and BR id relationship Jun 30, 2017
@serpentcs-dev1
Copy link
Member Author

@elicoidal Regarding creating projects from Deliverables.

I am not really sure how to create a project from deliverables, can you please describe it in brief?!

@elicoidal
Copy link
Contributor

@darshan-serpent What is the situation on this BR?

@elicoidal
Copy link
Contributor

@darshan-serpent @sudhir-serpentcs What is the situation here?

@elicoidal elicoidal added this to the 8.0 milestone Jul 10, 2017
@serpentcs-dev1
Copy link
Member Author

@elicoidal There's still some confusion here, I'll let you know the details soon of current situation.

@serpentcs-dev1 serpentcs-dev1 force-pushed the 8.0-22070-Issue-115-link_with_generated_projects branch from d84a510 to b538893 Compare July 10, 2017 11:35
@YogeshMahera-SerpentCS
Copy link
Member

YogeshMahera-SerpentCS commented Jul 10, 2017

@elicoidal @victormartinelicocorp
Could you please review it.

@elicoidal
Copy link
Contributor

elicoidal commented Jul 11, 2017

Small details:

  • in smart button BR in project: the number of BR should not be displayed (a project can only be linked to one BR at a time)
  • in BR "Linked Project" should display the number of linked project.

Rest looks OK!

@elicoidal
Copy link
Contributor

@victormartinelicocorp

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.

Others LGTM

@@ -43,6 +44,22 @@ def generate_projects_wizard(self):
compute='_compute_planned_hour'
)

@api.multi
def open_linked_projects(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

@darshan-serpent This returns type action so the name need to be according:
s/open_linked_projects
r/action_open_linked_projects

)

@api.multi
def open_linked_br_dl(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

@darshan-serpent This returns type action so the name need to be according:
s/open_linked_br_dl
r/action_open_linked_br_dl

@serpentcs-dev1 serpentcs-dev1 force-pushed the 8.0-22070-Issue-115-link_with_generated_projects branch from d58eaaf to 75c2eec Compare July 11, 2017 10:58
@YogeshMahera-SerpentCS
Copy link
Member

YogeshMahera-SerpentCS commented Jul 12, 2017

@victormartinelicocorp could you please review.

@elicoidal
Copy link
Contributor

@YogeshMahera-SerpentCS Can you recheck Travis?

@serpentcs-dev1 serpentcs-dev1 force-pushed the 8.0-22070-Issue-115-link_with_generated_projects branch from 7e6e85d to a605c51 Compare July 14, 2017 05:17
@YogeshMahera-SerpentCS
Copy link
Member

@elicoidal Travis Green

@elicoidal
Copy link
Contributor

@darshan-serpent I still see many issues with smart buttons in Project and the more I think about the more I think this is anyway a mistake create a smart button for this kind of field: it should be a simple m2o field right (for one given project, there could only be one BR, right?) ? If so I would put it below customer in the project form
cc @victormartinelicocorp @sudhir-serpentcs

@elicoidal
Copy link
Contributor

@sudhir-serpentcs any feedback on this?

@serpentcs-dev1 serpentcs-dev1 force-pushed the 8.0-22070-Issue-115-link_with_generated_projects branch from 5082649 to e7883eb Compare July 21, 2017 07:53
@YogeshMahera-SerpentCS
Copy link
Member

@elicoidal Could you 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.

@elicoidal
Copy link
Contributor

@victormartinelicocorp @dreispt @pedrobaeza Thanks for your review

@api.depends('linked_project', 'deliverable_lines')
def _compute_linked_project_count(self):
for rec in self:
domain = ['|',
Copy link
Collaborator

Choose a reason for hiding this comment

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

@darshan-serpent @YogeshMahera-SerpentCS Need to understand the exactly purpose of this domain?
This two fields:
business_requirement_id
business_requirement_deliverable_id

As parameters domains means should be fields on the business.requirement model, right?

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.

thanks @darshan-serpent @sudhir-serpentcs

@victormmtorres
Copy link
Collaborator

@elicoidal @seb-elico As you know we could see just the code that changes when it's created a PR.

@YogeshMahera-SerpentCS Please it's very important to be sure and understand the scope. So if the topic is Modify projects and BR id relationship how comes that still exists linked_project fields on BR and BRD?

Furthermore on wizard for generate projects still exist check and assignations that depends on linked_project.

Others smalls details, that could be quick correct.

Now we have and issue #241 and now I have to review the whole code and check whether is new or old modification.

ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 22, 2019
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
pedrobaeza pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 24, 2020
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
AntoniRomera pushed a commit to AntoniRomera/business-requirement that referenced this pull request Jul 4, 2023
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
NachoAlesLopez pushed a commit to NachoAlesLopez/business-requirement that referenced this pull request Apr 28, 2024
…CA#192)

* [IMP][8.0][22070][ISSUE#115]-Improved code as per changes

* [IMP]Improved domain and added copy=False in linked_project

* [ADD/IMP]Linked Project with BR and DL with Smartbutton

* [IMP]Improved code

* [IMP]Count number of linked project in BR,removed count function and veriable from project

* [IMP]Improved method name

* [FIX]Fix Travis

* [IMP]Improved code

* [IMP]Improved code

* [IMP] Improved method name to field
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

4 participants