-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OCA#301 from TelmoSenseFly/BSSFL-417
[BSSFL-417] PO pay to other partner account
- Loading branch information
Showing
7 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
from . import account | ||
from . import account_invoice | ||
from . import account_move | ||
from . import res_bank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of sensefly. | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResPartnerBank(models.Model): | ||
_inherit = "res.partner.bank" | ||
|
||
linked_partner_id = fields.Many2one( | ||
'res.partner', | ||
string='Linked partner', | ||
help='The bank account of this partner can also be used to pay a PO.' | ||
) | ||
linked_partner_bank_ids = fields.One2many( | ||
related='linked_partner_id.bank_ids', | ||
string='Banks') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<record id="sf_partner_bank_form" model="ir.ui.view"> | ||
<field name="name">sf.res.partner.bank.form</field> | ||
<field name="model">res.partner.bank</field> | ||
<field name="inherit_id" ref="base.view_partner_bank_form"/> | ||
<field name="arch" type="xml"> | ||
<group col="4" position="after"> | ||
<group name="linked_partner_id" string="Linked Bank Account"> | ||
<field name="linked_partner_id" string="Account Holder"/> | ||
<field name="linked_partner_bank_ids" readonly="1"> | ||
<tree> | ||
<field name="acc_number"/> | ||
<field name="bank_id"/> | ||
</tree> | ||
</field> | ||
</group> | ||
</group> | ||
</field> | ||
</record> | ||
</odoo> |