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

[14.0][add] fieldservice_contract #809

Closed
wants to merge 27 commits into from

Conversation

hparfr
Copy link
Contributor

@hparfr hparfr commented Jun 22, 2021

Blocked by fieldservice_recurring #762 #859
Blocked by fieldservice_quick_edit not published in pr yet: https://github.com/akretion/field-service/tree/14.0-mig-fieldservice_recurring_quick_edit

"""
for line in self:
# create order
if line.product_id.field_service_tracking == "order":
Copy link
Contributor

Choose a reason for hiding this comment

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

Field_service_tracking has not "order" value https://github.com/OCA/field-service/blob/14.0/fieldservice_sale/models/product_template.py#L17. We have "sale" and "line" value which mean that we can create an unique FSM order by sale order if Field_service_tracking = "sale" or one SFM Order by sale line if Field_service_tracking = "line".
It seam that for recurring order we can only create one FSM recurring order by sale line.

@paradoxxxzero paradoxxxzero force-pushed the 14.0-fieldservice-contract branch from f040203 to 29b9f5b Compare February 28, 2023 15:25
"fieldservice_recurring",
"fieldservice_sale_recurring",
"fieldservice_sale_frequency",
"fieldservice_recurring_quick_edit",
Copy link

Choose a reason for hiding this comment

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

I could not find any PR to this module fieldservice_recurring_quick_edit on version 14.0, does this dependency is required ? or could you point give me the link that I could give a review?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@hparfr hparfr Jun 5, 2023

Choose a reason for hiding this comment

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

The dependency tree should be clarified / refactored.

First, we need frequencies set probably in his own module. Then defined in sale order lines, contracts lines.

Frequency set has two notions;

    1. abstract frequency set ( ambigus defined during the sale. Like "once a month".
    1. concret frequency set, usually derived from the abstract. Like "first monday of each month at 6am".

fsm_recurring_quick_edit let you input an abstract frequency seton thesale order lineand convert it to aconcret frequency seton arecurring order`.

The abstract frequency set may be also used on the contract line.

self, contract, predecessor_contract_line_id=False
):
self.ensure_one()
contract.fsm_location_id = self.order_id.fsm_location_id
Copy link

Choose a reason for hiding this comment

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

this is a little trap, as developer I won't expect the contract to be updated while preparing conctract liste, also it make hard to overload in submodules

@hparfr hparfr marked this pull request as draft June 5, 2023 08:52
hparfr and others added 22 commits June 6, 2023 16:31
… on contract by ._get_invoiceable_stage method
@mourad-ehm mourad-ehm force-pushed the 14.0-fieldservice-contract branch from 637ef02 to c76e4f6 Compare June 6, 2023 14:37
@github-actions
Copy link

github-actions bot commented Oct 8, 2023

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 8, 2023
@github-actions github-actions bot closed this Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocked by dependency stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants