Restructure: move packages from packages/ subdirectory to root

Flattened directory structure by moving payment packages from redundant
packages/ subdirectory to the root level of oca-payment repository.

Changes:
- Moved odoo-bringout-oca-payment-* from packages/ to root
- Updated CLAUDE.md to reflect new flat structure
- Removed redundant packages/ directory

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ernad Husremovic 2025-11-16 09:10:09 +01:00
parent 99c650f4f5
commit 7f7e88ab3d
202 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_account_journal_form" model="ir.ui.view">
<field name="name">usability.account_journal.form</field>
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.view_account_journal_form" />
<field name="arch" type="xml">
<!-- better when related fields are readonly, otherwise the user
doesn't understand that he is changing the bank_id
on the underlying res.partner.bank object -->
<field name="bank_id" position="attributes">
<attribute name="readonly">1</attribute>
</field>
</field>
</record>
</odoo>

View file

@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- The object account.payment.method is defined in the account module
but there are no view for this object in the account module... so we define it
here. I hate the objects that don't have a view... -->
<record id="account_payment_method_form" model="ir.ui.view">
<field name="name">account_payment_method.form</field>
<field name="model">account.payment.method</field>
<field name="arch" type="xml">
<form string="Payment Method">
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<group name="main">
<field name="name" />
<field name="code" />
<field name="payment_type" />
<field name="bank_account_required" />
<field name="active" invisible="1" />
</group>
</sheet>
</form>
</field>
</record>
<record id="account_payment_method_tree" model="ir.ui.view">
<field name="name">account_payment_method.tree</field>
<field name="model">account.payment.method</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="code" />
<field name="payment_type" />
</tree>
</field>
</record>
<record id="account_payment_method_search" model="ir.ui.view">
<field name="name">account_payment_method.search</field>
<field name="model">account.payment.method</field>
<field name="arch" type="xml">
<search string="Search Payment Methods">
<field
name="name"
filter_domain="['|', ('name', 'ilike', self), ('code', 'ilike', self)]"
string="Name or Code"
/>
<filter
name="inbound"
string="Inbound"
domain="[('payment_type', '=', 'inbound')]"
/>
<filter
name="outbound"
string="Outbound"
domain="[('payment_type', '=', 'outbound')]"
/>
<group string="Group By" name="groupby">
<filter
string="Payment Type"
name="payment_type_groupby"
context="{'group_by': 'payment_type'}"
/>
</group>
</search>
</field>
</record>
<record id="account_payment_method_action" model="ir.actions.act_window">
<field name="name">Payment Methods</field>
<field name="res_model">account.payment.method</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="account_payment_method_menu"
action="account_payment_method_action"
parent="account.account_management_menu"
sequence="30"
/>
</odoo>

View file

@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="account_payment_mode_form" model="ir.ui.view">
<field name="name">account.payment.mode.form</field>
<field name="model">account.payment.mode</field>
<field name="arch" type="xml">
<form string="Payment Mode">
<sheet>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<group name="main">
<field name="name" />
<field
name="company_id"
groups="!base.group_multi_company"
invisible="1"
/>
<field name="company_id" groups="base.group_multi_company" />
<field name="active" invisible="1" />
<field name="payment_method_id" />
<field name="payment_type" />
<field name="bank_account_link" />
<field
name="fixed_journal_id"
attrs="{'invisible': [('bank_account_link', '!=', 'fixed')], 'required': [('bank_account_link', '=', 'fixed')]}"
/>
<field
name="variable_journal_ids"
attrs="{'invisible': [('bank_account_link', '!=', 'variable')], 'required': [('bank_account_link', '=', 'variable')]}"
widget="many2many_tags"
/>
</group>
<group string="Note" name="note">
<field name="note" nolabel="1" colspan="2" />
</group>
</sheet>
</form>
</field>
</record>
<record id="account_payment_mode_tree" model="ir.ui.view">
<field name="name">account.payment.mode.tree</field>
<field name="model">account.payment.mode</field>
<field name="arch" type="xml">
<tree>
<field name="sequence" widget="handle" />
<field name="name" />
<field name="payment_method_id" />
<field name="payment_type" />
<field name="bank_account_link" />
<field
name="company_id"
groups="!base.group_multi_company"
invisible="1"
/>
<field name="company_id" groups="base.group_multi_company" />
</tree>
</field>
</record>
<record id="account_payment_mode_search" model="ir.ui.view">
<field name="name">account.payment.mode.search</field>
<field name="model">account.payment.mode</field>
<field name="arch" type="xml">
<search string="Search Payment Modes">
<field name="name" />
<filter
name="inbound"
string="Inbound"
domain="[('payment_type', '=', 'inbound')]"
/>
<filter
name="outbound"
string="Outbound"
domain="[('payment_type', '=', 'outbound')]"
/>
<group string="Group By" name="groupby">
<filter
string="Payment Method"
name="payment_method_groupby"
context="{'group_by': 'payment_method_id'}"
/>
</group>
</search>
</field>
</record>
<record id="account_payment_mode_action" model="ir.actions.act_window">
<field name="name">Payment Modes</field>
<field name="res_model">account.payment.mode</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="account_payment_mode_menu"
action="account_payment_mode_action"
parent="account.account_management_menu"
sequence="25"
/>
</odoo>