-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
[10.0] [MIG] hr_expense_move_date #393
[10.0] [MIG] hr_expense_move_date #393
Conversation
@aheficent Could you please review. Commits are already preserved and can you please check the history |
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.
ccbb38c
to
130cea6
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.
@aheficent Improved code Could you please review. |
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 works fine now
My opinion is that the module should not be ported anymore, since the expense have a dedicated accounting_date field, which overwrites the date of the expense, it's nonsense to add a new field move_date which does the same as accounting_date... |
@feketemihai what's that accounting_date field? I did not find it on the hr_expense module |
@aheficent After you submit to manager, the expense appears in the Expense Report, where you can input the accounting date which you post the expense... |
On submit to manager, Odoo creates an expense sheet, https://github.com/odoo/odoo/blob/10.0/addons/hr_expense/models/hr_expense.py#L45 the sheet have a field accounting_date, which you can modify, if not set the move is created with the expense date. |
@aheficent Check Odoo runbot: |
you're right @feketemihai I'd close this |
@nikul-serpentcs @aheficent To make it easier, not to move from expense to expense sheet to post the moves, you can add the related 'accounting_date' field from sheet_id to expense, with oldname=move_date, and after you send to approval, you can modify accounting_date of the sheet from expense, and to post directly from expense. |
@aheficent @feketemihai Improved code Could you please review. |
@nikul-serpentcs Sorry for guided you wrongly, i didn't folow all the process of expense, so the accounting_date is already shown in the expense after the state is changed to approve, so no need for this module, apologizes again...can you also try with odoo runbot the workflow... |
@feketemihai but if the field in the expense is related it cannot be different to the one in the sheet, right? Two fields have to be maintained then. Update: @feketemihai did not see your last answer. Do you agree to close this then? |
@aheficent yes... I will add in the migration issue as deprecated |
[BSSFL-516] Team on journal items list view
Expense Move Date
Add move date to expense.
Allows user to force a specific move date