Skip to content

Commit

Permalink
[15.0][FIX]website_account_fiscal_position_partner_type: Translated a…
Browse files Browse the repository at this point in the history
…ccount fiscal positions in portal
  • Loading branch information
manuelregidor committed Oct 13, 2023
1 parent d043e64 commit ea485a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def address(self, **kw):
{
"def_fiscpostype": def_fiscpostype,
"fiscpostypevalues": dict(
afp_obj._fields["fiscal_position_type"].selection
afp_obj._fields[
"fiscal_position_type"
]._description_selection(request.env)
),
}
)
Expand All @@ -93,7 +95,7 @@ def get_auth_signup_qcontext(self):
)
afp_obj = request.env["account.fiscal.position"].sudo()
qcontext["fiscpostypevalues"] = dict(
afp_obj._fields["fiscal_position_type"].selection
afp_obj._fields["fiscal_position_type"]._description_selection(request.env)
)
if not qcontext.get("fiscal_position_type_selected"):
def_fiscpostype = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ def _prepare_portal_layout_values(self):
vals.update(
{
"fiscpostypevalues": dict(
afp_obj._fields["fiscal_position_type"].selection
afp_obj._fields["fiscal_position_type"]._description_selection(
request.env
)
),
"fiscal_position_type_selected": partner.fiscal_position_type,
}
Expand Down

0 comments on commit ea485a3

Please sign in to comment.