Skip to content

Commit

Permalink
[IMP] l10n_it_fatturapa_out: Show sending/delivering data
Browse files Browse the repository at this point in the history
  • Loading branch information
SirTakobi committed Mar 14, 2023
1 parent f34c8fc commit a9a4d58
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions l10n_it_fatturapa_out/models/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class FatturaPAAttachment(models.Model):
default="ready",
tracking=True,
)
sending_user = fields.Many2one(
comodel_name="res.users",
string="Sending User",
readonly=True,
)
sending_date = fields.Datetime("Sent Date", readonly=True)
delivered_date = fields.Datetime("Delivered Date", readonly=True)

Expand Down
11 changes: 11 additions & 0 deletions l10n_it_fatturapa_out/views/attachment_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@
</field>
</group>
</group>
<div name="creation_div" position="after">
<label for="sending_user" string="Sent by" attrs="{'invisible': [('sending_user' ,'=', False)]}"/>
<div name="sending_user" attrs="{'invisible': [('sending_user' ,'=', False)]}">
<field name="sending_user" readonly="1" class="oe_inline"/> on
<field name="sending_date" readonly="1" class="oe_inline"/>
</div>
<label for="delivered_date" string="Delivered" attrs="{'invisible': [('delivered_date' ,'=', False)]}"/>
<div name="delivered_date" attrs="{'invisible': [('delivered_date' ,'=', False)]}">
<field name="delivered_date" readonly="1" class="oe_inline"/>
</div>
</div>
</field>
</record>

Expand Down

0 comments on commit a9a4d58

Please sign in to comment.