-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI is red
70f2b31
to
684bf67
Compare
684bf67
to
c29f9d8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
c29f9d8
to
77a6f3a
Compare
|
||
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( |
There was a problem hiding this comment.
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"*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this line back
v1 = getattr(portal_product, k0, None) | ||
v1 = portal_product[k0] |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't remove this
77a6f3a
to
f05930e
Compare
d900b65
to
e587fd2
Compare
…e admin for manager
…ghting native ones
e587fd2
to
f4c1b06
Compare
No description provided.