Add pay, block and unblock payment buttons to invoice lines to pay

It can be useful for the user to be able to create payment for invoice lines
directly from the invoice form.
This commit is contained in:
Cédric Krier
2023-05-04 19:51:00 +02:00
parent 7ddfbb5ee2
commit 74ff1b1b7e
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -1,3 +1,4 @@
* Add pay buttons on invoice lines to pay
Version 6.8.0 - 2023-05-01
--------------------------
+1 -1
View File
@@ -119,7 +119,7 @@ this repository contains the full copyright notices and license terms. -->
<record model="ir.model.button" id="move_line_pay_button">
<field name="name">pay</field>
<field name="string">Pay Lines</field>
<field name="string">Pay</field>
<field name="model" search="[('model', '=', 'account.move.line')]"/>
</record>
<record model="ir.model.button-res.group" id="move_line_pay_button_group_payment">
@@ -4,5 +4,9 @@ this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='amount']" position="after">
<field name="payment_amount"/>
<button name="pay"/>
<button name="payment_block"/>
<button name="payment_unblock"/>
<field name="payment_blocked" tree_invisible="1"/>
</xpath>
</data>