Skip to content

Commit

Permalink
[FIX] joint_buying_base: Transport request view default filter includ…
Browse files Browse the repository at this point in the history
…es now manual Transport Requests
  • Loading branch information
legalsylvain committed Oct 18, 2024
1 parent 2ba8fad commit 26cb9ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions joint_buying_base/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -1137,8 +1137,8 @@ msgstr "Planifiée"

#. module: joint_buying_base
#: model_terms:ir.ui.view,arch_db:joint_buying_base.view_joint_buying_transport_request_search
msgid "Positive Amount"
msgstr "Montant positif"
msgid "Positive Amount or Manual"
msgstr "Montant positif ou Demande manuelle"

#. module: joint_buying_base
#: model:res.partner.category,name:joint_buying_base.partner_category_poultry
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="state"/>
<field name="request_type"/>
<field name="supplier_id"/>
<filter name="filter_amount_positive" string="Positive Amount" domain="['|',
<filter name="filter_amount_positive_or_manual" string="Positive Amount or Manual" domain="['|',
('amount_untaxed','!=', 0),
('total_weight','!=', 0),
('request_type','=', 'manual'),
]"/>
<filter string="Request Type" name="groupby_request_type" domain="[]" context="{'group_by':'request_type'}"/>
</search>
Expand Down Expand Up @@ -207,7 +208,7 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
<field name="res_model">joint.buying.transport.request</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_filter_amount_positive':1}</field>
<field name="context">{'search_default_filter_amount_positive_or_manual':1}</field>
</record>

<menuitem id="menu_joint_buying_transport_request"
Expand Down

0 comments on commit 26cb9ca

Please sign in to comment.