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

Updating from latest 15.0 #322

Open
wants to merge 260 commits into
base: 15.0.project_MI_465
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
51ff3eb
Merge pull request #249 from frePPLe/15.0
bt-admin Nov 7, 2022
67ee5b8
setting dependencies of freppledata module
jdetaeye Nov 7, 2022
09a671c
setting dependencies of freppledata module
jdetaeye Nov 7, 2022
8295ccf
fix mapping for PO in status "to approve": should be excluded by de…
jdetaeye Nov 7, 2022
c81da79
Merge pull request #252 from frePPLe/15.0
bt-admin Nov 9, 2022
8815a9e
fix variants without internal reference, use the product id instead
hichamlahlou Nov 23, 2022
b2a25c7
support single-db setups
jdetaeye Nov 23, 2022
103660e
support single-db setups
jdetaeye Nov 23, 2022
8f56390
Merge pull request #260 from frePPLe/15.0
bt-admin Nov 24, 2022
b870758
commenting the with_mrp imports in all files as generating loop error…
hichamlahlou Nov 25, 2022
dd20b1c
Merge branch '15.0' of https://github.com/frepple/odoo into 15.0
hichamlahlou Nov 25, 2022
f18eebc
Merge pull request #262 from frePPLe/15.0
bt-admin Nov 26, 2022
3a752b4
add module description
hichamlahlou Nov 30, 2022
f89a81d
stronger message
hichamlahlou Nov 30, 2022
b26b454
make demo dataset independent from "mitchel admin"
jdetaeye Nov 30, 2022
888a0d0
new users don't get the frepple-access by default any longer
jdetaeye Dec 15, 2022
f2fd611
frepple demo data: enable workorders + inventory locations
jdetaeye Dec 15, 2022
cdd1abc
Merge 14.0 into 15.0
jdetaeye Dec 15, 2022
ca0d294
Merge pull request #266 from frePPLe/15.0
bt-admin Dec 16, 2022
cee4549
connection test mode 0
jdetaeye Dec 20, 2022
6e8435c
connection test mode 0
jdetaeye Dec 20, 2022
7eb0eee
Merge pull request #269 from frePPLe/15.0
bt-admin Dec 21, 2022
06cd2b2
management of two-week calendars
hichamlahlou Dec 27, 2022
188a757
bug fix for situations where a bom produces more than 1 unit of the p…
jdetaeye Jan 20, 2023
6186a35
bug fix for situations where a bom produces more than 1 unit of the p…
jdetaeye Jan 20, 2023
c69733e
Merge pull request #275 from frePPLe/15.0
bt-admin Jan 21, 2023
be8469c
Possibility to define secondary workcenters to an operation
hichamlahlou Jan 17, 2023
6388afe
remove secondary field in list of fields and add it instead as a new tab
hichamlahlou Jan 19, 2023
cef4307
remove parameter enable_secondary_workcenter and replace with column …
hichamlahlou Jan 19, 2023
9ab8e99
Change secondary workcenter field of routing_workcenter from many2man…
hichamlahlou Jan 23, 2023
716969c
adding skill in the view (it was present in the model but not in the …
hichamlahlou Jan 25, 2023
d58cc68
possibility to mark the work center as a tool => loaded into the reso…
hichamlahlou Jan 25, 2023
e1ec445
Merge pull request #278 from frePPLe/15.0
bt-admin Jan 26, 2023
143de0a
updated addon doc to include in odoo app store
jdetaeye Jan 26, 2023
79e473e
Merge branch 14.0' into 15.0
jdetaeye Jan 26, 2023
b79b1f5
manifest - correcting images location
jdetaeye Jan 26, 2023
0ccca32
manifest - correcting images location
jdetaeye Jan 26, 2023
8efbc7f
Merge pull request #281 from frePPLe/15.0
bt-admin Jan 27, 2023
0627ed5
creates a small animation with the 3 images: forecast+inventory plann…
hichamlahlou Jan 26, 2023
dec1f6d
updating path for image folder
hichamlahlou Jan 27, 2023
0384cb2
updating modules to comply to the app store:
hichamlahlou Jan 27, 2023
35cf127
remove grey background from IP and set it to forecast
hichamlahlou Jan 27, 2023
67a96ac
creates a small animation with the 3 images: forecast+inventory plann…
hichamlahlou Jan 26, 2023
0e2348d
updating path for image folder
hichamlahlou Jan 27, 2023
f546b3f
updating modules to comply to the app store:
hichamlahlou Jan 27, 2023
ce59836
remove grey background from IP and set it to forecast
hichamlahlou Jan 27, 2023
36593da
Merge pull request #284 from frePPLe/15.0
bt-admin Jan 28, 2023
6a15ccc
Updated help attribute for frepple custom fields.
jdetaeye Jan 31, 2023
4da6e9f
Merge pull request #286 from frePPLe/15.0
bt-admin Feb 1, 2023
650b2aa
Update README.md
hichamlahlou Feb 1, 2023
df5a329
increasing manufacturing priority by 100 (50 for subcontractors) to f…
hichamlahlou Feb 6, 2023
787b894
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Feb 7, 2023
0eaee29
Merge pull request #291 from frePPLe/15.0
bt-admin Feb 8, 2023
dde42a7
setting deadline & receipt date on exported RFQ POs
jdetaeye Feb 13, 2023
1f6de32
Merge remote-tracking branch 'origin/HEAD' into 15.0
jdetaeye Feb 13, 2023
5744257
Merge pull request #294 from frePPLe/15.0
bt-admin Feb 14, 2023
1e26e7a
secondary resources: extra robustness to handle unmapped work centers
jdetaeye Feb 14, 2023
03b47be
Merge pull request #296 from frePPLe/15.0
bt-admin Feb 15, 2023
7d709d8
secure access to dict, week_type could be missing
hichamlahlou Feb 17, 2023
3c1dde8
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Feb 17, 2023
1919d39
Merge pull request #299 from frePPLe/15.0
bt-admin Feb 19, 2023
7e6bc16
fix resource skills not pulled by connectors
hichamlahlou Feb 21, 2023
8bf6a38
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Feb 21, 2023
976b53f
Merge pull request #302 from frePPLe/15.0
bt-admin Feb 22, 2023
e6cd478
black formatting + improved logic for dealing with multiple item+supp…
jdetaeye Feb 22, 2023
50ee4ee
Merge 14.0 into 15.0
jdetaeye Feb 22, 2023
1fc7f94
black badge in readme
jdetaeye Feb 22, 2023
9fbcc50
wrong format in previous commit
jdetaeye Feb 22, 2023
7c1aef1
Merge pull request #306 from frePPLe/15.0
bt-admin Feb 23, 2023
e8dc51d
MO export: use the default location instead of explicitly setting one
jdetaeye Mar 10, 2023
7470dd3
MO export: use the default location instead of explicitly setting one
jdetaeye Mar 10, 2023
d990e84
Merge pull request #309 from frePPLe/15.0
bt-admin Mar 11, 2023
84c272c
second approach for MO extraction that avoids duplicating proposals
jdetaeye Mar 13, 2023
b3c6a1c
second approach for MO extraction that avoids duplicating proposals
jdetaeye Mar 13, 2023
2772dd6
Merge pull request #312 from frePPLe/15.0
bt-admin Mar 14, 2023
95bc676
integration of workorder status to frepple, part I
jdetaeye Mar 24, 2023
9a27701
Merge pull request #314 from frePPLe/15.0
bt-admin Mar 25, 2023
e76aa81
integration of workorder status to frepple, part II
jdetaeye Mar 28, 2023
2fdff2c
integration of workorder status to frepple, part III
jdetaeye Mar 29, 2023
512dba8
updated MO&WO mapping
jdetaeye Mar 29, 2023
6d2191d
more accurate workorder mapping
jdetaeye Apr 7, 2023
7f818a2
mapping WO remaining duration
jdetaeye Apr 7, 2023
7c93c2c
correct remaining duration for currently running WOs
jdetaeye Apr 7, 2023
3e1df6c
processing of scheduled dates on inbound WO
jdetaeye Apr 12, 2023
135ecc0
tool vs tool-per-piece in the odoo connector
jdetaeye Apr 13, 2023
b0fb490
also sending workcenter id to frepple
jdetaeye Apr 13, 2023
e2fcae9
Merge pull request #317 from frePPLe/15.0
bt-admin Apr 14, 2023
a66fd5c
improved handling of "unplanned" WO -> use the MO scheduled start
jdetaeye Apr 14, 2023
2189ee7
typo in previous commit
jdetaeye Apr 14, 2023
fd2a55f
Merge pull request #320 from frePPLe/15.0
bt-admin Apr 15, 2023
2d0847b
update request context with default picking to set correct src/dest l…
hichamlahlou Apr 20, 2023
49f3a1c
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Apr 20, 2023
0fbeb5e
update request context with default picking to set correct src/dest l…
hichamlahlou Apr 20, 2023
5d09e37
Merge pull request #324 from frePPLe/15.0
bt-admin Apr 21, 2023
10787a7
exporting workcenter assignments
jdetaeye Apr 21, 2023
3866d78
extra robustness for previous commit
jdetaeye Apr 21, 2023
a1545a4
add skill to workcenter view
hichamlahlou Apr 22, 2023
0d386e8
fix multiple skills
hichamlahlou Apr 24, 2023
61b80e4
remove workcenter from form view. Still visible in tree view
hichamlahlou Apr 24, 2023
01dbd78
secondary workcenter views
hichamlahlou Apr 24, 2023
23e3d9b
Merge branch '15.0' of https://github.com/frePPLe/odoo into 15.0
hichamlahlou Apr 25, 2023
b997bde
assignment of secondary work centers - skeleton pseudo code
jdetaeye May 3, 2023
904259c
update context of the user creating the MO
hichamlahlou May 3, 2023
92cc3f1
automatically assign secondary workcenter to new MO
hichamlahlou May 3, 2023
a368a2e
Merge pull request #328 from frePPLe/15.0
bt-admin May 4, 2023
cb03081
refinement of previous commit: avoiding code duplication and some op…
jdetaeye May 4, 2023
d978242
Merge branch 'dev-15.0' into 15.0
jdetaeye May 4, 2023
d28aa51
adding return value
jdetaeye May 4, 2023
ce763b5
Merge pull request #330 from frePPLe/15.0
bt-admin May 5, 2023
5d43197
Merge branch '15.0' of https://github.com/frePPLe/odoo into 15.0
hichamlahlou May 5, 2023
fe735ec
prevent secondary workcenter to be assigned when MO is exported from …
hichamlahlou May 5, 2023
1a0ea69
Merge remote-tracking branch 'remotes/origin/dev-15.0' into 15.0
hichamlahlou May 5, 2023
b22e0a0
Merge pull request #332 from frePPLe/15.0
bt-admin May 6, 2023
b328afc
updated logic to assign secondary work centers - skills also must mat…
jdetaeye May 12, 2023
ea966a7
Merge pull request #335 from frePPLe/15.0
bt-admin May 13, 2023
0b99a1b
small optimization & cleanup
jdetaeye May 23, 2023
8590ccb
Merge pull request #337 from frePPLe/15.0
bt-admin May 24, 2023
e5b2517
set child work center at WO level when owner is the selected work center
hichamlahlou May 24, 2023
fa38b0f
Merge pull request #339 from frePPLe/15.0
bt-admin May 25, 2023
3f0efca
manufacturing delay is in days, no need to divide by 1440
hichamlahlou May 31, 2023
77ac949
Merge pull request #341 from frePPLe/15.0
bt-admin Jun 1, 2023
42422c8
license change
jdetaeye Jun 5, 2023
f931b15
license change
jdetaeye Jun 5, 2023
5dd3255
license change
jdetaeye Jun 5, 2023
5f47904
license change
jdetaeye Jun 5, 2023
7d718ad
Merge pull request #343 from frePPLe/15.0
bt-admin Jun 6, 2023
adb87ae
populate scheduled_start and scheduled_finish date on newly approved …
jdetaeye Jun 14, 2023
9dab281
fix variant bom line selection
hichamlahlou Jun 14, 2023
b91adf1
Merge pull request #345 from frePPLe/15.0
bt-admin Jun 15, 2023
e7b750e
Use stock moves to read the sales order line details.
hichamlahlou Jun 29, 2023
b739ba1
Merge pull request #347 from frePPLe/15.0
bt-admin Jun 30, 2023
5adf8c3
Fix connectors when exporting confirmed MOs when work orders is true …
hichamlahlou Jul 13, 2023
ecd80ec
correct quantities when no wo exists.
hichamlahlou Jul 13, 2023
d7b5d72
Merge pull request #348 from frePPLe/15.0
bt-admin Jul 14, 2023
53d90f5
do not omit a routing step if its consumed item is also consumed by a…
hichamlahlou Jul 25, 2023
e748044
Merge pull request #349 from frePPLe/15.0
bt-admin Jul 26, 2023
57aa5b1
handle case where PO ordering date is later than the delivery date
jdetaeye Jul 26, 2023
6ced2aa
it's black
jdetaeye Jul 26, 2023
be7a791
MO consume material on the first work order rather than the last
jdetaeye Jul 26, 2023
f52e4ab
Merge pull request #350 from frePPLe/15.0
bt-admin Jul 27, 2023
95d83a8
protection against infinite loop
jdetaeye Jul 31, 2023
b96ecae
use po_line delivery date instead of po delivery date
jdetaeye Jul 31, 2023
9bb2a25
do not compute reservations if stock move is done
hichamlahlou Jul 31, 2023
0ac13a0
remove logging
hichamlahlou Jul 31, 2023
bd169a0
Merge pull request #352 from frePPLe/15.0
bt-admin Aug 1, 2023
5bc6c85
simplify the calculation of the reserved quantity, no more recursion
hichamlahlou Aug 2, 2023
77b7a3c
Merge pull request #353 from frePPLe/15.0
bt-admin Aug 3, 2023
0547ce3
Only use open stock move for a sales order line to avoid infinite loo…
hichamlahlou Aug 7, 2023
60aadb7
Merge pull request #354 from frePPLe/15.0
bt-admin Aug 8, 2023
810fa45
remove logging print
hichamlahlou Aug 9, 2023
ced6c18
Merge pull request #355 from frePPLe/15.0
bt-admin Aug 10, 2023
78c9a1d
introduce delta parameter to retrieve order lines with a write date w…
hichamlahlou Aug 11, 2023
cf0f65e
performance optimization: avoid reading all fields of stock.location
jdetaeye Aug 15, 2023
9cd0429
Merge pull request #356 from frePPLe/15.0
bt-admin Aug 16, 2023
1b2da2f
updated logic to assure the secondary workcenter duration is correct …
jdetaeye Aug 23, 2023
3e2df23
Merge pull request #357 from frePPLe/15.0
bt-admin Aug 24, 2023
61e1cc2
Possibility to export frepple DOs as transfers in Odoo
hichamlahlou Sep 5, 2023
bdff510
Merge pull request #358 from frePPLe/15.0
bt-admin Sep 6, 2023
f8439be
use new parameter odoo.delta to limi the number of records of sales o…
hichamlahlou Sep 13, 2023
dc05a38
Merge pull request #359 from frePPLe/15.0
bt-admin Sep 14, 2023
2de8d78
updated end date for the mapping of reorderpoints
jdetaeye Sep 22, 2023
57d5cf5
Merge pull request #360 from frePPLe/15.0
bt-admin Sep 23, 2023
7a09b8b
it's black + populate operation.description with odoo bom.reference
jdetaeye Sep 27, 2023
51036e7
only include inventory at internal locations that aren't scrap or ret…
jdetaeye Sep 27, 2023
719fe3d
typo and black
jdetaeye Sep 27, 2023
9c8d6d6
Merge pull request #362 from frePPLe/15.0
bt-admin Sep 28, 2023
8c23b67
mapping for subonctractor MO's and their material status
jdetaeye Sep 28, 2023
db74518
Merge pull request #363 from frePPLe/15.0
bt-admin Sep 29, 2023
62595ec
assignment of secondary workcenters: update for in-memory edits
jdetaeye Aug 28, 2023
4b32080
updates related to secondary work centers on work orders
jdetaeye Oct 2, 2023
32403ab
Merge pull request #365 from frePPLe/15.0
bt-admin Oct 3, 2023
4ae5b6f
introduction of a custom quoteattr to ignore special characters found…
hichamlahlou Oct 11, 2023
27e3bf4
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Oct 11, 2023
39971dc
bytes need to be decoded to string
hichamlahlou Oct 11, 2023
5ba3d84
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Oct 11, 2023
847254d
Merge pull request #369 from frePPLe/15.0
bt-admin Oct 12, 2023
64574b2
revert custom quoteattr, this will be handled in the frepple side
hichamlahlou Oct 12, 2023
cea1ca0
restrict quantity aggregation at RFQ level to planner incremental exp…
hichamlahlou Oct 12, 2023
533547c
Merge remote-tracking branch 'remotes/origin/14.0' into 15.0
hichamlahlou Oct 12, 2023
6726d35
Merge pull request #372 from frePPLe/15.0
bt-admin Oct 13, 2023
420dadb
improved handling of multidb odoo configurations
jdetaeye Nov 3, 2023
7505e56
Merge pull request #375 from frePPLe/15.0
bt-admin Nov 4, 2023
1291524
handle case where the manufacturing components in Odoo contain multip…
hichamlahlou Nov 5, 2023
5f2ae4c
Merge pull request #377 from frePPLe/15.0
bt-admin Nov 6, 2023
7f9b7bc
capture sales orders from individual
hichamlahlou Nov 21, 2023
44e413a
use the customer map for the suppliers all over the connectors
hichamlahlou Nov 21, 2023
2be85d3
Merge pull request #378 from frePPLe/15.0
bt-admin Nov 22, 2023
b492039
replace individual customers with "Individuals" name to prevent from …
hichamlahlou Nov 22, 2023
e151eea
Merge pull request #380 from frePPLe/15.0
bt-admin Nov 23, 2023
596144a
keeping priority at 0 from MO-specific operations
jdetaeye Nov 23, 2023
9b9fb18
Merge pull request #382 from frePPLe/15.0
bt-admin Nov 24, 2023
cd9d9f2
do not include work center specific leaves/attendances into the gener…
hichamlahlou Nov 24, 2023
8c0b826
Merge pull request #385 from frePPLe/15.0
bt-admin Nov 25, 2023
8417e70
specific calendars for work centers having leaves
hichamlahlou Dec 11, 2023
48f8eac
Merge pull request #390 from frePPLe/15.0
bt-admin Dec 12, 2023
fc1a3b8
adding unicode name
jdetaeye Dec 24, 2023
0c619e9
Merge pull request #393 from frePPLe/15.0
bt-admin Dec 25, 2023
adf3b58
supplier has id at the end of its name
hichamlahlou Jan 10, 2024
20036fa
adding the payment term id to the PO
hichamlahlou Jan 10, 2024
f8f9295
Merge pull request #395 from frePPLe/15.0
bt-admin Jan 11, 2024
335d3c8
connector now sets the current date + black + use 2030/12/31 instead …
jdetaeye Jan 12, 2024
9fb4a66
Merge pull request #396 from frePPLe/15.0
bt-admin Jan 14, 2024
4de5a32
fix calendar-work center association if work center and resource have…
hichamlahlou Jan 17, 2024
cb10353
Merge pull request #397 from frePPLe/15.0
bt-admin Jan 22, 2024
b7b119e
append the id at the end of the calendar name
hichamlahlou Jan 23, 2024
8a7d609
Merge pull request #399 from frePPLe/15.0
bt-admin Jan 24, 2024
62d6f3c
use internal reference as item name in frepple when some odoo product…
hichamlahlou Feb 9, 2024
1b7f326
use short names => makes it default = True and use sql rather than an…
hichamlahlou Feb 9, 2024
805969b
Merge pull request #402 from frePPLe/15.0
bt-admin Feb 10, 2024
5c8e011
fix uom id that should be the product uom, not the category reference…
hichamlahlou Feb 12, 2024
2911dfa
it's black
hichamlahlou Feb 12, 2024
0acf1df
Merge pull request #405 from frePPLe/15.0
bt-admin Feb 13, 2024
5bd73a8
Fix incorrect PO reference + make sure last number of the PO referenc…
hichamlahlou Feb 14, 2024
5cfc348
Allow export of approved/confirmed POs
hichamlahlou Feb 14, 2024
1791f4f
Merge pull request #408 from frePPLe/15.0
bt-admin Feb 15, 2024
d272e9f
handle incremental MO/WO export
hichamlahlou Feb 15, 2024
53020fd
Handle change of product qty for an approved/confirmed MO
hichamlahlou Feb 15, 2024
09eeb33
Merge pull request #411 from frePPLe/15.0
bt-admin Feb 16, 2024
f6bb690
revert the on_change functions after the MO is created
hichamlahlou Feb 16, 2024
09905d9
Skip itemsuppliers for suppliers that have been archived or excluded …
jdetaeye Feb 16, 2024
1a5470f
append the workoorder id at the of the operation name and operationpl…
hichamlahlou Feb 16, 2024
cc10f5d
Merge pull request #414 from frePPLe/15.0
bt-admin Feb 17, 2024
26120f0
remove workorder id again from the WO reference, keeping it on operation
jdetaeye Feb 19, 2024
54b2380
Merge pull request #417 from frePPLe/15.0
bt-admin Feb 20, 2024
e680608
use the Odoo _prepare_purchase_order_line function to compute fields …
hichamlahlou Feb 20, 2024
6d97c79
Merge pull request #419 from frePPLe/15.0
bt-admin Feb 21, 2024
8fff6fb
inbound.py: make all datetime parsing aware of the timezone
jdetaeye Feb 26, 2024
499a330
Merge pull request #422 from frePPLe/15.0
bt-admin Feb 27, 2024
b3117c2
Make sure we read the parents before the individuals
hichamlahlou Mar 4, 2024
b02f799
make export_customers more robust
hichamlahlou Mar 4, 2024
d844e56
Merge pull request #426 from frePPLe/15.0
bt-admin Mar 5, 2024
81f6b4f
handle case where subcontracting is not enabled
hichamlahlou Mar 5, 2024
17b2df1
Merge pull request #427 from frePPLe/15.0
bt-admin Mar 6, 2024
b08bf69
enable ship-together by default
jdetaeye Apr 22, 2024
b7eae11
Merge pull request #432 from frePPLe/15.0
bt-admin Apr 23, 2024
904c344
expiration dates
hichamlahlou Jun 18, 2024
032c818
read the apps arg in the url
hichamlahlou Jun 20, 2024
892fc9b
Merge pull request #449 from frePPLe/15.0
bt-admin Jun 21, 2024
7c428fe
handle situation where a supplier is archived for a confirmed PO
hichamlahlou Jul 2, 2024
d85801a
capture inactive suppliers
hichamlahlou Jul 2, 2024
5384c4e
archived supplier for POs created from stock moves
hichamlahlou Jul 2, 2024
6882047
Merge pull request #452 from frePPLe/15.0
bt-admin Jul 3, 2024
95388cb
implement item hierarchy based on product category
hichamlahlou Jul 5, 2024
be62d22
Merge pull request #455 from frePPLe/15.0
bt-admin Jul 6, 2024
90e9b62
use priority when search_mode is left empty
hichamlahlou Aug 5, 2024
50f8fb3
Merge pull request #463 from frePPLe/15.0
bt-admin Aug 6, 2024
97ecad5
bug fix: subcontracting should respect the supplier min_qty rather t…
jdetaeye Aug 14, 2024
e12df98
Merge pull request #465 from frePPLe/15.0
bt-admin Aug 16, 2024
2cce92f
github action to run on ubuntu 24
jdetaeye Aug 28, 2024
bfd37ed
Merge pull request #474 from frePPLe/15.0
bt-admin Aug 29, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/integration_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
trigger:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- name: Trigger event on frepple repository
uses: mvasigh/dispatch-action@main
Expand Down
681 changes: 20 additions & 661 deletions LICENSE

Large diffs are not rendered by default.

17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
Odoo addon providing 2-way integration with frePPLe advanced planning.
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

Are you still using spreadsheets next to Odoo ?
Frepple is bringing forecasting, inventory planning and production planning capabilities to Odoo.

This odoo addon provides 2-way integration with frePPLe advanced planning.
This repository is composed of 3 modules:
- frepple: This is the core of the connectors to make frepple and odoo exchange data.
- autologin: This module is optional and used to automatically log a user to an Odoo instance. We use this module in our online Odoo demo instances for a better user experience.
- freppledata: This module is optional. It is a sample dataset that we load in our online Odoo demo instances.

Note: To connect a frepple instance to an Odoo instance, ONLY THE FREPPLE MODULE SHOULD BE INSTALLED.

Check out:

- high level overview: https://frepple.org/features/odoo-connector/
- technical documentation: https://frepple.org/docs/current/integration-guide/odoo-connector.html
- high level overview: https://frepple.com/odoo-integration/
- technical documentation: https://frepple.com/docs/current/erp-integration/odoo-connector/


7 changes: 5 additions & 2 deletions autologin/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
module on an actual production environment.
""",
"author": "frePPLe",
"license": "AGPL-3",
"license": "Other OSI approved licence",
"category": "Uncategorized",
"version": "15.0.0",
"depends": ["base", "web"],
"data": [],
"demo": [],
"autoinstall": False,
"installable": True,
}
"price": 0,
"currency": "EUR",
"images": ["static/description/images/autologin.png"],
}
Binary file added autologin/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added autologin/static/description/images/autologin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 22 additions & 14 deletions frepple/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,35 @@
#
# Copyright (C) 2014 by frePPLe bv
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program. If not, see <http://www.gnu.org/licenses/>.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

import os
import pathlib

with open(
os.path.join(pathlib.Path(__file__).parent.resolve(), "__manifest__.py"), "r"
) as f:
with_mrp = "mrp" in eval(f.read())["depends"]
# commenting below section as causing loops in import

# with open(
# os.path.join(pathlib.Path(__file__).parent.resolve(), "__manifest__.py"), "r"
# ) as f:
# with_mrp = "mrp" in eval(f.read())["depends"]

from . import models
from . import controllers
10 changes: 8 additions & 2 deletions frepple/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"summary": "Advanced planning and scheduling",
"author": "frePPLe",
"website": "https://frepple.com",
"license": "AGPL-3",
"license": "Other OSI approved licence",
"description": "Connector to frePPLe - finite capacity planning and scheduling",
"external_dependencies": {"python": ["jwt"]},
# Option 1: for manufacturing companies using MRP module
Expand All @@ -17,9 +17,12 @@
"views/frepple_data.xml",
"views/res_config_settings_views.xml",
"views/mrp_skill.xml",
"views/mrp_workcenter_inherit.xml",
"views/mrp_workcenter_skill.xml",
"views/mrp_workcenter_inherit.xml",
"views/mrp_secondary_workcenter.xml",
"views/mrp_routing_workcenter_inherit.xml",
"views/mrp_workorder_inherit.xml",
"views/mrp_workorder_secondary_workcenter.xml",
"views/product_supplierinfo_inherit.xml",
],
# Option 2: for distribution companies not using the MRP module
Expand All @@ -39,4 +42,7 @@
"frepple/static/src/js/frepple.js",
],
},
"price": 0,
"currency": "EUR",
"images": ["static/description/images/frepple_animation.gif"],
}
26 changes: 16 additions & 10 deletions frepple/controllers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
#
# Copyright (C) 2014 by frePPLe bv
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program. If not, see <http://www.gnu.org/licenses/>.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
from . import frepplexml
81 changes: 54 additions & 27 deletions frepple/controllers/frepplexml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,38 @@
#
# Copyright (C) 2014-2016 by frePPLe bv
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program. If not, see <http://www.gnu.org/licenses/>.
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

import base64
import logging
import odoo
import os
from pathlib import Path
import traceback
from tempfile import NamedTemporaryFile
from werkzeug.exceptions import MethodNotAllowed, InternalServerError
from werkzeug.wrappers import Response

from odoo import http
from odoo.addons.web.controllers.main import db_monodb, ensure_db

from odoo.addons.frepple.controllers.outbound import exporter, Odoo_generator
from odoo.addons.frepple.controllers.inbound import importer

Expand Down Expand Up @@ -108,15 +115,18 @@ def xml(self, **kwargs):
version.append(v)
language = kwargs.get("language", req.httprequest.form.get("language", None))
database = kwargs.get("database", req.httprequest.form.get("database", None))
if not database:
database = odoo.http.db_monodb(httprequest=req.httprequest)
company_name = kwargs.get("company", req.httprequest.form.get("company", None))
company = None
if company_name:
if company_name and req.env:
for i in req.env["res.company"].search(
[("name", "=", company_name)], limit=1
):
company = i
if not company:
return Response("Invalid company name argument", 401)
apps = kwargs.get("apps", req.httprequest.form.get("apps", None)) or ""

# Login
req.session.db = database
Expand Down Expand Up @@ -144,24 +154,36 @@ def xml(self, **kwargs):
singlecompany=kwargs.get("singlecompany", "false").lower()
== "true",
version=version,
delta=float(kwargs.get("delta", 999)),
apps=apps,
)
try:
tmpfile = NamedTemporaryFile(mode="w+t", delete=False)
# last empty double quote is to let python understand frepple is a folder.
xml_folder = os.path.join(str(Path.home()), "logs", "frepple", "")
os.makedirs(os.path.dirname(xml_folder), exist_ok=True)

# delete any old xml file in that folder
for file_name in os.listdir(xml_folder):
# construct full file path
file = xml_folder + file_name
if os.path.isfile(file):
os.remove(file)

with NamedTemporaryFile(
mode="w+t", delete=False, dir=xml_folder
) as tmpfile:
for i in xp.run():
tmpfile.write(i)
tmpfile.close()
data = open(tmpfile.name).read()
finally:
os.unlink(tmpfile.name)
return req.make_response(
data,
headers=[
("Content-Type", "application/xml;charset=utf8"),
("Cache-Control", "no-cache, no-store, must-revalidate"),
("Pragma", "no-cache"),
("Expires", "0"),
],
filename = tmpfile.name

res = http.send_file(
filename,
mimetype="application/xml;charset=utf8",
as_attachment=False,
)
res.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
res.headers["Pragma"] = "no-cache"
res.headers["Expires"] = "0"
return res
except Exception as e:
logger.exception("Error generating frePPLe XML data")
raise InternalServerError(
Expand Down Expand Up @@ -193,5 +215,10 @@ def xml(self, **kwargs):
except Exception as e:
logger.exception("Error processing data posted by frePPLe")
raise InternalServerError(
description="Error processing data posted by frePPLe: check the Odoo log file for more details"
description="Error processing data posted by frePPLe:<br>%s"
% (
traceback.format_exc()
if company and company.disclose_stack_trace
else e
)
)
Loading
Loading