-
-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract delivery_carrier_info from base_delivery_carrier_label
- Loading branch information
1 parent
4da40f7
commit e7e58c2
Showing
11 changed files
with
89 additions
and
22 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
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 @@ | ||
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2020 Akretion (https://www.akretion.com). | ||
# @author Sébastien BEAU <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
|
||
{ | ||
"name": "Delivery Carrier Info", | ||
"summary": "Add code and description on carrier", | ||
"version": "12.0.1.0.0", | ||
"category": "Delivery", | ||
"website": "www.akretion.com", | ||
"author": "Akretion,Odoo Community Association (OCA)", | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"external_dependencies": { | ||
"python": [], | ||
"bin": [], | ||
}, | ||
"depends": [ | ||
"delivery", | ||
], | ||
"data": [ | ||
"views/delivery_view.xml" | ||
], | ||
"demo": [ | ||
], | ||
"qweb": [ | ||
] | ||
} |
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 @@ | ||
from . import delivery_carrier |
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,14 @@ | ||
# Copyright 2020 Akretion (https://www.akretion.com). | ||
# Copyright 2020 Camptocamp SA | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class DeliveryCarrier(models.Model): | ||
_inherit = 'delivery.carrier' | ||
|
||
code = fields.Char( | ||
help="Delivery Method Code (according to carrier)", | ||
) | ||
description = fields.Text() |
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,2 @@ | ||
* Sébastien BEAU <[email protected]> | ||
* Guewen Baconnier <[email protected]> |
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 @@ | ||
This module add the field "code" and "description" on the delivery carrier. |
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 @@ | ||
In your delivery carrier you can fill the code and the description |
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,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<record id="view_delivery_carrier_form" model="ir.ui.view"> | ||
<field name="name">delivery_base.delivery.carrier.view_form</field> | ||
<field name="model">delivery.carrier</field> | ||
<field name="inherit_id" ref="delivery.view_delivery_carrier_form"/> | ||
<field name="arch" type="xml"> | ||
|
||
<xpath expr="//h1" position="after"> | ||
<group> | ||
<field name="code"/> | ||
</group> | ||
</xpath> | ||
|
||
<xpath expr="//notebook" position="inside"> | ||
<page name="description" string="Description"> | ||
<field name="description" colspan="4" nolabel="1"/> | ||
</page> | ||
</xpath> | ||
|
||
</field> | ||
</record> | ||
|
||
<record id="view_delivery_carrier_tree" model="ir.ui.view"> | ||
<field name="name">delivery_carrier_base.tree</field> | ||
<field name="model">delivery.carrier</field> | ||
<field name="inherit_id" ref="delivery.view_delivery_carrier_tree"/> | ||
<field name="arch" type="xml"> | ||
<field name="name" position="after"> | ||
<field name="code"/> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
|
||
</odoo> |