-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7dfa06
commit 6d444d2
Showing
4 changed files
with
94 additions
and
48 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
8 changes: 8 additions & 0 deletions
8
account_factoring_receivable_balance_factofrance/data/subrogation_seq.xml
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,8 @@ | ||
<odoo noupdate="1"> | ||
<record id="factoring_receivable_seq" model="ir.sequence"> | ||
<field name="name">Factoring Receivable</field> | ||
<field name="code">factoring.receivable</field> | ||
<field name="padding">5</field> | ||
<field name="company_id" eval="False" /> | ||
</record> | ||
</odoo> |
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
27 changes: 27 additions & 0 deletions
27
account_factoring_receivable_balance_factofrance/views/subrogation_receipt_views.xml
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,27 @@ | ||
<odoo> | ||
<record id="subrogation_receipt_form_inherit" model="ir.ui.view"> | ||
<field name="name">subrogation_receipt_form_inherit</field> | ||
<field name="model">subrogation.receipt</field> | ||
<field name="inherit_id" ref="account_factoring_receivable_balance.subrogation_receipt_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//button[@name='action_confirm']" position="after"> | ||
<button name="action_draft" type="object" string="Draft" invisible="state == 'draft'"/> | ||
</xpath> | ||
<xpath expr="//field[@name='factor_type']" position="before"> | ||
<field name="name" readonly="1" string="Document No."/> | ||
</xpath> | ||
<xpath expr="//field[@name='factor_type']" position="after"> | ||
<field name="file_type" required="factor_type == 'factofrance'" readonly="state !='draft'"/> | ||
</xpath> | ||
<xpath expr="//button[@name='action_post']" position="attributes"> | ||
<attribute name="invisible">1</attribute> | ||
</xpath> | ||
<xpath expr="//field[@name='item_ids']/tree/field[@name='partner_id']" position="attributes"> | ||
<attribute name="optional">show</attribute> | ||
</xpath> | ||
<xpath expr="//field[@name='item_ids']/tree/field[@name='partner_ref']" position="attributes"> | ||
<attribute name="optional">hide</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |