Skip to content

Conversation

@AungKoKoLin1997
Copy link
Contributor

@AungKoKoLin1997 AungKoKoLin1997 commented Jan 6, 2026

  • Replace _get_factor_line() with uom._compute_quantity() to fix incorrect conversion when line UoM differs from product's base UoM. The previous method failed for certain UoM combinations
  • Add configuration for reports presentation.

Related: OCA/stock-logistics-warehouse#2496

@qrtl QT6285

@OCA-git-bot
Copy link
Contributor

Hi @sergio-teruel,
some modules you are maintaining are being modified, check this out!

Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Code review. LGTM.

Copy link
Contributor

@nobuQuartile nobuQuartile left a comment

Choose a reason for hiding this comment

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

LGTM Code review

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link

@kanda999 kanda999 left a comment

Choose a reason for hiding this comment

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

Code review.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6285-imp-product_attribute branch from 9a080ba to 4cf667a Compare January 20, 2026 05:40
@AungKoKoLin1997
Copy link
Contributor Author

In my last commit, I add the configuration for qweb reports presentation.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6285-imp-product_attribute branch from 3722287 to f207287 Compare January 21, 2026 04:22
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6285-imp-product_attribute branch 2 times, most recently from 5fb5d21 to 6eb4143 Compare January 21, 2026 08:43
@AungKoKoLin1997 AungKoKoLin1997 changed the title [18.0][IMP] product_secondary_unit: refactor _compute_secondary_uom_qty [18.0][FIX] product_secondary_unit: UoM conversion in secondary unit mixin Jan 21, 2026
Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Partial review.

@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6285-imp-product_attribute branch 2 times, most recently from 3b7c135 to c8dcb39 Compare January 22, 2026 01:57
@AungKoKoLin1997 AungKoKoLin1997 force-pushed the 6285-imp-product_attribute branch 2 times, most recently from 0ce7836 to 687642c Compare January 22, 2026 03:17
Copy link
Contributor

@nobuQuartile nobuQuartile left a comment

Choose a reason for hiding this comment

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

Functional review and code review: LGTM

Copy link

@kanda999 kanda999 left a comment

Choose a reason for hiding this comment

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

LGTM: it works as expected in my local env

Replace _get_factor_line() with uom._compute_quantity() to fix incorrect
conversion when line UoM differs from product's base UoM. The previous method
failed for certain UoM combinations (e.g., line in L, product in mL).

Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
Co-authored-by: Yoshi Tashiro <tashiro@quartile.co>
Copy link
Member

@yostashiro yostashiro left a comment

Choose a reason for hiding this comment

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

Code review. LGTM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants