Skip to content

Commit

Permalink
IMP factor: add store attribute and filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudelva committed Nov 5, 2024
1 parent 5d38b06 commit 586ae7a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions account_factoring_receivable_balance/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,11 @@ msgstr "Montant non taxé"
msgid "Use Factor"
msgstr "Utiliser le factor"

#. module: account_factoring_receivable_balance
#: model_terms:ir.ui.view,arch_db:account_factoring_receivable_balance.view_account_invoice_filter
msgid "Use factor"
msgstr "Utiliser le factor"

#. module: account_factoring_receivable_balance
#: model:ir.model.fields,help:account_factoring_receivable_balance.field_res_company__factor_config_currency_id
msgid "Use to configure account and journal"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class AccountMove(models.Model):
use_factor = fields.Boolean(
compute="_compute_use_factor",
help="Depending on partner factor settings and skip factor field",
store=True,
)
factor_journal_id = fields.Many2one(
comodel_name="account.journal",
Expand Down
16 changes: 16 additions & 0 deletions account_factoring_receivable_balance/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,20 @@
</field>
</record>

<record id="view_account_invoice_filter" model="ir.ui.view">
<field name="name">account.invoice.filter</field>
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_account_invoice_filter" />
<field name="arch" type="xml">
<filter name="to_check" position="after">
<separator />
<filter
string="Use factor"
name="use_factor"
domain="[('use_factor','=',True)]"
/>
<separator />
</filter>
</field>
</record>
</odoo>

0 comments on commit 586ae7a

Please sign in to comment.