Skip to content

Commit

Permalink
IMP
Browse files Browse the repository at this point in the history
  • Loading branch information
dhecar committed Sep 26, 2016
1 parent 9bdb6e4 commit d95a76f
Show file tree
Hide file tree
Showing 71 changed files with 316 additions and 5,465 deletions.
1 change: 1 addition & 0 deletions adaptaciones_motoscoot/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"views/picking_extension_view.xml",
"views/partner_category_view.xml",
"views/company_view.xml",
"views/account_sale_link_view.xml",
"security/security.xml",
"security/ir.model.access.csv",
"views/restrict/product_restrict_view.xml",
Expand Down
3 changes: 2 additions & 1 deletion adaptaciones_motoscoot/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
from . import delivery_extension
from . import picking_extension
from . import res_partner_category
from . import res_company
from . import res_company
from . import account_sale_link
15 changes: 15 additions & 0 deletions adaptaciones_motoscoot/models/account_sale_link.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
from openerp.osv import orm, fields


class account_invoice(orm.Model):
_inherit = 'account.invoice'

_columns = {
# This is the reverse link of the field 'invoice_ids' of sale.order
# defined in addons/sale/sale.py
'sale_ids': fields.many2many(
'sale.order', 'sale_order_invoice_rel', 'invoice_id',
'order_id', 'Sale Orders', readonly=True,
help="This is the list of sale orders related to this invoice."),
}
1 change: 0 additions & 1 deletion adaptaciones_motoscoot/models/delivery_extension.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-


import time
from openerp.tools.translate import _
import openerp.addons.decimal_precision as dp
Expand Down
2 changes: 1 addition & 1 deletion adaptaciones_motoscoot/models/picking_extension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# import one2many_sorted
from openerp import models, fields, api, exceptions

class stock_picking(models.Model):
Expand All @@ -13,6 +12,7 @@ class stock_picking(models.Model):
carrier = fields.Many2one(related='carrier_id')
carrier_ref = fields.Char(related='carrier_tracking_ref')
paquets = fields.Integer(related='number_of_packages')
sale = fields.Many2one(related='sale_id', string='Orden Venta')

class stock_move(models.Model):
_inherit = 'stock.move'
Expand Down
21 changes: 21 additions & 0 deletions adaptaciones_motoscoot/views/account_sale_link_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>


<openerp>
<data>

<record id="invoice_form" model="ir.ui.view">
<field name="name">account_invoice_sale_link.invoice.form</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<notebook position="inside">
<page name="sale_ids" string="Sale Orders">
<field name="sale_ids"/>
</page>
</notebook>
</field>
</record>

</data>
</openerp>
1 change: 1 addition & 0 deletions adaptaciones_motoscoot/views/picking_extension_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<field name="min_date" position="after">
<field name="sale" />
<field name="carrier" />
<field name="carrier_ref" />
<field name="paquets" />
Expand Down
26 changes: 0 additions & 26 deletions motoscoot_headers/__init__.py

This file was deleted.

43 changes: 0 additions & 43 deletions motoscoot_headers/__openerp__.py

This file was deleted.

Loading

0 comments on commit d95a76f

Please sign in to comment.