Skip to content

Commit

Permalink
[17.0][MIG] agreement_account: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ilo committed Sep 10, 2024
1 parent 9465ab5 commit 9d7ec14
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions agreement_account/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Contributors
------------

- Alexis de Lattre <[email protected]>
- Italo LOPES <[email protected]>

Maintainers
-----------
Expand Down
2 changes: 0 additions & 2 deletions agreement_account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,5 @@ class AccountMove(models.Model):
string="Agreement",
ondelete="restrict",
tracking=True,
readonly=True,
copy=False,
states={"draft": [("readonly", False)]},
)
1 change: 1 addition & 0 deletions agreement_account/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Alexis de Lattre \<<[email protected]>\>
- Italo LOPES \<<[email protected]>\>
1 change: 1 addition & 0 deletions agreement_account/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Authors</a></h2>
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
<li>Italo LOPES &lt;<a class="reference external" href="mailto:italo.lopes&#64;camptocamp.com">italo.lopes&#64;camptocamp.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
1 change: 1 addition & 0 deletions agreement_account/views/account_move.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
name="agreement_id"
domain="[('partner_id', 'child_of', commercial_partner_id), ('domain', '=', 'sale')]"
context="{'default_partner_id': commercial_partner_id, 'default_domain': 'sale'}"
readonly="state != 'draft'"
/>
<field name="commercial_partner_id" invisible="1" />
</xpath>
Expand Down
8 changes: 4 additions & 4 deletions agreement_account/views/agreement.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
class="oe_stat_button"
type="action"
name="%(account.action_move_out_invoice_type)d"
context="{'search_default_agreement_id': active_id, 'default_agreement_id': active_id, 'default_partner_id': partner_id}"
attrs="{'invisible': [('domain', '!=', 'sale')]}"
context="{'search_default_agreement_id': id, 'default_agreement_id': id, 'default_partner_id': partner_id}"
invisible="domain != 'sale'"
icon="fa-pencil-square-o"
>
<field
Expand All @@ -69,8 +69,8 @@
class="oe_stat_button"
type="action"
name="%(account.action_move_in_invoice_type)d"
context="{'search_default_agreement_id': active_id, 'default_agreement_id': active_id, 'default_partner_id': partner_id}"
attrs="{'invisible': [('domain', '!=', 'purchase')]}"
context="{'search_default_agreement_id': id, 'default_agreement_id': id, 'default_partner_id': partner_id}"
invisible="domain != 'purchase'"
icon="fa-pencil-square-o"
>
<field
Expand Down

0 comments on commit 9d7ec14

Please sign in to comment.