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 module from 8.0 to 10.0 #223

Merged

Conversation

YogeshMahera-SerpentCS
Copy link
Member

@YogeshMahera-SerpentCS YogeshMahera-SerpentCS commented Jul 26, 2017

#48

  • Migrated Business Requirement from v8 to v10

@YogeshMahera-SerpentCS
Copy link
Member Author

@elicoidal @victormartinelicocorp
Please review it.

@victormmtorres
Copy link
Collaborator

@elicoidal Should we keep this open to include demo data from #212 ?

@elicoidal
Copy link
Contributor

@victormartinelicocorp We will merge the PR in v8 in short so that we can push forward

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.
Demo data to be added once merged in v8.
README to be updated.
Functional test to be done

@elicoidal
Copy link
Contributor

Coverage is low: let's try to bring it up to 90% at least

@elicoidal
Copy link
Contributor

elicoidal commented Jul 27, 2017

Looks like a first good start. Some small issues to be corrected:

  • when creating a BR, the focus is in the use case field. should be in name
  • only graph view available: pivot should be added as well
  • there is no report available: at the basic one should be available (Business Requirement Report)
  • Source field is too wide: could it be set as one size high (now it seems 2)

@elicoidal
Copy link
Contributor

It is strange: normally changing the stages is done by clicking on the stage itself (latest developments) but it seems that the buttons are back in this version.
@YogeshMahera-SerpentCS can you check it?

@elicoidal
Copy link
Contributor

elicoidal commented Jul 27, 2017

A new request: I want that some of the modules appear as Application in the list:

  • create a "Business Requirement" Application
  • set the following modules as Apps: Business Requirement, Business Requirement Deliverable and Business Requirement Project

@elicoidal
Copy link
Contributor

elicoidal commented Jul 27, 2017

  • Source Field should be set as read-only as of Confirmed state (to be backported to v8 too)

@pedrobaeza pedrobaeza mentioned this pull request Jul 27, 2017
14 tasks
@elicoidal elicoidal added this to the 10.0 milestone Jul 27, 2017
@YogeshMahera-SerpentCS
Copy link
Member Author

only graph view available: pivot should be added as well

  • Which field should be added in pivot view or same graph view fields?

there is no report available: at the basic one should be available (Business Requirement Report)

  • In v8 there is no report like Business Requirement Report, so if is it require then what should be format?.

@elicoidal

@elicoidal
Copy link
Contributor

@YogeshMahera-SerpentCS

Which field should be added in pivot view or same graph view fields?

When I install the modules in v8, I have a pivot view for the "Business Requirement". Maybe it is defined in another module. Please check current Odoo 8 version

In v8 there is no report like Business Requirement Report, so if is it require then what should be format?.

Yes there is: please check current Odoo 8 version

@YogeshMahera-SerpentCS
Copy link
Member Author

YogeshMahera-SerpentCS commented Jul 28, 2017

When I install the modules in v8, I have a pivot view for the "Business Requirement". Maybe it is defined in another module. Please check current Odoo 8 version

  • Yes, I see in v10 there is pivot view is itself record view. In v8 it's included in graph view type as pivot.

Yes there is: please check current Odoo 8 version

  • Yes, it's available in business_requirement_deliverable_report.so shall I copy from business_requirement_deliverable_report to business_requirement module.?

@elicoidal

@elicoidal
Copy link
Contributor

Yes: the one for BR should be moved here and the one for deliverable in br_deliverable and the one for cost in brd_cost module
We should have done it in v8... but it is OK

@YogeshMahera-SerpentCS
Copy link
Member Author

@elicoidal

It is strange: normally changing the stages is done by clicking on the stage itself (latest developments) but it seems that the buttons are back in this version.
@YogeshMahera-SerpentCS can you check it?

Yes, I have checked its code in business_requirement_deliverable_project.
so shall I do stage as itself clicking in BR main module?

@elicoidal
Copy link
Contributor

@YogeshMahera-SerpentCS Please fix v8 and we will forward port to v10 for the sake of consistency

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.

Small indentation issues

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<report
id="business_requirement_report"
Copy link
Collaborator

Choose a reason for hiding this comment

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

First parameter should be on the same line as the tag

</div>
<div class="oe_right oe_button_box"
name="buttons" groups="base.group_user">
<button class="oe_inline oe_stat_button"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Over-indented of 1 space

<notebook>
<page string="Business Requirement">
<group string="Customer Story">
<field name="business_requirement" nolabel="1"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

All field tags below are over-indented of 1 space

<form string="Business Requirement">
<sheet>
<group>
<field name="name"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Over-indented

