Skip to content

Commit

Permalink
[REF] account_factoring_receivable_balance: merge base_factor in this…
Browse files Browse the repository at this point in the history
… module
  • Loading branch information
dreispt committed Jun 7, 2024
1 parent 87d5b17 commit 4b4621d
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 684 deletions.
5 changes: 3 additions & 2 deletions account_factoring_receivable_balance/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"alexis-via",
],
"depends": [
"base_factoring",
"account",
],
"data": [
"security/ir.model.access.csv",
"security/misc.xml",
"views/subrogation_receipt.xml",
"views/account_journal.xml",
"views/company.xml",
"views/partner.xml",
"views/subrogation_receipt.xml",
],
"demo": [
"views/company_demo.xml",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class AccountJournal(models.Model):
_inherit = "account.journal"

factor_type = fields.Selection(string="Factor", selection_add=[("", "")])
factor_type = fields.Selection(string="Factor", selection=[("", "")])
factoring_receivable_account_id = fields.Many2one(
comodel_name="account.account", string="Receivable Account"
)
Expand Down
39 changes: 27 additions & 12 deletions account_factoring_receivable_balance/views/account_journal.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
<odoo>

<menuitem
id="factoring_menu"
parent="account.menu_finance_entries"
sequence="50"
name="Factoring"
/>

<record id="view_account_journal_form" model="ir.ui.view">
<field name="model">account.journal</field>
<field name="inherit_id" ref="base_factoring.view_account_journal_form" />
<field name="inherit_id" ref="account.view_account_journal_form" />
<field name="arch" type="xml">
<xpath expr="//page[@name='factor']" position="inside">
<group name="receivable_balance" string="Receiveable Balance">
<group name="balance_left">
<field name="factoring_receivable_account_id" />
<field name="factoring_current_account_id" />
<field name="factoring_holdback_account_id" />
</group>
<group name="balance_right">
<field name="factoring_pending_recharging_account_id" />
<field name="factoring_expense_account_id" />
<xpath
expr="//page[@name='bank_account']//field[@name='currency_id']"
position="after"
>
<field name="factor_type" invisible="type not in ('general', 'bank')" />
</xpath>
<xpath expr="//page[last()]" position="after">
<page name="factor" string="Factor" invisible="not factor_type">
<group name="receivable_balance" string="Receiveable Balance">
<group name="balance_left">
<field name="factoring_receivable_account_id" />
<field name="factoring_current_account_id" />
<field name="factoring_holdback_account_id" />
</group>
<group name="balance_right">
<field name="factoring_pending_recharging_account_id" />
<field name="factoring_expense_account_id" />
</group>
</group>
</group>
</page>
</xpath>
</field>
</record>
Expand Down
19 changes: 12 additions & 7 deletions account_factoring_receivable_balance/views/company.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@

<record id="view_company_form" model="ir.ui.view">
<field name="model">res.company</field>
<field name="inherit_id" ref="base_factoring.view_company_form" />
<field name="inherit_id" ref="base.view_company_form" />
<field name="arch" type="xml">
<xpath
expr="//page[@name='factor']//group[@name='config_facto']"
position="inside"
>
<field name="factor_config_currency_id" />
</xpath>

<notebook position="inside">
<page name="factor" string="Factor">
<group name="factoring" groups="account.group_account_invoice">
<group name="config_facto" string="Configuration">
<field name="factor_config_currency_id" />
</group>
</group>
</page>
</notebook>

</field>
</record>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<record id="view_company_form_demo" model="ir.ui.view">
<field name="model">res.company</field>
<field name="inherit_id" ref="base_factoring.view_company_form" />
<field name="inherit_id" ref="view_company_form" />
<field name="priority" eval="50" />
<field name="arch" type="xml">
<xpath
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@

<menuitem
id="subrogation_receipt_menu"
parent="base_factoring.factoring_menu"
parent="factoring_menu"
action="subrogation_receipt_action"
/>

Expand Down
67 changes: 0 additions & 67 deletions base_factoring/README.rst

This file was deleted.

1 change: 0 additions & 1 deletion base_factoring/__init__.py

This file was deleted.

25 changes: 0 additions & 25 deletions base_factoring/__manifest__.py

This file was deleted.

38 changes: 0 additions & 38 deletions base_factoring/i18n/base_factoring.pot

This file was deleted.

42 changes: 0 additions & 42 deletions base_factoring/i18n/fr.po

This file was deleted.

1 change: 0 additions & 1 deletion base_factoring/models/__init__.py

This file was deleted.

11 changes: 0 additions & 11 deletions base_factoring/models/account_journal.py

This file was deleted.

3 changes: 0 additions & 3 deletions base_factoring/pyproject.toml

This file was deleted.

2 changes: 0 additions & 2 deletions base_factoring/readme/DESCRIPTION.md

This file was deleted.

Loading

0 comments on commit 4b4621d

Please sign in to comment.