-
-
Notifications
You must be signed in to change notification settings - Fork 700
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
[16.0][OU-ADD] stock_account: set display_type of cogs account move line #4293
Conversation
a8184ff
to
9621088
Compare
9621088
to
6d00458
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. Tests does not pass, but it seams related to the stock
module.
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
/ocabot migration stock_account |
stock_account / account.move.line / stock_valuation_layer_ids (one2many): NEW relation: stock.valuation.layer | ||
stock_account / stock.valuation.layer / account_move_line_id (many2one): NEW relation: account.move.line | ||
stock_account / stock.valuation.layer / price_diff_value (float) : NEW | ||
# NOTHING TO DO: new feature |
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.
Shouldn't it be pointed that this would be addresed in purchase_stock
(I'm not sure if it's necessary/possible/worth it) to rebuild past values
In v15, the lines were set to is_anglo_saxon_line == True in v16, field display_display is used.
6d00458
to
213f026
Compare
This PR has the |
The explanations on the work file are very few, but let's move on with this. |
superseeds #3971
Nothing to do in stock_account regarding the models and views.
Fill the display type for journal items corresponding to Cost of Good Sold lines (COGS) for customer invoices. In v15, the lines were set to is_anglo_saxon_line == True, in v16 field display_display is used.
openupgrade account migration script already sets display_type in _account_move_fast_fill_display_type (pre-migration)
I struggled setting up a database issuing cogs lines so I relied on my understanding of the code to write the sql command.