[MIG] bemade_reordering_rules_chatter to 18.0
This commit is contained in:
parent
c19f2e29e6
commit
5ec51c3554
5 changed files with 73 additions and 0 deletions
5
bemade_reordering_rules_chatter/__init__.py
Normal file
5
bemade_reordering_rules_chatter/__init__.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from . import models
|
||||
|
||||
|
||||
|
||||
22
bemade_reordering_rules_chatter/__manifest__.py
Normal file
22
bemade_reordering_rules_chatter/__manifest__.py
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
{
|
||||
"name": "Chatter on the Reordering Rules",
|
||||
"version": "18.0.0.0.1",
|
||||
"category": "Extra Tools",
|
||||
"license": "GPL-3",
|
||||
"summary": "Add chatter on the reordering rules",
|
||||
"description": """
|
||||
Add chatter on the reordering rules
|
||||
""",
|
||||
"author": "Bemade",
|
||||
"website": "https://www.bemade.org",
|
||||
"depends": [
|
||||
"stock",
|
||||
],
|
||||
"data": [
|
||||
# BV : FOR MIGRATION
|
||||
"views/stock_warehouse_orderpoint.xml",
|
||||
],
|
||||
"auto_install": False,
|
||||
"installable": True,
|
||||
}
|
||||
1
bemade_reordering_rules_chatter/models/__init__.py
Normal file
1
bemade_reordering_rules_chatter/models/__init__.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
from . import stock_warehouse_orderpoint
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
from odoo import models, fields
|
||||
|
||||
class StockWarehouseOrderpoint(models.Model):
|
||||
_name = 'stock.warehouse.orderpoint'
|
||||
_inherit = ['stock.warehouse.orderpoint', 'mail.thread', 'mail.activity.mixin']
|
||||
|
||||
name = fields.Char(tracking=True)
|
||||
trigger = fields.Selection(tracking=True)
|
||||
active = fields.Boolean(tracking=True)
|
||||
snoozed_until = fields.Date(tracking=True)
|
||||
location_id = fields.Many2one(tracking=True)
|
||||
product_tmpl_id = fields.Many2one(tracking=True)
|
||||
product_id = fields.Many2one(tracking=True)
|
||||
product_min_qty = fields.Float(tracking=True)
|
||||
product_max_qty = fields.Float(tracking=True)
|
||||
qty_multiple = fields.Float(tracking=True)
|
||||
group_id = fields.Many2one(tracking=True)
|
||||
company_id = fields.Many2one(tracking=True)
|
||||
route_id = fields.Many2one(tracking=True)
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_warehouse_orderpoint_list_editable_config_chatter" model="ir.ui.view">
|
||||
<field name="name">stock.warehouse.orderpoint.list.editable.config.chatter</field>
|
||||
<field name="model">stock.warehouse.orderpoint</field>
|
||||
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//list" position="attributes">
|
||||
<attribute name="editable"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="view_warehouse_orderpoint_form_chatter" model="ir.ui.view">
|
||||
<field name="name">stock.warehouse.orderpoint.form.chatter</field>
|
||||
<field name="model">stock.warehouse.orderpoint</field>
|
||||
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//form/sheet" position="after">
|
||||
<chatter/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Reference in a new issue