[ADD] description field for payment order

This commit is contained in:
gilles
2017-06-26 14:10:41 +02:00
committed by Pedro M. Baeza
parent 25b5d20dfc
commit aabace0e1e
3 changed files with 5 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
{
'name': 'Account Payment Order',
'version': '10.0.1.3.1',
'version': '10.0.1.3.2',
'license': 'AGPL-3',
'author': "ACSONE SA/NV, "
"Therp BV, "

View File

@@ -91,6 +91,7 @@ class AccountPaymentOrder(models.Model):
move_ids = fields.One2many(
'account.move', 'payment_order_id', string='Journal Entries',
readonly=True)
description = fields.Char()
@api.multi
def unlink(self):

View File

@@ -49,6 +49,7 @@
<field name="date_generated"/>
<field name="generated_user_id"/>
<field name="date_uploaded"/>
<field name="description"/>
</group>
</group>
<notebook>
@@ -83,6 +84,7 @@
<field name="journal_id"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="date_uploaded"/>
<field name="description"/>
<field name="total_company_currency" sum="Total Company Currency"/>
<field name="company_currency_id" invisible="1"/>
<field name="state"/>
@@ -95,6 +97,7 @@
<field name="model">account.payment.order</field>
<field name="arch" type="xml">
<search string="Search Payment Orders">
<field name="description"/>
<filter name="draft" string="Draft" domain="[('state', '=', 'draft')]"/>
<filter name="open" string="Confirmed" domain="[('state', '=', 'open')]"/>
<filter name="generated" string="File Generated" domain="[('state', '=', 'generated')]"/>