Skip to content

Commit

Permalink
[15.0][UPD] vat_by_openapi: keep phone if existent
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuStefan2001 committed Mar 28, 2024
1 parent 3b8e06b commit f12e0b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_ro_partner_create_by_vat_openapi/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Partner Create by VAT from OpenAPI",
"summary": "Romania - Partner Create by VAT from OpenAPI",
"version": "15.0.1.0.1",
"version": "15.0.1.0.2",
"author": "Terrabit, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-romania",
"category": "Localization",
Expand Down
4 changes: 4 additions & 0 deletions l10n_ro_partner_create_by_vat_openapi/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,13 @@ def button_get_partner_data_openapi(self):
values["vat"] = self.vat.replace("RO", "")
radiata = values["radiata"]
values.pop("radiata")
phone = values["phone"]
values.pop("phone")
self.write(values)
if radiata:
self.active = False
if not self.phone:
self.phone=phone

else:
try:
Expand Down

0 comments on commit f12e0b7

Please sign in to comment.