Skip to content

Commit

Permalink
[REF] Update dependencies and improve currency difference handling in…
Browse files Browse the repository at this point in the history
… partner views

Signed-off-by: Ahmet Yiğit Budak <[email protected]>
  • Loading branch information
yibudak committed Mar 8, 2025
1 parent d3c32f8 commit b58663d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
8 changes: 7 additions & 1 deletion change_partner_accounts/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@
"category": "Accounting",
"version": "13.0.0.1.0",
# any module necessary for this one to work correctly
"depends": ["base", "altinkaya_base", "account", "account_financial_risk"],
"depends": [
"base",
"altinkaya_base",
"account",
"account_financial_risk",
"currency_difference_invoice",
],
# always loaded
"data": [
# 'security/ir.model.access.csv',
Expand Down
8 changes: 4 additions & 4 deletions change_partner_accounts/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
<record id="view_partner_search_inherit" model="ir.ui.view">
<field name="name">res.partner.search.inherit</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="inherit_id" ref="base.view_res_partner_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='inactive']" position="after">
<separator/>
<filter name="not_zero" string="Sıfır Değil"
<filter name="not_zero" string="Sıfır Değil"
domain="['|','|','|',('currency_balance','&gt;',1),('currency_balance','&lt;',-1),('balance','&gt;',10),('balance','&lt;',-10)]"/>
<separator/>

Expand Down Expand Up @@ -53,7 +53,7 @@
<field name="currency_balance" string="$₺€ Bakiye" sum="Döviz Bakiye" widget="monetary" options="{'currency_field': 'partner_currency_id','digits': 'invoice'}"/>
<field name="currency_balance_due" string="$₺€ V.Gelen" sum="Döviz Vade Gelen" widget="monetary" options="{'currency_field': 'partner_currency_id','digits': 'invoice'}"/>
<field name="partner_currency_id" string="$€₺"/>
<field name="currency_difference_amls" string="Fark"/>
<field name="currency_difference_amls" string="Fark"/>
<field name="partner_currency_id" invisible="1"/>
<field name="currency_id" invisible="1"/>
<field name="property_payment_term_id" string="Ödeme Şekli"/>
Expand Down Expand Up @@ -88,4 +88,4 @@
sequence="0"/>

</data>
</odoo>
</odoo>
2 changes: 1 addition & 1 deletion currency_difference_invoice/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"category": "Accounting",
"version": "0.1",
"license": "LGPL-3",
"depends": ["base", "account", "change_partner_accounts"],
"depends": ["base", "account"],
"data": [
"views/res_partner_view.xml",
"views/res_company_view.xml",
Expand Down
4 changes: 1 addition & 3 deletions currency_difference_invoice/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<group name="banks" position="before">
<field name="partner_currency_id" invisible="1" groups="!account.group_account_invoice"/>

<group string="Currency Difference" colspan="2" col="2"
attrs="{'invisible': [('partner_currency_id', '=', 31)]}">
<group string="Currency Difference" colspan="2" col="2">
<group>
<field name="currency_difference_checked"/>
<button name="action_generate_currency_diff_invoice" type="object"
Expand Down

0 comments on commit b58663d

Please sign in to comment.