-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
[14.0][IMP] edi_oca: Add new model edi.configuration #1035
Conversation
More information would be awesome in order to understand why you did this. |
@etobella this origins from our discussion on OCA/edi-framework#39 |
@thienvh332 as it's draft, do you want us to wait for a review? |
hi @simahawk
|
89cc982
to
15a994e
Compare
Hello @simahawk , |
can you drop the pypdf fix? 15a994e |
15a994e
to
497f4c4
Compare
Hi @simahawk ,
|
The idea is that everything should be explicit. You must explicitly declare which action you want to use.
Ok, you are right. Cannot be mandatory. Good point :) |
3ac4a93
to
6f64596
Compare
@etobella would you have time for a review? |
6f64596
to
6c41c30
Compare
Here's a full real life example #1067 TODO here:
|
e7f9217
to
a1c5ad2
Compare
@etobella would you have time for a review? |
a1c5ad2
to
bf74ebc
Compare
The aim of this model is to ease configuration for all kind of exchanges in particular at partner level.
202ecda
to
f1da5a5
Compare
Ease configuration by filtering triggers by model. In the long run we'll have tons of triggers for specific scopes (sale, purchase, etc). This change will make sure the selection of the trigger won't be cluttered. It also adds the possibility to describe triggers as users prefer.
Models using the consumer mixing and having a state field will now trigger a specific event when the state is updated.
@etobella good for you? |
66797c2
to
d589012
Compare
Make it easier to understand how it works and avoid checks on attributes.
d589012
to
2ffaca8
Compare
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
This PR has the |
Congratulations, your PR was merged at 28c6751. Thanks a lot for contributing to OCA. ❤️ |
Real life examples:
Specs
In edi_oca
Add generic
edi.configuration
model with these characteristics:Fields
This model can then be used by conf consumers.
Other methods:
Backend / Exc. record
Then add edi.exchange.record.action_exchange_generate_send and use that method from backend.
Consumer mixin
Specific fields for configuration (eg: edi_purchase_conf_ids) will be added by glue modules on res.partner.
Default conf
NOTE:
sending emails is not really bound to edibut in real life it's handy to have a default way to send EDI docs via email.
You could even generate an exchange record to keep track of that
but the choice will be up to the implementers.
The key is that w/ this features they can do whatever they want.
Views
On edi_purchase_oca
Example of specific listener implementation:
EDIT: additional model
edi.configuration.trigger
to ease UI mgmt.