-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
[8.0][IMP] Transfer the Gross Profit fields to the Deliverable lines #105
Conversation
There was a problem hiding this 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', |
There was a problem hiding this comment.
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"/> |
There was a problem hiding this comment.
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
23b7a38
to
a59e162
Compare
@elicoidal |
@sudhir-serpentcs please check this and the screenshot. The current code doesnot cover it all AFAIK. |
please follow: #84 |
ee3a5b2
to
2ec7427
Compare
80c6251
to
1e82d67
Compare
@elicoidal @victormartinelicocorp |
There was a problem hiding this 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
Will need to be fixed when #113 is finished |
@sudhir-serpentcs can you rebase your work to fit the changes made in #113 |
@sudhir-serpentcs once you fix the link to #113 we could quickly merge |
@sudhir-serpentcs #113 is fixed. Can you rebase and fix this one? |
@elicoidal |
@sudhir-serpentcs I have lost the description field in deliverable |
@elicoidal |
@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 |
@elicoidal |
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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
…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
…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.
…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.
…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.
…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
…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.
…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.
…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
…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.
…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.
…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
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