-
Notifications
You must be signed in to change notification settings - Fork 2
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
6 changed files
with
94 additions
and
18 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,5 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
import product_motoscoot | ||
import picking_extension | ||
import stock_inventory | ||
|
||
#import stock_fill_inventory_filter | ||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
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,34 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# OpenERP, Open Source Management Solution | ||
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as | ||
# published by the Free Software Foundation, either version 3 of the | ||
# License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Affero General Public License | ||
# along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
# | ||
############################################################################## | ||
|
||
from openerp.osv import fields, osv, orm | ||
|
||
|
||
class stock_inventory_line(osv.osv): | ||
|
||
_inherit = 'stock.inventory.line' | ||
|
||
_columns = { | ||
|
||
'inv':fields.boolean('Inventariado', help="Marcar para asegurar que el producto está inventariado"), | ||
} | ||
|
||
stock_inventory_line() |
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,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<openerp> | ||
<data> | ||
<record id="view_inventory_line_inherit" model="ir.ui.view"> | ||
<field name="name">stock.inventory.line.inh</field> | ||
<field name="model">stock.inventory.line</field> | ||
<field name="inherit_id" ref="stock.stock_inventory_line_tree"/> | ||
<field name="arch" type="xml"> | ||
<field name="product_qty" position="after"> | ||
<field name="inv" /> | ||
</field> | ||
|
||
<xpath expr="//tree[@string='Stock Inventory Lines']" position="attributes"> | ||
<attribute name="colors">#008000:inv == 'True';</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
|
||
|
||
|
||
<record id="view_inventory_line_form_inherit" model="ir.ui.view"> | ||
<field name="name">stock.inventory.line.form.inh</field> | ||
<field name="model">stock.inventory.line</field> | ||
<field name="inherit_id" ref="stock.view_inventory_line_form"/> | ||
<field name="arch" type="xml"> | ||
<field name="product_qty" position="after"> | ||
<field name="inv" /> | ||
</field> | ||
|
||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |
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