Skip to content

Commit

Permalink
Merge pull request OCA#4 from yankinmax/13.0-mig-account_invoice_import
Browse files Browse the repository at this point in the history
[FIX] account_invoice_import: fix external_id for Vendor bills action
  • Loading branch information
yvaucher committed May 20, 2021
2 parents 60742e0 + 01cbaac commit eb84e05
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions account_invoice_import/wizard/account_invoice_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,14 +521,8 @@ def update_invoice(self):
raise UserError(_("You must select an Invoice Import Configuration."))
parsed_inv = self.get_parsed_invoice()
invoice = self._update_invoice(parsed_inv)
action = iaao.for_xml_id("account", "action_invoice_tree2")
action.update(
{
"view_mode": "form,tree,calendar,graph",
"views": False,
"res_id": invoice.id,
}
)
action = iaao.for_xml_id("account", "action_move_in_invoice_type")
action.update({"domain": [('id', '=', invoice.id)]})
return action

def xpath_to_dict_helper(self, xml_root, xpath_dict, namespaces):
Expand Down

0 comments on commit eb84e05

Please sign in to comment.