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

[16.0][MIG] fieldservice_sale: Migration to version 16.0 #1101

Merged
merged 77 commits into from
Jun 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
fe8b543
[ADD] fieldservice_sale
osi-scampbell Dec 19, 2018
a01e072
[REN] fsm_location.py
max3903 Dec 20, 2018
c889775
[FIX] View + icon
max3903 Dec 20, 2018
c2dd43d
[MIG][WIP][12.0] fieldservice_sale
murtuzasaleh Apr 3, 2019
bc402d4
[IMP] FSM Sale Update
osi-scampbell Jun 26, 2019
df215d9
[ADD] fieldservice_sale
osi-scampbell Dec 19, 2018
eb95539
[FIX] View + icon
max3903 Dec 20, 2018
98bc149
[IMP] fieldservice_sale
brian10048 May 11, 2019
e8b3830
[IMP] fieldservice_sale
brian10048 May 13, 2019
4392e0c
[FIX] fieldservice_sale errors
brian10048 May 22, 2019
d043699
Finish migration to v12 (forward port from v11)
hparfr Jul 15, 2019
b0171d4
[FIX] fieldservice_sale
max3903 Oct 10, 2019
8ae8b09
[IMP] fieldservice_sale: Remove the recurring part
max3903 Oct 16, 2019
6f0f5e7
[IMP] fieldservice_sale: Compute qty_delivered
brian10048 Nov 10, 2019
1f61752
[IMP] fieldservice_sale: Compute qty_delivered
brian10048 Nov 19, 2019
54c5d73
Autofill the FS location in Sale Orders
clementmbr Nov 22, 2019
05e99a8
Refactor autofill SO's FS location and add tests
clementmbr Nov 26, 2019
849d86b
[IMP] fieldservice_sale: Add service policy
brian10048 Nov 14, 2019
fb2308b
[IMP] fieldservice_sale: Link invoices to FS order
brian10048 Nov 22, 2019
083af4e
[IMP] fieldservice_sale: Merge and reuse fields
max3903 Nov 25, 2019
84a1fcb
[IMP] fieldservice_sale
brian10048 Nov 26, 2019
fd80f82
[FIX] fieldservice_sale
brian10048 Dec 6, 2019
126b192
[FIX] fieldservice_sale: Missing the template info
max3903 Dec 10, 2019
c032cd7
[FIX] fieldservice_sale: Missing location directions
max3903 Dec 10, 2019
a892cf1
[ADD] fieldservice_sale: Migration script to 12.0.2.0.0
max3903 Dec 10, 2019
564d5c3
[FIX] fieldservice_sale_recurring
brian10048 Dec 10, 2019
dc10c55
[IMP] fieldservice_sale
max3903 Dec 22, 2019
3015fc2
[FIX] fieldservice_sale
max3903 Dec 22, 2019
4694e03
[FIX] fieldservice_sale: PEP8 errors
max3903 Dec 22, 2019
d67b76b
[FIX] fieldservice_sale
max3903 Dec 19, 2019
bb83077
[IMP] fieldservice_sale: Add Validation
brian10048 Dec 31, 2019
aa53381
[FIX] fieldservice_sale: bug fixes
brian10048 Dec 31, 2019
7b8a42d
[FIX] Improved code.
murtuzasaleh Jan 1, 2020
9674934
[FIX] fieldservice_sale
brian10048 Jan 6, 2020
c23c977
[FIX] fieldservice_sale
max3903 Jan 6, 2020
2c5155a
[IMP] fieldservice_sale
max3903 Jan 9, 2020
001f2a5
Update fieldservice_sale/models/fsm_order.py
Jan 10, 2020
9dfe7ab
[FIX] fieldservice_sale
brian10048 Jan 16, 2020
826c491
[FIX] fieldservice_sale
brian10048 Jan 20, 2020
ff321f6
[IMP] fieldservice_sale: Add test case
brian10048 Jan 20, 2020
76cb741
[FIX] fieldservice_sale
brian10048 Feb 24, 2020
5f97b50
[FIX] fieldservice_sale: Access rights
max3903 Apr 3, 2020
ef26959
[FIX] fieldservice_sale
max3903 May 12, 2020
8b2453b
[IMP] fieldservice_sale: Pricelist on branch
max3903 May 14, 2020
fd879b6
[FIX] fieldservice_sale: Singleton error
max3903 May 16, 2020
0e352ec
[IMP] fieldservice_sale: black, isort, prettier
brian10048 Jul 18, 2020
571e22a
[MIG] fieldservice_sale: Migration to 13.0
brian10048 Jul 18, 2020
9a610c0
[FIX] fieldservice_sale migration changes
RLeeOSI Oct 5, 2020
79839bc
[FIX] invoice creation from SO
RLeeOSI Oct 7, 2020
8a63d02
[IMP] pre-commit, black
brian10048 Oct 22, 2020
732eeda
[FIX] Travis
Freni-OSI Apr 15, 2021
3232d2e
[14.0][MIG] fieldservice_sale
Freni-OSI Apr 15, 2021
a42b3c6
fieldservice_sale: remove required tpl in prd view
hparfr Jul 20, 2021
de9c11b
[FIX] fieldservice_sale: Restrict views to authorized users
pedrobaeza Jul 28, 2021
56ba32a
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 3, 2021
e001982
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 4, 2021
0ad4fbe
Translated using Weblate (Portuguese (Brazil))
marcos-mendez Dec 8, 2021
9756bd0
[14.0][FIX] fieldservice_sale
murtuzasaleh Jan 4, 2022
f87d03d
[FIX] fieldservice_sale: adapt access to ir.actions.* records
brian10048 May 6, 2022
0ec9e25
[15.0][MIG] fieldservice_sale
Freni-OSI Oct 27, 2022
c965195
Added translation using Weblate (Italian)
mymage Nov 2, 2022
0ad814c
Translated using Weblate (Italian)
mymage Nov 2, 2022
3869049
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 12, 2022
cca116f
Translated using Weblate (German)
NICO-SOLUTIONS Dec 3, 2022
d0ccf7d
Translated using Weblate (Italian)
francesco-ooops Jan 18, 2023
3814ad9
[IMP] fieldservice_sale: Simplify FSM creation
brian10048 Feb 21, 2023
9a43a84
[IMP] fieldservice_sale: Clean up tests
brian10048 Feb 23, 2023
d826096
Translated using Weblate (Spanish)
macagua Mar 2, 2023
202df89
Translated using Weblate (Spanish (Chile))
macagua Mar 2, 2023
32b460e
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 4, 2023
f4db32f
Translated using Weblate (Italian)
mymage Mar 8, 2023
d771ed9
Translated using Weblate (Italian)
francesco-ooops Apr 7, 2023
8b54f0e
[FIX] fieldservice_sale: duplicated sales order doesn't create FSM Order
dalonsod Apr 24, 2023
f70e88f
Translated using Weblate (Italian)
mymage May 3, 2023
ea623f3
[FIX] fieldservice_sale: fsm_location_id is mandatory
yankinmax May 17, 2023
20dc4d8
[IMP] fieldservice_sale: pre-commit stuff
stefan-tecnativa Jun 12, 2023
1735f9c
[MIG] fieldservice_sale: Migration to 16.0
epanisset Jan 30, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[FIX] fieldservice_sale
max3903 authored and stefan-tecnativa committed Jun 12, 2023
commit d67b76b38731af1bf4e2a5ee39e1923fba45a927
7 changes: 4 additions & 3 deletions fieldservice_sale/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ def _field_create_fsm_order_prepare_values(self):
hours = 0.0
categories = self.env["fsm.category"]
for template in templates:
note += template.instructions
note += template.instructions or ""
hours += template.hours
categories |= template.category_ids
return {
@@ -150,7 +150,8 @@ def action_invoice_create(self, grouped=False, final=False):
inv = invoice.copy()
inv.write({"invoice_line_ids": [(6, 0, [])]})
lines_by_line[i].invoice_id = inv.id
inv.fsm_order_id = lines_by_line[i].fsm_order_id.id
inv.fsm_order_ids = \
[(4, lines_by_line[i].fsm_order_id.id)]
result.append(inv.id)

# check for invoice lines with product
@@ -164,7 +165,7 @@ def action_invoice_create(self, grouped=False, final=False):
if len(lines_by_sale) > 0:
fsm_order = self.env["fsm.order"].search([("sale_id", "=", self.id)])
if len(lines_by_sale) == len(invoice.invoice_line_ids):
invoice.fsm_order_id = fsm_order.id
invoice.fsm_order_ids = [(4, fsm_order.id)]
elif len(invoice.invoice_line_ids) > len(lines_by_sale):
new = invoice.copy()
new.write({"invoice_line_ids": [(6, 0, [])]})