Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuStefan2001 committed Mar 25, 2024
1 parent 006acf5 commit d1cea4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions l10n_ro_partner_create_by_vat_openapi/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class ResPartner(models.Model):
_inherit = "res.partner"

last_updated_at = fields.Date(string='Last Updated')
last_updated_at = fields.Date(string="Last Updated")

# @api.model
# def create(self, vals):
Expand Down Expand Up @@ -123,11 +123,11 @@ def button_get_partner_data_openapi(self):
values["vat"] = self.vat.replace("RO", "")
self.compute_last_updated_at(values["last_update"])
values.pop("last_update")
radiata=values["radiata"]
radiata = values["radiata"]
values.pop("radiata")
self.write(values)
if radiata:
self.active=False
self.active = False

else:
try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</header>
</xpath>
<xpath expr="//field[@name='vat']" position="after">
<field name="last_updated_at" attrs="{'invisible':[('last_updated_at','=',False)]}"/>
<field name="last_updated_at" attrs="{'invisible':[('last_updated_at','=',False)]}" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit d1cea4b

Please sign in to comment.