[MIG] base_report_to_printer: Migrate to v11.0

This commit is contained in:
Sylvain GARANCHER
2017-10-03 17:14:08 +02:00
committed by trisdoan
parent fccad1e2ab
commit 6380ffbb37
23 changed files with 182 additions and 481 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets_backend" name="base_report_to_printer assets" inherit_id="report.assets_backend">
<template id="assets_backend" name="base_report_to_printer assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/base_report_to_printer/static/src/js/qweb_action_manager.js" />
</xpath>

View File

@@ -2,8 +2,8 @@
<odoo>
<record model="ir.ui.view" id="act_report_xml_view">
<field name="name">ir.actions.report.xml.printing</field>
<field name="model">ir.actions.report.xml</field>
<field name="name">ir.actions.report.printing</field>
<field name="model">ir.actions.report</field>
<field name="inherit_id" ref="base.act_report_xml_view" />
<field name="arch" type="xml">
<xpath expr="//page[@name='security']" position="before" >

View File

@@ -2,7 +2,7 @@
<odoo>
<menuitem name="Printing"
id="printing_menu"
id="printing_menu" sequence="1"
parent="base.menu_administration"
groups="printing_group_manager"
/>
@@ -16,20 +16,20 @@
<header>
<button name="enable" type="object" string="Enable" attrs="{'invisible': [('status', 'in', ('available', 'printing'))]}"/>
<button name="disable" type="object" string="Disable" attrs="{'invisible': [('status', '=', 'unavailable')]}"/>
<button name="action_cancel_all_jobs" type="object" string="Cancel all running jobs"/>
<button name="action_cancel_all_jobs" type="object" string="Cancel all running jobs" confirm="Are you sure to want to cancel all jobs of this printer?"/>
</header>
<div class="oe_title">
<h1>
<label for="name"/>
<field name="name"/>
</h1>
</div>
<group>
<field name="system_name"/>
</group>
<group col="3" colspan="4">
<group col="4" colspan="4">
<field name="default"/>
<button name="set_default" string="Set Default" type="object"/>
<button name="set_default" string="Set Default" type="object" attrs="{'invisible': [('default','=', True)]}"/>
<button name="unset_default" string="Unset Default" type="object" attrs="{'invisible': [('default','=', False)]}"/>
</group>
<group>
<field name="uri"/>

View File

@@ -7,9 +7,9 @@
<field name="arch" type="xml">
<form string="Report Printing Actions">
<group col="2">
<field name="user_id"/>
<field name="user_id" options="{'no_create': True}"/>
<field name="action"/>
<field name="printer_id" select="1"/>
<field name="printer_id" options="{'no_create': True}"/>
</group>
</form>
</field>
@@ -18,10 +18,10 @@
<field name="name">printing.report.xml.action.tree</field>
<field name="model">printing.report.xml.action</field>
<field name="arch" type="xml">
<tree string="Report Printing Actions">
<field name="user_id"/>
<tree string="Report Printing Actions" editable="bottom">
<field name="user_id" options="{'no_create': True}"/>
<field name="action" />
<field name="printer_id" />
<field name="printer_id" options="{'no_create': True}"/>
</tree>
</field>
</record>
@@ -30,6 +30,6 @@
<menuitem id="printing_report_xml_action_menu"
sequence="30"
parent="printing_menu"
action="base.ir_action_report_xml"/>
action="base.ir_action_report"/>
</odoo>

View File

@@ -9,7 +9,7 @@
<xpath expr="//group[@name='preferences']/ancestor::page" position="inside">
<group string="Printing" name="printing">
<field name="printing_action"/>
<field name="printing_printer_id"/>
<field name="printing_printer_id" options="{'no_create': True}"/>
</group>
</xpath>
</field>
@@ -22,8 +22,8 @@
<field name="arch" type="xml">
<footer position="before">
<group string="Printing" name="printing">
<field name="printing_action"/>
<field name="printing_printer_id"/>
<field name="printing_action" readonly="0"/>
<field name="printing_printer_id" readonly="0" options="{'no_create': True}"/>
</group>
</footer>
</field>