forked from OCA/commission
-
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.
[IMP] sale_commission_pricelist: black, isort, prettier
- Loading branch information
1 parent
73475c0
commit 2ec56c5
Showing
10 changed files
with
163 additions
and
172 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
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,3 +1,2 @@ | ||
|
||
from . import product_pricelist | ||
from . import sale_order |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
|
||
from . import test_sale_commission_pricelist |
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
75 changes: 35 additions & 40 deletions
75
sale_commission_pricelist/views/product_pricelist_view.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 |
---|---|---|
@@ -1,46 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!-- Copyright 2018 Carlos Dauden - Tecnativa <[email protected]> | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo> | ||
|
||
<record id="product_pricelist_item_tree_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist.item</field> | ||
<field name="inherit_id" ref="product.product_pricelist_item_tree_view"/> | ||
<field name="arch" type="xml"> | ||
<field name="min_quantity" position="after"> | ||
<field name="commission_id"/> | ||
<record id="product_pricelist_item_tree_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist.item</field> | ||
<field name="inherit_id" ref="product.product_pricelist_item_tree_view" /> | ||
<field name="arch" type="xml"> | ||
<field name="min_quantity" position="after"> | ||
<field name="commission_id" /> | ||
</field> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="product_pricelist_item_form_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist.item</field> | ||
<field name="inherit_id" ref="product.product_pricelist_item_form_view"/> | ||
<field name="arch" type="xml"> | ||
<field name="min_quantity" position="after"> | ||
<field name="commission_id"/> | ||
</record> | ||
<record id="product_pricelist_item_form_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist.item</field> | ||
<field name="inherit_id" ref="product.product_pricelist_item_form_view" /> | ||
<field name="arch" type="xml"> | ||
<field name="min_quantity" position="after"> | ||
<field name="commission_id" /> | ||
</field> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
<record id="product_pricelist_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist</field> | ||
<field name="inherit_id" ref="product.product_pricelist_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//tree/field[@name='price']" position="after"> | ||
<field name="commission_id"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
<record id="product_normal_form_view" model="ir.ui.view"> | ||
<field name="model">product.product</field> | ||
<field name="inherit_id" ref="product.product_normal_form_view"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//tree/field[@name='price']" position="after"> | ||
<field name="commission_id"/> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</record> | ||
<record id="product_pricelist_view" model="ir.ui.view"> | ||
<field name="model">product.pricelist</field> | ||
<field name="inherit_id" ref="product.product_pricelist_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//tree/field[@name='price']" position="after"> | ||
<field name="commission_id" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
<record id="product_normal_form_view" model="ir.ui.view"> | ||
<field name="model">product.product</field> | ||
<field name="inherit_id" ref="product.product_normal_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//tree/field[@name='price']" position="after"> | ||
<field name="commission_id" /> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |
Oops, something went wrong.