mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #67 from StefanRijnhart/7.0-debit_usability2
[FIX] Payment lines are editable from the mandate form view
This commit is contained in:
@@ -79,7 +79,8 @@ class mandate(orm.Model):
|
||||
"cancelled mandate is a mandate that has been cancelled by "
|
||||
"the customer."),
|
||||
'payment_line_ids': fields.one2many(
|
||||
'payment.line', 'mandate_id', "Related Payment Lines"),
|
||||
'payment.line', 'mandate_id', "Related Payment Lines",
|
||||
readonly=True),
|
||||
}
|
||||
|
||||
_defaults = {
|
||||
|
||||
@@ -381,6 +381,8 @@ class TestPaymentRoundtrip(SingleTransactionCase):
|
||||
|
||||
def test_payment_roundtrip(self):
|
||||
reg, cr, uid, = self.registry, self.cr, self.uid
|
||||
# Tests fail if admin does not have the English language
|
||||
reg('res.users').write(cr, uid, uid, {'lang': 'en_US'})
|
||||
self.setup_company(reg, cr, uid)
|
||||
self.setup_chart(reg, cr, uid)
|
||||
self.setup_payables(reg, cr, uid)
|
||||
|
||||
@@ -30,7 +30,11 @@
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<field name="reference" position="after">
|
||||
<field name="payment_order_type"/>
|
||||
<!--
|
||||
Add the order type as invisible because changing it in the form view
|
||||
is not supported. We still need to access its value in various attrs.
|
||||
-->
|
||||
<field name="payment_order_type" invisible="1" />
|
||||
</field>
|
||||
<xpath expr="//button[@string='Select Invoices to Pay']"
|
||||
position="attributes">
|
||||
|
||||
Reference in New Issue
Block a user