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
Showing
7 changed files
with
45 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -8,3 +8,6 @@ | |
from . import product_combination | ||
from . import wizard | ||
from . import product_image | ||
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import prestashop_backend |
4 changes: 4 additions & 0 deletions
4
connector_prestashop_catalog_manager/models/prestashop_backend/__init__.py
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,4 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from . import common |
15 changes: 15 additions & 0 deletions
15
connector_prestashop_catalog_manager/models/prestashop_backend/common.py
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,15 @@ | ||
# -*- coding: utf-8 -*- | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
from openerp import fields, models | ||
|
||
|
||
class PrestashopBackend(models.Model): | ||
_inherit = 'prestashop.backend' | ||
|
||
prestashop_image_to_url = fields.Boolean( | ||
string="PrestaShop Image Storage Url", | ||
help="If this field is checked, PrestaShop images are loaded by url" | ||
"instead Database", | ||
default=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
15 changes: 15 additions & 0 deletions
15
connector_prestashop_catalog_manager/views/prestashop_backend_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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<record id="view_prestashop_backend_form_inherit" model="ir.ui.view"> | ||
<field name="name">prestashop.backend.form.inherit</field> | ||
<field name="model">prestashop.backend</field> | ||
<field name="inherit_id" ref="connector_prestashop.view_prestashop_backend_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="shipping_product_id" position="after"> | ||
<field name="prestashop_image_to_url"/> | ||
</field> | ||
</field> | ||
</record> | ||
</data> | ||
</openerp> |