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

[14.0] [IMP] sale_input_barcode: scan directly on sale.order #669

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from

Conversation

SylweKra
Copy link

@SylweKra SylweKra commented Jan 22, 2025

Superseeds #611

@OCA-git-bot
Copy link
Contributor

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

@SylweKra SylweKra force-pushed the 14.0-FIX-sale_input_barcode branch 2 times, most recently from a3fc16d to 02ddda4 Compare January 22, 2025 14:08
Copy link
Contributor

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

Hello, thank you for the PR! Looks good overall, just a couple of minor fixes IMO

Comment on lines 13 to 14
If a product is already inside the sale order lines,
the quantity will be updated.
Copy link
Contributor

Choose a reason for hiding this comment

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

chore: Update documentation

Copy link
Author

Choose a reason for hiding this comment

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

I added the documentation.Let me know if it is clear and understandable.

Comment on lines 7 to 17
<xpath expr="//div[@id='no_edit_order']" position="inside">
<div class="o_setting_left_pane">
<field name="sale_sol_creation_settings" />
</div>
<div class="o_setting_right_pane">
<label for="sale_sol_creation_settings" />
<div class="text-muted">
Instead of creating a new sale order line it increases the quantity for each barcode scan
</div>
</div>



</xpath>
Copy link
Contributor

Choose a reason for hiding this comment

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

chore: could you fix the formatting here, please?

Copy link
Author

Choose a reason for hiding this comment

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

I have improved the formatting. Let me know.


_inherit = "res.config.settings"

sale_sol_creation_settings = fields.Boolean(
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick(non-blocking): the name of this setting does not clearly reflect what the setting does IMO.

what about something like: sale_barcode_update_existing_line?

Copy link
Author

Choose a reason for hiding this comment

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

ok, I've changed the name of the variable as you suggested.

@SylweKra SylweKra force-pushed the 14.0-FIX-sale_input_barcode branch 2 times, most recently from 1cf4e2b to d1bef11 Compare January 23, 2025 09:00
@SylweKra SylweKra changed the title [14.0] [FIX] sale_input_barcode [14.0] [IMP] sale_input_barcode Jan 23, 2025
@SylweKra SylweKra changed the title [14.0] [IMP] sale_input_barcode [14.0] [IMP] sale_input_barcode: scan directly on sale.order Jan 23, 2025
@SylweKra SylweKra force-pushed the 14.0-FIX-sale_input_barcode branch 2 times, most recently from b416328 to 6a04e00 Compare January 23, 2025 12:57
@SylweKra SylweKra force-pushed the 14.0-FIX-sale_input_barcode branch from 6a04e00 to b546cda Compare January 24, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants