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

[RFC] Changes on fsm (recurring) template #735

Closed
8 of 9 tasks
hparfr opened this issue Feb 26, 2021 · 5 comments
Closed
8 of 9 tasks

[RFC] Changes on fsm (recurring) template #735

hparfr opened this issue Feb 26, 2021 · 5 comments
Labels
enhancement stale PR/Issue without recent activity, it'll be soon closed automatically.

Comments

@hparfr
Copy link
Contributor

hparfr commented Feb 26, 2021

I suggest some changes in v14 at least:

  • fsm.template
  • fsm.recurring.template
  • product.template:
  • fsm.recurring:

Why ?

  • Multicompany: in order to be aligned with product.template, sale.order.template.
  • Optional fields: In my use case, I need to set frequencies and duration in the sale_order_lines (a new module soon)
  • Having both templates on products: simpler design.
  • Optional templates on products: because there is no need of mandatory templates

What do you think of it ?

@hparfr
Copy link
Contributor Author

hparfr commented Mar 4, 2021

ping @brian10048 @max3903 @osi-scampbell

@brian10048
Copy link
Sponsor Contributor

I only have one objection which is in relation to removing fsm_order_template_id from fsm.recurring.template

* fsm.template

* [ ]  rename model fsm.template to fsm.order.template
* [ ]   `company_id`:  remove default value 
* [ ]  `hour` : rename field to `duration`

These changes to fsm.template sound good to me

* fsm.recurring.template


* [ ]   `company_id`:  remove default value
* [ ]  `frequency_set_id`: change required to False
* [ ]  `fsm_order_template_id` : remove it (see product.template)

First 2 changes are acceptable for me

I don't agree to remove fsm_order_template_id since not all uses of the recurring template come from a product or a sale. For us, we may create a recurring order manually that may not be related to a product at all. We still need the fsm_order_template_id field so that each order from the recurring order is assigned a fsm order template.

* product.template:
* [ ]  `fsm_order_template_id`: required=False (xml) and invisible if tracking_policy = no
* [ ]  `fsm_recurring_template_id`: required=False (xml)

Acceptable

* fsm.recurring:

* [ ]  `frequency_set_id`: change required to False

Acceptable

@hparfr
Copy link
Contributor Author

hparfr commented Mar 9, 2021

I don't agree to remove fsm_order_template_id since not all uses of the recurring template come from a product or a sale. For us, we may create a recurring order manually that may not be related to a product at all. We still need the fsm_order_template_id field so that each order from the recurring order is assigned a fsm order template.

So I suggest then to not remove it, but make it optional.

Screenshot_2021-03-09 New - Odoo
Screenshot_2021-03-09 New - Odoo(1)
Screenshot_2021-03-09 New - Odoo(2)

hparfr added a commit to akretion/field-service that referenced this issue Jul 20, 2021
hparfr added a commit to akretion/field-service that referenced this issue Jul 20, 2021
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
hparfr added a commit to akretion/field-service that referenced this issue Jul 23, 2021
Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
hparfr added a commit to akretion/field-service that referenced this issue Oct 19, 2021
hparfr added a commit to akretion/field-service that referenced this issue Dec 28, 2021
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
hparfr added a commit to akretion/field-service that referenced this issue Dec 28, 2021
Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
hparfr added a commit to akretion/field-service that referenced this issue Dec 28, 2021
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
hparfr added a commit to akretion/field-service that referenced this issue Dec 28, 2021
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
hparfr added a commit to akretion/field-service that referenced this issue Dec 31, 2021
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
mourad-ehm pushed a commit to akretion/field-service that referenced this issue Jan 25, 2022
Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
mourad-ehm pushed a commit to akretion/field-service that referenced this issue Jan 26, 2022
mourad-ehm pushed a commit to akretion/field-service that referenced this issue Jan 26, 2022
mourad-ehm pushed a commit to akretion/field-service that referenced this issue Jan 27, 2022
mourad-ehm pushed a commit to akretion/field-service that referenced this issue Jan 27, 2022
hparfr added a commit to akretion/field-service that referenced this issue Feb 3, 2022
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
Freni-OSI pushed a commit to ursais/field-service that referenced this issue Feb 10, 2022
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
@github-actions
Copy link

github-actions bot commented Sep 4, 2022

There hasn't been any activity on this issue in the past 6 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 issue 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 Sep 4, 2022
@hparfr
Copy link
Contributor Author

hparfr commented Sep 12, 2022

rename model fsm.template to fsm.order.template

Still to do, but low priority for me now.

@hparfr hparfr closed this as completed Sep 12, 2022
Freni-OSI pushed a commit to ursais/field-service that referenced this issue Oct 17, 2022
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
Freni-OSI pushed a commit to ursais/field-service that referenced this issue Oct 27, 2022
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
Freni-OSI pushed a commit to ursais/field-service that referenced this issue Oct 28, 2022
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
Freni-OSI pushed a commit to ursais/field-service that referenced this issue Nov 3, 2022
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
epanisset pushed a commit to camptocamp/field-service that referenced this issue Jan 30, 2023
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
gurneyalex pushed a commit to camptocamp/field-service that referenced this issue Feb 2, 2023
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
aiendry-aktivsoftware pushed a commit to aiendry-aktivsoftware/field-service that referenced this issue Jun 1, 2023
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
aiendry-aktivsoftware pushed a commit to aiendry-aktivsoftware/field-service that referenced this issue Jun 1, 2023
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
stefan-tecnativa pushed a commit to Tecnativa/field-service that referenced this issue Jun 12, 2023
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
kaynnan pushed a commit to Escodoo/field-service that referenced this issue Jul 10, 2023
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
OCA-git-bot pushed a commit to aiendry-aktivsoftware/field-service that referenced this issue Nov 14, 2023
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
brian10048 pushed a commit to brian10048/field-service that referenced this issue Dec 13, 2023
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
brian10048 pushed a commit to brian10048/field-service that referenced this issue Dec 13, 2023
implement OCA#735

Prefer fsm_order_template from product (directly)
else from product.fsm_recurring_template

Adapt product's view
SMaciasOSI pushed a commit to ursais/field-service that referenced this issue Dec 19, 2023
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
peluko00 pushed a commit to APSL/field-service that referenced this issue Apr 16, 2024
add scheduled_duration to recurring order.

Scheduled_duration, when filled directly on the recurring
order overrides the value from the template
santiagordz pushed a commit to ursais/field-service that referenced this issue Jun 17, 2024
Create a blank fsm from a SO is a valid use case.
And it make more sense when used with fsm_recurring_sale

Implement rfc OCA#735
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

2 participants