mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
9d1f327d59f7ca4ad1e6374ea1adf4e4d183f5da
STR:
1. Install `partner_multi_company`
2. Install `product_multi_company`
3. Install `hr_expense`
4. Install and test `account_payment_partner`
Error:
```
2023-04-05 09:12:48,641 72 ERROR odoo unittest.suite: ERROR: setUpClass (odoo.addons.account_payment_partner.tests.test_account_payment_partner.TestAccountPaymentPartner)
Traceback (most recent call last):
File "/opt/odoo/auto/addons/account_payment_partner/tests/test_account_payment_partner.py", line 35, in setUpClass
cls.env.user.company_id = cls.company_2.id
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1150, in __set__
records.write({self.name: write_value})
File "/opt/odoo/auto/addons/pos_blackbox_be/models/res_users.py", line 55, in write
return super(ResUser, self).write(values)
File "/opt/odoo/auto/addons/website_slides/models/res_users.py", line 19, in write
res = super(Users, self).write(vals)
File "/opt/odoo/auto/addons/helpdesk/models/res_users.py", line 45, in write
return super().write(vals)
File "/opt/odoo/auto/addons/hr/models/res_users.py", line 189, in write
result = super(User, self).write(vals)
File "/opt/odoo/auto/addons/gamification/models/res_users.py", line 63, in write
result = super(Users, self).write(vals)
File "/opt/odoo/auto/addons/mail/models/res_users.py", line 88, in write
write_res = super(Users, self).write(vals)
File "/opt/odoo/auto/addons/partner_multi_company/models/res_users.py", line 28, in write
user.partner_id.company_ids = [(4, vals["company_id"])]
File "/opt/odoo/custom/src/odoo/odoo/fields.py", line 1150, in __set__
records.write({self.name: write_value})
File "/opt/odoo/auto/addons/sale_subscription/models/res_partner.py", line 14, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/payment_sepa_direct_debit/models/partner.py", line 18, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/mass_mailing_partner/models/res_partner.py", line 74, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/base_vat/models/res_partner.py", line 643, in write
return super(ResPartner, self).write(values)
File "/opt/odoo/auto/addons/snailmail/models/res_partner.py", line 26, in write
return super(ResPartner, self).write(vals)
File "/opt/odoo/auto/addons/partner_autocomplete/models/res_partner.py", line 199, in write
res = super(ResPartner, self).write(values)
File "/opt/odoo/auto/addons/base_multi_company/models/multi_company_abstract.py", line 74, in write
return super().write(vals)
File "/opt/odoo/auto/addons/partner_contact_lang/models/res_partner.py", line 13, in write
res = super(ResPartner, self).write(vals)
File "/opt/odoo/auto/addons/base_address_extended/models/res_partner.py", line 127, in write
res = super(Partner, self).write(vals)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/res_partner.py", line 560, in write
partner._fields_sync(vals)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/res_partner.py", line 479, in _fields_sync
self._children_sync(values)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/res_partner.py", line 488, in _children_sync
self._commercial_sync_to_children()
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/res_partner.py", line 461, in _commercial_sync_to_children
res = sync_children.write(sync_vals)
File "/opt/odoo/auto/addons/sale_subscription/models/res_partner.py", line 14, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/payment_sepa_direct_debit/models/partner.py", line 18, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/mass_mailing_partner/models/res_partner.py", line 74, in write
res = super().write(vals)
File "/opt/odoo/auto/addons/base_vat/models/res_partner.py", line 643, in write
return super(ResPartner, self).write(values)
File "/opt/odoo/auto/addons/snailmail/models/res_partner.py", line 26, in write
return super(ResPartner, self).write(vals)
File "/opt/odoo/auto/addons/partner_autocomplete/models/res_partner.py", line 199, in write
res = super(ResPartner, self).write(values)
File "/opt/odoo/auto/addons/base_multi_company/models/multi_company_abstract.py", line 74, in write
return super().write(vals)
File "/opt/odoo/auto/addons/partner_contact_lang/models/res_partner.py", line 13, in write
res = super(ResPartner, self).write(vals)
File "/opt/odoo/auto/addons/base_address_extended/models/res_partner.py", line 127, in write
res = super(Partner, self).write(vals)
File "/opt/odoo/custom/src/odoo/odoo/addons/base/models/res_partner.py", line 556, in write
result = result and super(Partner, self).write(vals)
File "/opt/odoo/auto/addons/mail/models/mail_activity.py", line 788, in write
return super(MailActivityMixin, self).write(vals)
File "/opt/odoo/auto/addons/mail/models/mail_thread.py", line 322, in write
result = super(MailThread, self).write(values)
File "/opt/odoo/auto/addons/website/models/mixins.py", line 205, in write
return super(WebsitePublishedMixin, self).write(values)
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3730, in write
self._check_company()
File "/opt/odoo/custom/src/odoo/odoo/models.py", line 3335, in _check_company
raise UserError("\n".join(lines))
odoo.exceptions.UserError: Incompatible companies on records:
- "OdooBot, Pieter Parter's Farm" belongs to company 'Company 2' and 'Supplier Payment Mode' (supplier_payment_mode_id: 'Credit Transfer to Suppliers') belongs to another company.
- "OdooBot, Pieter Parter's Farm" belongs to company 'Company 2' and 'Customer Payment Mode' (customer_payment_mode_id: 'Inbound Credit Trf Société Générale') belongs to another company.
```
With this change, the test is simpler and won't make that side effect.
@moduon MT-2638
OCA banking payment addons for Odoo
This project focus on payment interface
Available addons
| addon | version | maintainers | summary |
|---|---|---|---|
| account_banking_mandate | 14.0.2.0.0 | Banking mandates | |
| account_banking_mandate_contact | 14.0.1.0.0 | Assign specific banking mandates in contact level | |
| account_banking_mandate_sale | 14.0.1.0.0 | Adds mandates on sale orders | |
| account_banking_pain_base | 14.0.2.1.0 | Base module for PAIN file generation | |
| account_banking_sepa_credit_transfer | 14.0.2.0.0 | Create SEPA XML files for Credit Transfers | |
| account_banking_sepa_direct_debit | 14.0.2.0.0 | Create SEPA files for Direct Debit | |
| account_invoice_select_for_payment | 14.0.1.0.0 | Account Invoice Select for Payment | |
| account_payment_mode | 14.0.1.1.0 | Account Payment Mode | |
| account_payment_mode_default_account | 14.0.1.0.0 | Set Receivable or Payable account according to payment mode | |
| account_payment_order | 14.0.2.0.1 | Account Payment Order | |
| account_payment_order_grouped_output | 14.0.1.0.0 | Account Payment Order - Generate grouped moves | |
| account_payment_order_notification | 14.0.1.5.0 | ![]() |
Account Payment Order Notification |
| account_payment_order_return | 14.0.1.0.2 | Account Payment Order Return | |
| account_payment_order_sequence_payment_mode | 14.0.1.0.0 | Account Payment Order Sequence Payment Mode | |
| account_payment_order_tier_validation | 14.0.1.0.0 | ![]() |
Extends the functionality of Payment Orders to support a tier validation process. |
| account_payment_order_vendor_email | 14.0.2.0.0 | Account Payment Order Email | |
| account_payment_partner | 14.0.1.7.1 | Adds payment mode on partners and invoices | |
| account_payment_purchase | 14.0.1.0.3 | Adds Bank Account and Payment Mode on Purchase Orders | |
| account_payment_purchase_stock | 14.0.1.0.1 | Integrate Account Payment Purchase with Stock | |
| account_payment_sale | 14.0.1.1.0 | Adds payment mode on sale orders |
Licenses
This repository is licensed under AGPL-3.0.
However, each module can have a totally different license, as long as they adhere to Odoo Community Association (OCA)
policy. Consult each module's __manifest__.py file, which contains a license key
that explains its license.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
Description
Languages
Python
58.9%
HTML
41%


