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][IMP] spargere modul stock account #942
Conversation
Hi @feketemihai, @mcojocaru, |
@@ -94,18 +89,12 @@ def _compute_account(self): | |||
account = loc_scr.l10n_ro_property_stock_valuation_account_id | |||
if svl.account_move_id: | |||
for aml in svl.account_move_id.line_ids.sorted( | |||
lambda l: l.account_id.code | |||
lambda layer: layer.account_id.code | |||
): | |||
if aml.account_id.code[0] in ["2", "3"]: |
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.
trebuie sa eliminam si 378 (diferenta de pret la marfuri, din categorie produs).
("internal_transfer", "Internal Transfer"), | ||
("internal_transfer_out", "Internal Transfer Out"), | ||
("internal_transfer_in", "Internal Transfer In"), | ||
("internal_transit", "Internal Transit"), # de eliminat |
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.
pai sa-l eliminam, acest tip de valuation nu ar trebui sa existe.
@@ -27,7 +27,7 @@ class ProductTemplate(models.Model): | |||
) | |||
|
|||
def _get_product_accounts(self): | |||
accounts = super(ProductTemplate, self)._get_product_accounts() | |||
accounts = super()._get_product_accounts() |
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.
Pentru iesire din stock;
Uneori avem nevoie sa facem cheltuiala pe un alt. Ex: 301 = 601, dar pentru anumite consumuri avem nevoie de alt cont decat 601. Astfel ne-ar ajuta sa avem posibilitatea pe cheltuiala sa putem pune un cont pe location_dest_id, pe care sa-l folosim ca alternativa.
Linia 66.
/ocabot merge minor |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at ba9df87. Thanks a lot for contributing to OCA. ❤️ |
împărțirea codului din modulul stoc_account in 3 module distincte