Comments (8)
There shouldn't be a new state, or that will break flows that expect the standard states. I know you are thinking in this way for simplifying the code, but for sure it will have secondary effects. You can add a boolean field that is filled when validating the order, aborting it, and hide standard validation button and showing the other (for allowed one), in that case.
Anyway, I want to hear @carlosdauden's opinion on this.
from credit-control.
Thanks @pedrobaeza for your prompt feedback!
You can add a boolean field that is filled when validating the order, aborting it, and hide standard validation button and showing the other (for allowed one), in that case.
This solution seems to me acceptable.
I remain awating opinion from @carlosdauden before proceeding.
from credit-control.
What is the goal of that new state/field?
Could it be looking for orders with that state/field to force confirmation in batch? Could it be done using the existing wizard instead of a new button?
Remember that risk state is something quite variable that depends on several things.
Perhaps seeing the implementation will make it clearer, I am not opposed to any kind of improvement as long as it does not affect performance
from credit-control.
Also an integration with sale_tier_validation
can be interesting instead of developing something apart, but indeed it's important the time factor: something that is in risk in one moment (or the contrary) can change in other moment of time.
from credit-control.
Could it be looking for orders with that state/field to force confirmation in batch?
Yes, this is the main reason. One of our customers would want to extrapolate the list of sale orders that have risk exceeded and decide which ones can be possibly confirmed.
Perhaps seeing the implementation will make it clearer, I am not opposed to any kind of improvement as long as it does not affect performance
Ok, I propose the PR in order to evaluate it.
from credit-control.
There shouldn't be a new state, or that will break flows that expect the standard states. I know you are thinking in this way for simplifying the code, but for sure it will have secondary effects.
@pedrobaeza could you please give an example?
from credit-control.
Right now I don't have an specific example, but I remember having this problem when adding a new state in sale.order in the past:
- Buttons visibility broken as some states are not included.
- Some code broken due to the same reason.
You will have side effects sooner or later, so it's not advisable IMO.
from credit-control.
In the end I decided to go for a customization.
Well, thank you for your time.
from credit-control.
Related Issues (20)
- [14.0] Validation in `overdue_reminder_wizard` crashes: `'ir.actions.report' object has no attribute 'render'` HOT 1
- Error installing the module HOT 1
- account_invoice_overdue_reminder: include the credit notes in the process HOT 9
- account_invoice_overdue_reminder - requires admin rights to send mail HOT 5
- Migration to version 16.0 HOT 2
- [15.0] Over-risk warning requires that user belongs to group: Administration/Access Rights HOT 1
- [15.0] account_financial_risk - Error in auto_post scheduled action: Expected singleton: res.company(1,2,3,4) HOT 3
- [sale_financial_risk] Sales orders not confirmed, but nobody is notified HOT 1
- Module account_invoice_overdue_reminder V16 not translatable? HOT 3
- [14.0]account_invoice_overdue_reminder : When i remove invoice from list in wizard, the residual become 0 HOT 3
- sale_financial_risk - incorrect currency taken when computing amount HOT 1
- account_financial_risk, +related modules - Make stored all fields related to risk information HOT 1
- [16.0]account_invoice_overdue_reminder. Incorrect overdue info on formview customer invoice HOT 1
- [16.0]account_invoice_overdue_reminder: Partialy paid invoices not reminded HOT 3
- [16.0] account_invoice_overdue_reminder HOT 1
- Migration to version 17.0 HOT 5
- [12.0]Return to the letter channel while an email exists in the invoiced contact HOT 2
- Clarification and Enhancement Request for Financial Risk Security Groups HOT 1
- [15.0] partner_risk_insurance: Storing computed values of account.move HOT 2
- [14.0] account_invoice_overdue_reminder : Billing Manager can't edit the sent overdeue remider email
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from credit-control.