Skip to content

Commit

Permalink
ADD fs_product module
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed May 15, 2024
1 parent 6d5e29b commit 00151cb
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 0 deletions.
Empty file added fs_product/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions fs_product/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "File Storage Product",
"version": "16.0.1.0.0",
"author": "Akretion",
"category": "Product",
"depends": [
"fs_product_multi_image", # OCA/storage
],
"website": "https://github.com/akretion/ak-odoo-incubator",
"data": [
"views/product_template.xml",
],
"maintainer": ["bealdav"],
"license": "AGPL-3",
"installable": True,
}
3 changes: 3 additions & 0 deletions fs_product/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Usability additional module for File Storage module

- filters on products
23 changes: 23 additions & 0 deletions fs_product/views/product_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="product_template_search_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<filter name="favorites" position="after">
<filter
string="With Image"
name="with_image"
domain="[('main_image_id', '!=', False)]"
/>
<filter
string="Without Image"
name="without_image"
domain="[('main_image_id', '=', False)]"
/>
</filter>
</field>
</record>

</odoo>
1 change: 1 addition & 0 deletions setup/fs_product/odoo/addons/fs_product
6 changes: 6 additions & 0 deletions setup/fs_product/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 00151cb

Please sign in to comment.