Skip to content

[FIX] pos_tare : raise an error if the gross weight is not correct#566

Merged
OCA-git-bot merged 2 commits into
OCA:12.0from
legalsylvain:12.0-FIX-pos_tare_no-silent-null-value
Dec 15, 2020
Merged

[FIX] pos_tare : raise an error if the gross weight is not correct#566
OCA-git-bot merged 2 commits into
OCA:12.0from
legalsylvain:12.0-FIX-pos_tare_no-silent-null-value

Conversation

@legalsylvain

Copy link
Copy Markdown
Contributor

Raise an error if the gross weight is not correct.

Exemple :

image

before the patch

  • a pos order line is added silently, with a qty to 0.

After the patch

  • an error is raised.

image

(Also fix an bad title for another warning).

CC :

@legalsylvain legalsylvain added this to the 12.0 milestone Nov 16, 2020
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @Fkawala,
some modules you are maintaining are being modified, check this out!

@ivantodorovich ivantodorovich left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code review LGTM 👍

@Fkawala

Fkawala commented Nov 16, 2020

Copy link
Copy Markdown

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Sorry @Fkawala you are not allowed to merge.

To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons.

If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the maintainers key of its manifest.

@Fkawala

Fkawala commented Nov 16, 2020

Copy link
Copy Markdown

I see much activity here, hence I'll shamelessly try to reroute a little bit of it to a related PR #527 that has been waiting to get approved and merged for a while. Sorry + thank you.

@legalsylvain

Copy link
Copy Markdown
Contributor Author

Note : also add another fix, regarding a bad overload of the function validate_order that is not overloadable by design. (*) (see similar problem for pos_meal_voucher here.

the confirm action is moved on the scale screen, when user is weighing its product.

image

(*) : With the curent design, the other core checks are skipped. for exemple, with the non patched current design of pos_tare, the check regarding huge amount is not done.

image

CC : @quentinDupont

@OCA-git-bot

Copy link
Copy Markdown
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). 🤖

@houssine78

Copy link
Copy Markdown

@legalsylvain I think that this can be merged

@legalsylvain

Copy link
Copy Markdown
Contributor Author

Thanks. indeed, using this patch in production since a month without problem.

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 12.0-ocabot-merge-pr-566-by-legalsylvain-bump-patch, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 8dae0e3 into OCA:12.0 Dec 15, 2020
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 3053fde. Thanks a lot for contributing to OCA. ❤️

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.

6 participants