Skip to content

Commit

Permalink
[FIX] public_budget: Se muestra en en la vista de trasnferencias el c…
Browse files Browse the repository at this point in the history
…ampo Fecha

closes #476

Ticket: 59996
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
Maximiliano Mezzavilla committed Apr 5, 2023
1 parent 891a458 commit fad3c0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion public_budget/__manifest__.py
@@ -1,7 +1,7 @@
{
'name': 'Public Budget',
'license': 'AGPL-3',
'version': "15.0.1.4.0",
'version': "15.0.1.5.0",
'author': 'ADHOC SA,Odoo Community Association (OCA)',
'website': 'www.adhoc.com.ar',
'category': 'Accounting & Finance',
Expand Down
2 changes: 1 addition & 1 deletion public_budget/models/account_payment.py
Expand Up @@ -13,7 +13,7 @@ class AccountPayment(models.Model):
# de validacion si no estaba seteada, la setea el payment group
date = fields.Date(
required=False,
store=False,
store=True,
default=False,
)

Expand Down
8 changes: 0 additions & 8 deletions public_budget/views/account_payment_views.xml
Expand Up @@ -12,14 +12,6 @@
<field name="assignee_id" readonly="1"/>
<field name="return_payment_id" attrs="{'invisible': [('return_payment_id', '=', False)]}"/>
</field>

<!-- hacemos invisible la fecha de pago para no confundir, viene seteada desde el payment group y en sipreco no interesa permitir distintas fechas para un pago -->
<field name="date" position="attributes">
<!-- <attribute name="invisible">1</attribute> -->
<!-- al final lo hacemos invisible así porque en transferencias lo queremos visible -->
<attribute name="attrs">{'readonly': [('state', '!=', 'draft')], 'invisible': [('payment_type', '!=', 'transfer')], 'required': [('payment_type', '=', 'transfer')]}</attribute>
</field>

</field>
</record>

Expand Down

0 comments on commit fad3c0d

Please sign in to comment.