<field name="priority">20</field>
<field name="arch" type="xml">
<tree string="Business Requirement">
<field name="name"/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Over-indented

@YogeshMahera-SerpentCS
Copy link
Member Author

@seb-elico Improved Changes

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

@victormmtorres
Copy link
Collaborator

@YogeshMahera-SerpentCS as is not clear then here is the work expected on UT:

Refactor UT from: business_requirement/tests/test_project.py:

  • Fix name of file as is not true because all test are based on br object nothing is tested on project.
  • Extract all test inside the setUp function (setUp is just a common part for each test).

Refactor UT from: business_requirement/tests/test_br.py

  • Check every function on b-r object and be sure to create the test for every condition.
    Follow example done on:
    - def test_create_name_equal_slash(self)
    - def test_create_write_project(self):

@elicoidal
Copy link
Contributor

@YogeshMahera-SerpentCS let's try to finish it today 😄

@YogeshMahera-SerpentCS
Copy link
Member Author

@elicoidal Yes, I am doing my best.
Almost completed.

@YogeshMahera-SerpentCS
Copy link
Member Author

@victormartinelicocorp Can you please 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.

Let's move forward. The rest of UT to be improved on the next batch.

@elicoidal elicoidal merged commit 1ef4256 into OCA:10.0 Aug 15, 2017
@bistaray
Copy link

After installing this as the first module on a new 10.0 Enterprise Edition database (no errors during installation), I can create a Category, but when I try to create a Business Requirement, I get:

TypeError: Cannot read property '0' of undefined

http://192.168.56.96:8069/web/content/262-96bcfcf/web.assets_backend.js:2258
Traceback:
TypeError: Cannot read property '0' of undefined
at Class.prepare_dropdown_selection (http://192.168.56.96:8069/web/content/262-96bcfcf/web.assets_backend.js:2258:459)
at Class.render_value (http://192.168.56.96:8069/web/content/262-96bcfcf/web.assets_backend.js:2259:92)
at Class.prototype.(anonymous function) [as render_value] (http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:3009:559)
at Class.start (http://192.168.56.96:8069/web/content/262-96bcfcf/web.assets_backend.js:2235:106)
at Class.prototype.(anonymous function) [as start] (http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:3009:559)
at Class.start (http://192.168.56.96:8069/web/content/262-96bcfcf/web.assets_backend.js:2258:333)
at Class.prototype.(anonymous function) [as start] (http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:3009:559)
at http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:3112:963
at http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:547:681
at fire (http://192.168.56.96:8069/web/content/251-9a56ee6/web.assets_common.js:541:299)

And am blocked from proceeding, even after this message is dismissed.

@elicoidal
Copy link
Contributor

@bistaray thanks for reporting: I could not reproduce the error.
I created a new category and then tried to create a BR and did not experience any issue.
Do you have a pattern to reproduce it? Could you input an issue if you can reproduce it with the steps?
Thanks!

@vcloud9ray
Copy link

vcloud9ray commented Sep 2, 2017

@elicoidal - I pulled the latest version of Odoo 10 Community + Enterprise and re-downloaded the repo. Now I can create a BR without the error. So whatever my issue was, it is gone now. (bistaray -> vcloud9raymond)

@elicoidal
Copy link
Contributor

@vcloud9raymond Great! thanks for reporting back

ruter-lyu pushed a commit to ruter-lyu/business-requirement that referenced this pull request Mar 15, 2019
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
pedrobaeza pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 24, 2020
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
AntoniRomera pushed a commit to AntoniRomera/business-requirement that referenced this pull request Jul 4, 2023
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
NachoAlesLopez pushed a commit to NachoAlesLopez/business-requirement that referenced this pull request Apr 28, 2024
* [MIG]Migrated Business requirement module from 8.0 to 10.0

* [FIX]Fix Pylint

* [IMP]Added new blankline in security file

* [IMP]Added Test-Cases for Coverage

* [IMP]Added report,improved fields in py and xml

* [IMP]Improved code

* [IMP] Removed default dimensions from pivot view

* [FIX]Fixed Pylint

* [IMP]Improved code

* [IMP]Improved code

* [FIX]Fixed Travis

* [IMP]Test-cases Improved

* [IMP]Improved view as per OCA standards

* [IMP]Improved assert in test-cases

* [IMP]-Added assertEqual in test-cases

* [IMP]Improved Test-cases

* [IMP]Improved Code as per OCA Standard in XML

* [IMP/REM]Cover whole BR-code and removed unnecessary test-cases.

* [IMP]Cover test-cases default_comany function
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

6 participants