Skip to content
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

[14.0][FIX] l10n_br_stock_account: Método para obter Operação Fiscal padrão deve usar a empresa do ENV não do usuário #2867

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions l10n_br_stock_account/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class StockPicking(models.Model):

@api.model
def _default_fiscal_operation(self):
company = self.env.user.company_id
fiscal_operation = self.env.user.company_id.stock_fiscal_operation_id
company = self.env.company
fiscal_operation = company.stock_fiscal_operation_id
picking_type_id = self.env.context.get("default_picking_type_id")
if picking_type_id:
picking_type = self.env["stock.picking.type"].browse(picking_type_id)
Expand Down
Loading