Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
odoo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-foodcoops
odoo
Commits
704d1e6a
Commit
704d1e6a
authored
Feb 21, 2023
by
root
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#4213 : set indicative_package = True as default value for product_supplierinfo
parent
e1eb9bac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
__init__.py
lacagette_addons/cagette_product/models/__init__.py
+1
-1
product_supplierinfo.py
...tte_addons/cagette_product/models/product_supplierinfo.py
+12
-0
No files found.
lacagette_addons/cagette_product/models/__init__.py
View file @
704d1e6a
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
.
import
product_product
,
product_template
from
.
import
product_product
,
product_template
,
product_supplierinfo
lacagette_addons/cagette_product/models/product_supplierinfo.py
0 → 100644
View file @
704d1e6a
# -*- encoding: utf-8 -*-
from
openerp
import
models
,
fields
,
api
class
ProductSupplierInfo
(
models
.
Model
):
_inherit
=
"product.supplierinfo"
@api.model
def
default_get
(
self
,
fields
):
res
=
super
(
ProductSupplierInfo
,
self
)
.
default_get
(
fields
)
res
[
'indicative_package'
]
=
True
return
res
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment