Skip to content

[16.0][ADD] new module pos_check_accounting_settings to avoid launching new PoS session with incorrect configuration.#1209

Closed
legalsylvain wants to merge 2 commits into
OCA:16.0from
grap:pos_check_accounting_settings
Closed

[16.0][ADD] new module pos_check_accounting_settings to avoid launching new PoS session with incorrect configuration.#1209
legalsylvain wants to merge 2 commits into
OCA:16.0from
grap:pos_check_accounting_settings

Conversation

@legalsylvain

@legalsylvain legalsylvain commented Jun 29, 2024

Copy link
Copy Markdown
Contributor

This module extends the functionnality of Odoo PoS adding extra checks, when opening session, to ensure that accounting configation is correct.

Use case 1

When we create a payment method and if :

  • the field 'Outstanding Payment' is not set on payment method
  • AND the field 'Outstanding Receipts Account' is not on company

if we use the payment method in the Point of sale, it is not possible to close the session after.

error_oustanding_payment

As it not possible to change a payment method when a session is not closed, this bad configuration has to be fixed by SQL.

This module adds a check when opening session, to avoid such situation.

@legalsylvain legalsylvain added this to the 16.0 milestone Jun 29, 2024
@legalsylvain legalsylvain changed the title [ADD] new module pos_check_accounting_settings to avoid launching new PoS session with incorrect configuration. [16.0][ADD] new module pos_check_accounting_settings to avoid launching new PoS session with incorrect configuration. Jun 29, 2024
@legalsylvain legalsylvain force-pushed the pos_check_accounting_settings branch 4 times, most recently from 53073b9 to 8dee546 Compare June 29, 2024 23:52
@legalsylvain

Copy link
Copy Markdown
Contributor Author

/ocabot rebase

@OCA-git-bot

Copy link
Copy Markdown
Contributor

@legalsylvain The rebase process failed, because command git push --force grap tmp-pr-1209:pos_check_accounting_settings failed with output:

remote: Permission to grap/pos.git denied to OCA-git-bot.
fatal: unable to access 'https://github.com/grap/pos/': The requested URL returned error: 403

@legalsylvain legalsylvain force-pushed the pos_check_accounting_settings branch 2 times, most recently from 5590eae to 6b112e4 Compare July 2, 2024 09:27
@miquelalzanillas

Copy link
Copy Markdown

@legalsylvain could you rebase please?

@legalsylvain legalsylvain force-pushed the pos_check_accounting_settings branch from 6b112e4 to 314719c Compare October 2, 2024 09:06
@github-actions

github-actions Bot commented Feb 2, 2025

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 2, 2025
@flotho

flotho commented Feb 12, 2025

Copy link
Copy Markdown
Member

any chance to rebase @legalsylvain ?

…ble with pos_check_accounting_settings_company module
@legalsylvain legalsylvain force-pushed the pos_check_accounting_settings branch from 314719c to 9224c3e Compare February 12, 2025 22:19
@legalsylvain

Copy link
Copy Markdown
Contributor Author

@miquelalzanillas, @flotho : done !

@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 16, 2025
@quentinDupont quentinDupont requested a review from flotho June 11, 2025 09:11
@github-actions

Copy link
Copy Markdown

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 12, 2025
@github-actions github-actions Bot closed this Nov 16, 2025
@quentinDupont

Copy link
Copy Markdown

Very useful module.
We could add the check for account_default_pos_receivable_account_id which causes the same problem

yakafodon as we say in french

@quentinDupont

Copy link
Copy Markdown

And also default_cash_payment_method if someone has the bad idea to remove Cash journal in Payment Methods

@legalsylvain

Copy link
Copy Markdown
Contributor Author

superseded by #1575

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

Labels

stale PR/Issue without recent activity, it'll be soon closed automatically.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants