-
-
Notifications
You must be signed in to change notification settings - Fork 257
[17.0][MIG] account_move_cutoff #340
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
base: 17.0
Are you sure you want to change the base?
Conversation
Using this module cuttoff happens while posting entries based on start/end date defined on invoice lines Co-authored-by: Damien Crier <Damien.crier@foodles.co>
action_post is not called better to overload _post on account.move model
* exposing default cutoff method using default odoo features * allow to forward product attribute on account move line to make better analysis
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: account-closing-14.0/account-closing-14.0-account_move_cutoff Translate-URL: https://translation.odoo-community.org/projects/account-closing-14-0/account-closing-14-0-account_move_cutoff/
62929ab
to
65cbe54
Compare
( | ||
0, | ||
0, | ||
Command.create( |
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.
question: what's the reason for using Command.create
?
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.
I feel it's easier to read code Command.create({})
than a tuple (0, 0, {})
result is the same !
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.
I didn't know about that, is this available in 14? 👍
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.
it's available from version 15.0 https://github.com/OCA/OCB/blob/15.0/odoo/fields.py#L3002
65cbe54
to
a0fe40a
Compare
This PR has the |
migrate from version 14.0