[MOV] stock_calendar: reorganize module

This commit is contained in:
Mansi Trivedi
2016-07-12 17:53:09 +02:00
committed by Thibault Delavallée
parent 1919945770
commit 61039df4b9
10 changed files with 54 additions and 44 deletions
+1 -3
View File
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import stock
import procurement
import resource
import models
+3 -1
View File
@@ -45,7 +45,9 @@
],
'data': [
'stock_calendar_view.xml'
'views/stock_views.xml',
'views/procurement_views.xml',
'views/resource_views.xml',
],
'test': [
'test/orderpoint_calendar.yml'
+6
View File
@@ -0,0 +1,6 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import procurement
import resource
import stock
@@ -1,40 +0,0 @@
<openerp>
<data>
<record id="view_warehouse_orderpoint_form_inherit" model="ir.ui.view">
<field name="name">stock.warehouse.orderpoint.form.inherit</field>
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_form"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="calendar_id"/>
<field name="purchase_calendar_id"/>
</field>
</field>
</record>
<!-- Procurement group to be used on the calendar attendance to match triggers and purchases-->
<record id="view_resource_calendar_attendance_tree_procurement_group" model="ir.ui.view">
<field name="name">resource.calendar.attendance.tree.procurement</field>
<field name="inherit_id" ref="resource.view_resource_calendar_attendance_tree"/>
<field name="model">resource.calendar.attendance</field>
<field name="arch" type="xml">
<field name="date_to" position="after">
<field name="group_id"/>
</field>
</field>
</record>
<!-- For testing purposes -->
<record id="view_procurement_form_stock_inherit" model="ir.ui.view">
<field name="name">procurement.order.form.stock.inherit</field>
<field name="model">procurement.order</field>
<field name="inherit_id" ref="procurement.procurement_form_view"/>
<field name="arch" type="xml">
<field name="state" position="before">
<button name="assign_group_date" string="Calculate dates according to Orderpoint" type="object"/>
</field>
</field>
</record>
</data>
</openerp>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- For testing purposes -->
<record id="view_procurement_form_stock_inherit" model="ir.ui.view">
<field name="name">procurement.order.form.stock.inherit</field>
<field name="model">procurement.order</field>
<field name="inherit_id" ref="procurement.procurement_form_view"/>
<field name="arch" type="xml">
<field name="state" position="before">
<button name="assign_group_date" string="Calculate dates according to Orderpoint" type="object"/>
</field>
</field>
</record>
</odoo>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Procurement group to be used on the calendar attendance to match triggers and purchases-->
<record id="view_resource_calendar_attendance_tree_procurement_group" model="ir.ui.view">
<field name="name">resource.calendar.attendance.tree.procurement</field>
<field name="inherit_id" ref="resource.view_resource_calendar_attendance_tree"/>
<field name="model">resource.calendar.attendance</field>
<field name="arch" type="xml">
<field name="date_to" position="after">
<field name="group_id"/>
</field>
</field>
</record>
</odoo>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_warehouse_orderpoint_form_inherit" model="ir.ui.view">
<field name="name">stock.warehouse.orderpoint.form.inherit</field>
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_form"/>
<field name="arch" type="xml">
<field name="company_id" position="after">
<field name="calendar_id"/>
<field name="purchase_calendar_id"/>
</field>
</field>
</record>
</data>
</openerp>