-
-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] account_invoice_pricelist: black, isort, prettier
- Loading branch information
1 parent
cb82c9e
commit 9e45fe0
Showing
6 changed files
with
153 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
from . import models |
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 |
---|---|---|
@@ -1,21 +1,14 @@ | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': 'Account - Pricelist on Invoices', | ||
'version': '12.0.1.0.3', | ||
'summary': 'Add partner pricelist on invoices', | ||
'category': 'Accounting & Finance', | ||
'author': 'GRAP,' | ||
'Therp BV,' | ||
'Tecnativa,' | ||
'Odoo Community Association (OCA)', | ||
'website': 'https://github.com/OCA/account-invoicing', | ||
'license': 'AGPL-3', | ||
'depends': [ | ||
'account', | ||
], | ||
'data': [ | ||
'views/account_invoice_view.xml', | ||
], | ||
'installable': True, | ||
"name": "Account - Pricelist on Invoices", | ||
"version": "12.0.1.0.3", | ||
"summary": "Add partner pricelist on invoices", | ||
"category": "Accounting & Finance", | ||
"author": "GRAP," "Therp BV," "Tecnativa," "Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/account-invoicing", | ||
"license": "AGPL-3", | ||
"depends": ["account",], | ||
"data": ["views/account_invoice_view.xml",], | ||
"installable": True, | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
|
||
For further information, please visit: | ||
|
||
* https://www.odoo.com/forum/help-1 | ||
* https://www.odoo.com/forum/help-1 |
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 |
---|---|---|
@@ -1,53 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
|
||
<record id="view_account_invoice_customer_form" model="ir.ui.view"> | ||
<field name="model">account.invoice</field> | ||
<field name="inherit_id" ref="account.invoice_form"/> | ||
<field name="inherit_id" ref="account.invoice_form" /> | ||
<field name="arch" type="xml"> | ||
<button name="action_invoice_open" position="before"> | ||
<button type="object" | ||
name="button_update_prices_from_pricelist" | ||
string="Update prices" | ||
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}" | ||
help="Update price in lines from the pricelist" | ||
<button | ||
type="object" | ||
name="button_update_prices_from_pricelist" | ||
string="Update prices" | ||
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}" | ||
help="Update price in lines from the pricelist" | ||
/> | ||
</button> | ||
<field name="user_id" position="after"> | ||
<field name="pricelist_id"/> | ||
<field name="pricelist_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="view_account_invoice_supplier_form" model="ir.ui.view"> | ||
<field name="model">account.invoice</field> | ||
<field name="inherit_id" ref="account.invoice_supplier_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="inherit_id" ref="account.invoice_supplier_form" /> | ||
<field name="arch" type="xml"> | ||
<button name="action_invoice_open" position="before"> | ||
<button type="object" | ||
name="button_update_prices_from_pricelist" | ||
string="Update prices" | ||
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}" | ||
help="Update price in lines from the pricelist" | ||
<button | ||
type="object" | ||
name="button_update_prices_from_pricelist" | ||
string="Update prices" | ||
attrs="{'invisible': ['|', ('pricelist_id', '=', False), ('state', 'not in', ['draft'])]}" | ||
help="Update price in lines from the pricelist" | ||
/> | ||
</button> | ||
<field name="user_id" position="after"> | ||
<field name="pricelist_id"/> | ||
</field> | ||
</field> | ||
<field name="user_id" position="after"> | ||
<field name="pricelist_id" /> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="view_account_invoice_search" model="ir.ui.view"> | ||
<field name="model">account.invoice</field> | ||
<field name="inherit_id" ref="account.view_account_invoice_filter"/> | ||
<field name="inherit_id" ref="account.view_account_invoice_filter" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//filter[@name='group_by_partner_id']" position="after"> | ||
<filter string="Pricelist" | ||
name="pricelist" | ||
context="{'group_by':'pricelist_id'}" | ||
invisible="context.get('type', '') not in ['out_invoice', 'out_refund']"/> | ||
<filter | ||
string="Pricelist" | ||
name="pricelist" | ||
context="{'group_by':'pricelist_id'}" | ||
invisible="context.get('type', '') not in ['out_invoice', 'out_refund']" | ||
/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |