Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
b0831bae by Cédric Krier at 2023-05-04T19:51:00+02:00
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.
- - - - -


3 changed files:

- modules/account_payment/CHANGELOG
- modules/account_payment/account.xml
- modules/account_payment/view/move_line_list_to_pay.xml


Changes:

=====================================
modules/account_payment/CHANGELOG
=====================================
@@ -1,3 +1,4 @@
+* Add pay buttons on invoice lines to pay
 
 Version 6.8.0 - 2023-05-01
 --------------------------


=====================================
modules/account_payment/account.xml
=====================================
@@ -119,7 +119,7 @@
 
         <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">


=====================================
modules/account_payment/view/move_line_list_to_pay.xml
=====================================
@@ -4,5 +4,9 @@
 <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>



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/b0831bae629b9348aaea1f5e5d13286ddad48b30

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/b0831bae629b9348aaea1f5e5d13286ddad48b30
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to