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

[16.0][FIX] account_fiscal_position_type: use company from move #457

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion account_fiscal_position_type/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _onchange_partner_id_suitable_fiscal_position_ids(self):
def _compute_suitable_journal_ids(self):
res = super()._compute_suitable_journal_ids()
for m in self:
domain = [("company_id", "=", self.env.company.id)]
domain = [("company_id", "=", m.company_id.id or self.env.company.id)]
if m.invoice_filter_type_domain in ["sale", "purchase"]:
domain = expression.AND(
[
Expand Down
Loading