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
[13.0][IMP] base_ubl: hook to add the AdditionalAccountID ubl field #429
Conversation
Hi @FerranCforgeFlow! Thank you very much for this contribution. As the addon you are improving does not have a declared maintainer, I take the opportunity to mention that you can consider adopting it. To do so, please read the maintainer role description, and, if interested, create a pull request to add your GitHub login to the |
@bealdav could you check? |
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.
👍
@bealdav could you please check? |
bf818fa
to
b108c7e
Compare
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.
LGTM 👍
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.
Ok, thanks
I ask myself if there is no other way to add new misc nodes dynamically (method with parameter).
It seems there many conditional additions in the code now.
But if we need to do smth, it could be in an other PR I suppose
Wouldn't be easier to return the node |
c126989
to
e7065d8
Compare
What you are saying is actually a more solid option. I opted for the alternative of adding generic methods that people can inherit if wanted. |
Could it be merged? |
Might be possible to apply the proposed change? This way it is easier and all this kind of hooks are unnecessary. |
…tomization Return both, supplier_party_root and customer_party_root in _ubl_add_supplier_party and _ubl_add_customer_party, to allow customization
e7065d8
to
5c438df
Compare
Taking a look at the code, it is better to return the nodes as you said to allow customization. I have already changed it in both, customer and supplier methods. Thanks for the advice! |
This PR has the |
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
@etobella your merge command was aborted due to failed check(s), which you can inspect on this commit of 13.0-ocabot-merge-pr-429-by-etobella-bump-minor. After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red. |
@etobella could you try again the merge? |
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at fa2a9af. Thanks a lot for contributing to OCA. ❤️ |
Added a _ubl_get_additional_reference method to be able to add the AdditionalAccountID ubl field in the _ubl_add_supplier_party