Skip to content
Extraits de code Groupes Projets
Valider 7fedb124 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[update] payment lines view

parent 2b5ad684
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
from odoo import fields, models, api from odoo import fields, models, api
class ModelName(models.Model): class AccountPaymentOrder(models.Model):
_inherit = 'account.payment.order' _inherit = 'account.payment.order'
payment_line_amount = fields.Float( payment_line_amount = fields.Float(
string='Total Transactions', string='Total Opérations',
compute='_compute_payment_line_amount' compute='_compute_payment_line_amount'
) )
bank_line_amount = fields.Float( bank_line_amount = fields.Float(
...@@ -56,9 +56,23 @@ class ModelName(models.Model): ...@@ -56,9 +56,23 @@ class ModelName(models.Model):
'cgscop_cotisation.scop_account_payment_line_search').id 'cgscop_cotisation.scop_account_payment_line_search').id
return { return {
'type': 'ir.actions.act_window', 'type': 'ir.actions.act_window',
'name': 'Lignes dde transaction', 'name': "Lignes d'opérations",
'res_model': 'account.payment.line', 'res_model': 'account.payment.line',
'views': [[tree_id, 'tree']], 'views': [[tree_id, 'tree']],
'search_view_id': [search_id, 'search'], 'search_view_id': [search_id, 'search'],
'domain': [['order_id', '=', self.id]], 'domain': [['order_id', '=', self.id]],
} }
def view_account_move(self):
tree_id = self.env.ref(
'cgscop_cotisation.scop_account_move_tree').id
search_id = self.env.ref(
'cgscop_cotisation.scop_account_move_search').id
return {
'type': 'ir.actions.act_window',
'name': "Pièces comptables de l'ordre de prélèvement",
'res_model': 'account.move',
'views': [[tree_id, 'tree'], [False, 'form']],
'search_view_id': [search_id, 'search'],
'domain': [['payment_order_id', '=', self.id]],
}
\ No newline at end of file
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<tree string="Payment Lines" editable="top" create="0"> <tree string="Payment Lines" editable="top" create="0">
<field name="partner_id"/> <field name="partner_id"/>
<field name="communication"/> <field name="communication"/>
<field name="partner_bank_id"/> <field name="partner_bank_id" domain="[('partner_id', '=', partner_id)]" options="{'no_create': 1}"/>
<field name="mandate_id"/> <field name="mandate_id" domain="[('partner_id', '=', partner_id)]" options="{'no_create': 1}"/>
<field name="move_line_id" invisible="1"/> <field name="move_line_id" invisible="1"/>
<field name="ml_maturity_date"/> <field name="ml_maturity_date"/>
<field name="date"/> <field name="date" readonly="1"/>
<field name="amount_currency" string="Montant"/> <field name="amount_currency" string="Montant"/>
<field name="name"/> <field name="name"/>
<field name="amount_company_currency" sum="Total in Company Currency" invisible="1"/> <field name="amount_company_currency" sum="Total in Company Currency" invisible="1"/>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter