Bharat Devnani (Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-account-payment-bde
into lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp.
Requested reviews:
OpenERP R&D Team (openerp-dev)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-account-payment-bde/+merge/112052
Hello Sir,
I have improved the view of Payment Orders.
Thanks & Regards,
Devnani Bharat R.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-account-payment-bde/+merge/112052
Your team OpenERP R&D Team is requested to review the proposed merge of
lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp-account-payment-bde
into lp:~openerp-dev/openobject-addons/trunk-accounting-view-imp-atp.
=== modified file 'account_payment/account_payment.py'
--- account_payment/account_payment.py 2012-05-22 16:10:55 +0000
+++ account_payment/account_payment.py 2012-06-26 10:13:25 +0000
@@ -87,9 +87,9 @@
return res
_columns = {
- 'date_scheduled': fields.date('Scheduled date if fixed', states={'done':[('readonly', True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'),
+ 'date_scheduled': fields.date('Scheduled Date', states={'done':[('readonly', True)]}, help='Select a date if you have chosen Preferred Date to be fixed.'),
'reference': fields.char('Reference', size=128, required=1, states={'done': [('readonly', True)]}),
- 'mode': fields.many2one('payment.mode', 'Payment mode', select=True, required=1, states={'done': [('readonly', True)]}, help='Select the Payment Mode to be applied.'),
+ 'mode': fields.many2one('payment.mode', 'Payment Mode', select=True, required=1, states={'done': [('readonly', True)]}, help='Select the Payment Mode to be applied.'),
'state': fields.selection([
('draft', 'Draft'),
('cancel', 'Cancelled'),
@@ -103,9 +103,9 @@
('now', 'Directly'),
('due', 'Due date'),
('fixed', 'Fixed date')
- ], "Preferred date", change_default=True, required=True, states={'done': [('readonly', True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."),
- 'date_created': fields.date('Creation date', readonly=True),
- 'date_done': fields.date('Execution date', readonly=True),
+ ], "Preferred Date", change_default=True, required=True, states={'done': [('readonly', True)]}, help="Choose an option for the Payment Order:'Fixed' stands for a date specified by you.'Directly' stands for the direct execution.'Due date' stands for the scheduled date of execution."),
+ 'date_created': fields.date('Creation Date', readonly=True),
+ 'date_done': fields.date('Execution Date', readonly=True),
'company_id': fields.related('mode', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True),
}
=== modified file 'account_payment/account_payment_view.xml'
--- account_payment/account_payment_view.xml 2012-06-22 10:29:59 +0000
+++ account_payment/account_payment_view.xml 2012-06-26 10:13:25 +0000
@@ -113,16 +113,20 @@
<field name="state" widget="statusbar" statusbar_visible="draft,open"/>
</header>
<sheet string="Payment order" layout="auto">
- <group col="4">
- <field name="reference"/>
- <field name="mode" widget='selection'/>
- <field name="user_id"/>
- <field name="date_prefered"/>
- <field name="date_scheduled" attrs="{'readonly':[('date_prefered','!=','fixed')]}" />
- <field name="company_id" widget='selection' groups="base.group_multi_company"/>
- <button name="%(action_create_payment_order)d" string="Select Invoices to Pay"
- type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/>
+ <group>
+ <group>
+ <field name="reference"/>
+ <field name="user_id"/>
+ <field name="mode"/>
+ </group>
+ <group>
+ <field name="date_prefered"/>
+ <field name="date_scheduled" attrs="{'readonly':[('date_prefered','!=','fixed')]}"/>
+ <field name="company_id" widget='selection' groups="base.group_multi_company"/>
+ </group>
</group>
+ <button name="%(action_create_payment_order)d" string="Select Invoices to Pay"
+ type="action" attrs="{'invisible':[('state','=','done')]}" icon="gtk-find"/>
<field name="line_ids" context="{'order_id': active_id or False}" >
<form string="Payment Line" version="7.0">
<notebook>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp