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][ADD] pos_auto_invoice #1258

Open
wants to merge 14 commits into
base: 16.0
Choose a base branch
from

Conversation

huguesdk
Copy link
Member

module to set point-of-sale orders as to-invoice by default.

@legalsylvain
Copy link
Contributor

hi @huguesdk. Thanks for this contribution.

At a first look, LGTM to me.
some remarks :

  • Is it possible to add a boolean auto_invoice_by_default on pos.config and base the change in the PoS regarding that new flag ? Pro :
  • -> it will be installable on multi-company or multi-pos-config context, because such default auto_invoice is great but can be limited to some pos.config.
  • -> we can disable it on demo data, to avoid "excude" mechanism on CI.

What do you think ?

@huguesdk
Copy link
Member Author

i completely agree. like this?

do you think that it should be enabled by default and disabled by demo data? i think that disabled by default makes sense, especially since having a different default behavior with and without demo data could be confusing for users.

@legalsylvain
Copy link
Contributor

do you think that it should be enabled by default and disabled by demo data? i think that disabled by default makes sense, especially since having a different default behavior with and without demo data could be confusing for users

totally agree!

@huguesdk
Copy link
Member Author

huguesdk commented Nov 1, 2024

thanks a lot for the review! i added your suggestion to avoid variable shadowing.

i also ensured that the value of to_invoice is kept for existing orders. strangely, the default behavior in init_from_JSON() is to always set it to false, although it is correctly handled in export_as_JSON().

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Thanks !

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