-
-
Notifications
You must be signed in to change notification settings - Fork 671
[16.0][IMP] pos_default_partner: Set default partner on pos generated moves #1416
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
base: 16.0
Are you sure you want to change the base?
[16.0][IMP] pos_default_partner: Set default partner on pos generated moves #1416
Conversation
|
@OCA/pos-maintainers can this be reviewed? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello 👋🏻
It seems this module's unit tests are not being executed in the CI.
It's failing silently with this message:
2025-07-21 08:55:44,408 470 INFO odoo odoo.tests.suite: skipped setUpClass (odoo.addons.pos_default_partner.tests.test_pos_default_partner.TestPosDefaultPartner) : Accounting Tests skipped because the user's company has no chart of accounts.
What triggered me is the fact that I couldn't find in core the methods you're overriding.
Any chance you can fix that here?
Moreover, from a functional point of view, I don't think I agree with this change.
The pos_default_partner module does exactly what it says: sets a default partner for orders. However, it's only a default value.. other partners can be chosen per different orders.
Then, having this passed onto the single account.move wouldn't be correct IMO.
I would, however, ask for input from the module's author: @bealdav
|
Hi, @ivantodorovich Having read your comments, ¿it could be an idea to make it configurable what I am proposing in here? ¿Or even including it in a new addon? About the tests, I added the fix for loading a CoA. |
I think both options are good ideas.
Hey, thanks for giving it a try! It seems they're still not being executed, though. We have an issue with our CI, that gives a false positive ✅ in such cases (tracked here: OCA/oca-ci#105) 🧠 How to tell if they're being executed, then? 1️⃣ Well, the first and most obvious one is the coverage report:
2️⃣ Then, there's also this log line in the build logs: |
|
Hi @ivantodorovich thanks to ping me. FYI information I didn't use this module. I prefer to be away from POS projects. Then I'll let main contributors of this module replace me as author. I'm sure your options will be more consistent than mine. Thanks a lot. |
325d1d4 to
d061de8
Compare
Assigns the default partner to the Entries