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

[ADD] [7.0] Add module 'purchase_invoice_control_check'. #89

Closed
wants to merge 7 commits into from
Closed

[ADD] [7.0] Add module 'purchase_invoice_control_check'. #89

wants to merge 7 commits into from

Conversation

JordiBForgeFlow
Copy link
Member

Currently a user can create a PO containing services and set the invoice control 'Based on incoming shipments', and the application does not prevent the user from doing that.

Then, the user has no option in the 'Invoice Control' menu to invoice that line, and can only invoice based on a list of PO lines.

This modules introduces the following features:

Prevents a user from being able to confirm a Purchase Order with invoice control 'Based on incoming shipments' that contains services.

Makes it possible to cancel a Purchase Order in which the user created the PO containing services, with invoice control 'Based on incoming shipments' (in order to correct the PO's that were created incorrectly before this module was used).

@JordiBForgeFlow JordiBForgeFlow changed the title [ADD] [7.0] Add module 'purchase_cancel_services'. [ADD] [7.0] Add module 'purchase_services_check'. Feb 4, 2015
@pedrobaeza
Copy link
Member

I would call it purchase_service, because the rule is to put singular forms, and there are several features, not only the cancel one. Also, a better place for this is the project-service repository I think.

@JordiBForgeFlow
Copy link
Member Author

@pedrobaeza I renamed to 'purchase_services_check' in a later commit, but agree to change to 'purchase_service_check' or 'purchase_service'.

My understanding is that 'project-service' repo is to be used for service or project oriented companies.
I'm proposing to add it to 'purchase-workflow' because potentially any kind of business eventually purchases services of any kind.
@dreispt perhaps you can let us know your opinion.

@dreispt
Copy link
Member

dreispt commented Feb 4, 2015

It is not desirable for the project-service to depend on purchase/stock modules. IMO this is the right place for this feature.

@pedrobaeza
Copy link
Member

OK, @dreispt and @jbeficent. We continue here with the review with the new name.

@JordiBForgeFlow JordiBForgeFlow changed the title [ADD] [7.0] Add module 'purchase_services_check'. [ADD] [7.0] Add module 'purchase_invoice_control_service'. Feb 4, 2015
@JordiBForgeFlow
Copy link
Member Author

Renamed to 'purchase_invoice_control_service', using singular forms. I think that the new name describes more precisely what it does.

@pedrobaeza
Copy link
Member

If you rename it that way, I prefer then purchase_invoice_control_check, because it also includes the check for non existing product_id

@JordiBForgeFlow
Copy link
Member Author

Done. I also reworded the module description.

@JordiBForgeFlow JordiBForgeFlow changed the title [ADD] [7.0] Add module 'purchase_invoice_control_service'. [ADD] [7.0] Add module 'purchase_invoice_control_check'. Feb 4, 2015
def wkf_confirm_order(self, cr, uid, ids, context=None):
for order in self.browse(cr, uid, ids, context=context):
if order.invoice_method == 'picking':
for order_line in order.order_line:
Copy link
Member

Choose a reason for hiding this comment

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

Why not if order.has_services()?

@JordiBForgeFlow
Copy link
Member Author

@odony and @jco-odoo are proposing to submit a PR to the Odoo core. Would you agree @pedrobaeza? Then maybe there's no need for this PR.

@pedrobaeza
Copy link
Member

Yeah, this is indeed a patch for something that must be on the core.

bealdav pushed a commit to akretion/purchase-workflow that referenced this pull request Mar 28, 2018
…cing

[ADD] module sale_owner_stock_sourcing
dnplkndll pushed a commit to Kencove/purchase-workflow that referenced this pull request Feb 24, 2021
dnplkndll pushed a commit to Kencove/purchase-workflow that referenced this pull request Feb 24, 2021
[FIX] Various issues

Closes OCA#107, OCA#106, OCA#104, OCA#77, OCA#102, OCA#94, OCA#93, OCA#92, OCA#89, OCA#88, OCA#86, OCA#80, OCA#78, OCA#61, OCA#60, and OCA#8

See merge request kencove/odoo/odoo-platform!70
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