Skip to content

Conversation

@maisim
Copy link

@maisim maisim commented Nov 28, 2025

… to companies

Copy link
Contributor

@luisDIXMIT luisDIXMIT left a comment

Choose a reason for hiding this comment

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

I tested it on runboat and it doesn’t seem to be working.

image

@maisim
Copy link
Author

maisim commented Dec 2, 2025

I tested it on runboat and it it doesn’t seem to be working.

image

The domain seems oververvrited by another module in the repo. That means this is probably not the right way to do it. Maybe with a Python constraint? Let me take a look.

@maisim
Copy link
Author

maisim commented Dec 2, 2025

After some tests, using a constraint that throws an exception is too intrusive, so I just left the contact filter for "company" types in the form.

I'm moving this pull request to draft status because this module will be an optional dependency (using preferences) of OCA/sale-workflow#4039, and I'll be making some changes. This time, I'll wait until everything is ready before requesting a review. :)

@rrebollo
Copy link

@maisim the name of the addon should be account_invoice_partner_company_only or similar, I think the _id part should go off.

The domain seems oververvrited by another module in the repo. That means this is probably not the right way to do it. Maybe with a Python constraint? Let me take a look.

Look at my review comments on the sale-workflow addon.

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.

3 participants