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][IMP] Transfer the Gross Profit fields to the Deliverable lines #105

Conversation

sudhir-serpentcs
Copy link
Contributor

Transfer the Gross Profit fields to the Deliverable lines.

BR with BRD_cost give the calculation for Total Revenue-Total Cost = Gross Profit
Need to have on every DL the same calculation based on their own RL
So DL 1 will have a partial Total Revenue DL 1 - Total Cost DL 1 = Gross Profit DL 1

@elicoidal

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.

Please review the logic.
Please review the form fields to be added
Please review the ACL.

)

@api.multi
@api.depends('resource_ids.price_total',
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure this does what I am expecting.
Here is what I need: DL.gross_profit = DL.price_total - sum(RL.cost)
It should be updated whenever the RL.cost or DL.price_total changes.

Can you double check? @sudhir-serpentcs

@@ -31,6 +31,9 @@
class="oe_highlight"/>
</group>
</xpath>
<xpath expr="//field[@name='price_total']" position="after">
<field name="gross_profit"/>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not only: I would like to see the same fields as in the BR (check screenshot that I have provided).
Besides it should only be visible to the "cost" group

@elicoidal elicoidal added this to the 8.0 milestone Apr 2, 2017
@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19850-BR000801-Transfer_GrossProfit_fields_to_DL branch from 23b7a38 to a59e162 Compare April 3, 2017 05:49
@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal
Changed calculation for gross profit and added ACL.
a59e162

@elicoidal
Copy link
Contributor

@sudhir-serpentcs please check this and the screenshot. The current code doesnot cover it all AFAIK.

@elicoidal
Copy link
Contributor

please follow: #84

@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19850-BR000801-Transfer_GrossProfit_fields_to_DL branch from ee3a5b2 to 2ec7427 Compare April 10, 2017 13:06
@sudhir-serpentcs sudhir-serpentcs force-pushed the 8.0-19850-BR000801-Transfer_GrossProfit_fields_to_DL branch from 80c6251 to 1e82d67 Compare April 11, 2017 06:28
@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal @victormartinelicocorp
can you please review code.

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.

Functional tests are OK

@elicoidal
Copy link
Contributor

Will need to be fixed when #113 is finished

@elicoidal
Copy link
Contributor

@sudhir-serpentcs can you rebase your work to fit the changes made in #113

@elicoidal
Copy link
Contributor

@sudhir-serpentcs once you fix the link to #113 we could quickly merge

@elicoidal
Copy link
Contributor

@sudhir-serpentcs #113 is fixed. Can you rebase and fix this one?

@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal
please review code.

@elicoidal
Copy link
Contributor

@sudhir-serpentcs I have lost the description field in deliverable

@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal
Added Description field, please review code.

@elicoidal
Copy link
Contributor

@sudhir-serpentcs far from been ready: can you retest the full process?

When creating a RL in the DL, I have following js error: Error: NameError: name 'business_requirement_id' is not defined

@sudhir-serpentcs
Copy link
Contributor Author

@elicoidal
Improved code as per comment.
please review code

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

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 4, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 6, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 6, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
pedrobaeza pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 21, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jun 26, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Jul 25, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Aug 9, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victormmtorres pushed a commit to Tecnativa/business-requirement that referenced this pull request Aug 19, 2019
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 24, 2020
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Jan 27, 2020
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 3, 2020
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 5, 2020
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
Tardo pushed a commit to Tecnativa/business-requirement that referenced this pull request Mar 30, 2020
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.

OCA Transbot updated translations from Transifex
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Oct 14, 2021
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.

OCA Transbot updated translations from Transifex
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 11, 2021
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 15, 2021
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
victoralmau pushed a commit to Tecnativa/business-requirement that referenced this pull request Nov 15, 2021
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.

OCA Transbot updated translations from Transifex
MosabWadea pushed a commit to MosabWadea/business-requirement that referenced this pull request Mar 5, 2022
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
bizzappdev pushed a commit to BizzAppDev-Systems/business-requirement that referenced this pull request Mar 4, 2023
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
AntoniRomera pushed a commit to AntoniRomera/business-requirement that referenced this pull request Jul 4, 2023
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.

OCA Transbot updated translations from Transifex
dreispt pushed a commit to dreispt/business-requirement that referenced this pull request Apr 27, 2024
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
dreispt pushed a commit to dreispt/business-requirement that referenced this pull request Apr 27, 2024
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.
NachoAlesLopez pushed a commit to NachoAlesLopez/business-requirement that referenced this pull request Apr 28, 2024
…CA#105)

* [IMP] Transfer the Gross Profit fields to the Deliverable lines

* [IMP] Changed calculation for Gross Profit.

* [IMP]Transfer the Gross Profit fields to the Deliverable lines

* [ADD]Added Description field

* [IMP] Improved code as per comment.

* [IMP]changed the position of the fields.

* [IMP] Improved code as per comment.

* [IMP]Improved pivot views.

* [FIX] Fixed Travis & Changed code as per comments.

* [FIX] made requested changes.

[ADD][business_requirement] Added To be reviewed field in BR (OCA#120)

* [ADD]Added To be reviewed field in BR

* [IMP] Improved form view as per requirement.

* [IMP] Improved code as per comment.

* [FIX] Fixed issues.

* [IMP]Improved Code.

* [IMP] IMproved code.

OCA Transbot updated translations from Transifex
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