[ADD]GOLEM Payment : improve search views

This commit is contained in:
Fabien BOURGEOIS 2018-08-03 09:49:54 +02:00
parent 22df2eea36
commit 26d8e1c5f4
4 changed files with 62 additions and 12 deletions

View File

@ -20,7 +20,7 @@
'summary': 'Usage of account invoice and account payments', 'summary': 'Usage of account invoice and account payments',
'description': ''' Ability to create invoice(s) from activity subscriptions 'description': ''' Ability to create invoice(s) from activity subscriptions
and anticipate multiple payments. ''', and anticipate multiple payments. ''',
'version': '10.0.0.2.0', 'version': '10.0.0.3.0',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Fabien Bourgeois', 'author': 'Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-08-01 16:06+0000\n" "POT-Creation-Date: 2018-08-03 07:43+0000\n"
"PO-Revision-Date: 2018-08-01 18:08+0200\n" "PO-Revision-Date: 2018-08-03 09:49+0200\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -67,6 +67,11 @@ msgstr "Jours"
msgid "Display Name" msgid "Display Name"
msgstr "Nom affiché" msgstr "Nom affiché"
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Draft"
msgstr "Brouillon"
#. module: golem_payment #. module: golem_payment
#: model:ir.model,name:golem_payment.model_golem_payment_schedule #: model:ir.model,name:golem_payment.model_golem_payment_schedule
msgid "GOLEM Payment Schedule" msgid "GOLEM Payment Schedule"
@ -120,7 +125,7 @@ msgstr "Échéanciers de paiements"
#. module: golem_payment #. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search #: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Payment delayed" msgid "Payment delayed"
msgstr "Paiement à venir" msgstr "Paiement en retard"
#. module: golem_payment #. module: golem_payment
#: model:ir.model.fields,field_description:golem_payment.field_account_payment_reference #: model:ir.model.fields,field_description:golem_payment.field_account_payment_reference
@ -132,6 +137,16 @@ msgstr "Référence paiement"
msgid "Payments" msgid "Payments"
msgstr "Paiements" msgstr "Paiements"
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Post"
msgstr "Comptabilisé"
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Reconciled"
msgstr "Lettré"
#. module: golem_payment #. module: golem_payment
#: model:ir.model.fields,field_description:golem_payment.field_golem_payment_schedule_day_schedule_id #: model:ir.model.fields,field_description:golem_payment.field_golem_payment_schedule_day_schedule_id
msgid "Schedule id" msgid "Schedule id"
@ -143,6 +158,11 @@ msgstr "Échéancier"
msgid "Season" msgid "Season"
msgstr "Saison" msgstr "Saison"
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Sent"
msgstr "Envoyé"
#. module: golem_payment #. module: golem_payment
#: model:ir.model,name:golem_payment.model_golem_payment_schedule_day #: model:ir.model,name:golem_payment.model_golem_payment_schedule_day
msgid "golem.payment.schedule.day" msgid "golem.payment.schedule.day"

View File

@ -6,8 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-08-01 16:06+0000\n" "POT-Creation-Date: 2018-08-03 07:43+0000\n"
"PO-Revision-Date: 2018-08-01 16:06+0000\n" "PO-Revision-Date: 2018-08-03 07:43+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -67,6 +67,11 @@ msgstr ""
msgid "Display Name" msgid "Display Name"
msgstr "" msgstr ""
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Draft"
msgstr ""
#. module: golem_payment #. module: golem_payment
#: model:ir.model,name:golem_payment.model_golem_payment_schedule #: model:ir.model,name:golem_payment.model_golem_payment_schedule
msgid "GOLEM Payment Schedule" msgid "GOLEM Payment Schedule"
@ -132,6 +137,16 @@ msgstr ""
msgid "Payments" msgid "Payments"
msgstr "" msgstr ""
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Post"
msgstr ""
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Reconciled"
msgstr ""
#. module: golem_payment #. module: golem_payment
#: model:ir.model.fields,field_description:golem_payment.field_golem_payment_schedule_day_schedule_id #: model:ir.model.fields,field_description:golem_payment.field_golem_payment_schedule_day_schedule_id
msgid "Schedule id" msgid "Schedule id"
@ -143,6 +158,11 @@ msgstr ""
msgid "Season" msgid "Season"
msgstr "" msgstr ""
#. module: golem_payment
#: model:ir.ui.view,arch_db:golem_payment.account_payment_search
msgid "Sent"
msgstr ""
#. module: golem_payment #. module: golem_payment
#: model:ir.model,name:golem_payment.model_golem_payment_schedule_day #: model:ir.model,name:golem_payment.model_golem_payment_schedule_day
msgid "golem.payment.schedule.day" msgid "golem.payment.schedule.day"

View File

@ -63,15 +63,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="model">account.payment</field> <field name="model">account.payment</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<search> <search>
<field name="partner_id" />
<field name="state" /> <field name="state" />
<field name="payment_date" /> <field name="payment_date" />
<field name="reference" /> <field name="reference" />
<group string="Group By"> <filter name="state_draft" string="Draft"
<filter name="group_week" string="By week" domain="[('state', '=', 'draft')]" />
context="{'group_by': 'payment_date:week'}"/> <filter name="state_posted" string="Post"
<filter name="group_month" string="By month" domain="[('state', '=', 'posted')]" />
context="{'group_by': 'payment_date:month'}"/> <filter name="state_sent" string="Sent"
</group> domain="[('state', '=', 'sent')]" />
<filter name="state_reconciled" string="Reconciled"
domain="[('state', '=', 'reconciled')]" />
<separator />
<filter name="payment_7_days" string="payment in 7 days" <filter name="payment_7_days" string="payment in 7 days"
domain="[('state','=', 'draft'), domain="[('state','=', 'draft'),
('payment_date','&lt;=', (context_today() + datetime.timedelta(days=7)).strftime('%Y-%m-%d')), ('payment_date','&lt;=', (context_today() + datetime.timedelta(days=7)).strftime('%Y-%m-%d')),
@ -83,6 +87,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<separator /> <separator />
<filter name="payment_delayed" string="Payment delayed" <filter name="payment_delayed" string="Payment delayed"
domain="[('state','=', 'draft'), ('payment_date','&lt;=', context_today().strftime('%Y-%m-%d'))]" /> domain="[('state','=', 'draft'), ('payment_date','&lt;=', context_today().strftime('%Y-%m-%d'))]" />
<group string="Group By">
<filter name="group_week" string="By week"
context="{'group_by': 'payment_date:week'}"/>
<filter name="group_month" string="By month"
context="{'group_by': 'payment_date:month'}"/>
</group>
</search> </search>
</field> </field>
</record> </record>