Skip to content

Commit

Permalink
Merge PR #856 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Oct 13, 2023
2 parents d043e64 + ea485a3 commit 106c4f7
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 106c4f7

Please sign in to comment.