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] lighting_portal_connector: Migration to 16.0 #28

Merged
merged 24 commits into from
Mar 25, 2024

Conversation

KNVx
Copy link
Contributor

@KNVx KNVx commented Dec 12, 2023

No description provided.

@KNVx KNVx added the to review Must be reviewed label Dec 12, 2023
@KNVx KNVx requested a review from eantones December 12, 2023 09:16
@eantones eantones mentioned this pull request Jan 8, 2024
19 tasks
Copy link
Member

@eantones eantones left a comment

Choose a reason for hiding this comment

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

CI is red

@KNVx KNVx force-pushed the 16.0-mig-lighting_porta_connector branch 3 times, most recently from 70f2b31 to 684bf67 Compare January 9, 2024 11:51
@KNVx KNVx requested a review from eantones January 9, 2024 12:25
@KNVx KNVx added to review Must be reviewed and removed changes requested labels Jan 9, 2024
@KNVx KNVx force-pushed the 16.0-mig-lighting_porta_connector branch from 684bf67 to c29f9d8 Compare January 9, 2024 13:54
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (16.0@21f7368). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             16.0      #28   +/-   ##
=======================================
  Coverage        ?   36.00%           
=======================================
  Files           ?        6           
  Lines           ?      100           
  Branches        ?       19           
=======================================
  Hits            ?       36           
  Misses          ?       64           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@KNVx KNVx force-pushed the 16.0-mig-lighting_porta_connector branch from c29f9d8 to 77a6f3a Compare January 9, 2024 14:01

def update(self):
self.ensure_one()
if not self.env.user.has_group(
"lighting_portal_connector.portal_connector_group_manager"
):
tdelta = fields.datetime.now() - fields.Datetime.from_string(
tdelta = fields.datetime.now() - fields.Datetime.to_datetime(
Copy link
Member

Choose a reason for hiding this comment

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

to_datetime should no be necessary

1 AS "IsKit"
FROM product_capacity pc
)
SELECT pm."ItemCode" as "reference", p."CodeBars" as "barcode",
sum(pm."Available") AS "qty_available"
/*,(CASE WHEN sum(pm."IsKit") > 0 THEN 'Y' ELSE 'N' END) AS "is_kit"*/
Copy link
Member

Choose a reason for hiding this comment

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

Put this line back

Comment on lines 136 to 130
v1 = getattr(portal_product, k0, None)
v1 = portal_product[k0]
Copy link
Member

Choose a reason for hiding this comment

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

In the original line there was an implicit check, if k0 is not in portal_product then return None, you lost that in the new line, so it's not protected anymore

stmnt = """WITH atp_onorder AS (
SELECT lc."ItemCode",
lc."OpenCreQty" AS "OnOrder",
lc."ShipDate"
Copy link
Member

Choose a reason for hiding this comment

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

Don't remove this

@eantones eantones added changes requested and removed to review Must be reviewed labels Jan 9, 2024
@KNVx KNVx force-pushed the 16.0-mig-lighting_porta_connector branch from 77a6f3a to f05930e Compare January 13, 2024 08:19
@eantones eantones changed the title [16.0][MIG] lighting_portal_connector [16.0][MIG] lighting_portal_connector: Migration to 16.0 Jan 18, 2024
@eantones eantones force-pushed the 16.0-mig-lighting_porta_connector branch 2 times, most recently from d900b65 to e587fd2 Compare January 18, 2024 21:15
@KNVx KNVx requested a review from eantones January 21, 2024 20:25
@KNVx KNVx added to review Must be reviewed deployed in pre and removed changes requested labels Jan 21, 2024
eantones and others added 21 commits March 25, 2024 16:00
@eantones eantones force-pushed the 16.0-mig-lighting_porta_connector branch from e587fd2 to f4c1b06 Compare March 25, 2024 15:04
@eantones eantones merged commit d968912 into 16.0 Mar 25, 2024
4 checks passed
@eantones eantones deleted the 16.0-mig-lighting_porta_connector branch March 25, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants