Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base_import_log/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import models
from . import models
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2 changes: 1 addition & 1 deletion base_import_log/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import error_log
from . import error_log

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
4 changes: 2 additions & 2 deletions sale_order_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 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/>.

import models
import wizard
from . import models
from . import wizard

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2 changes: 1 addition & 1 deletion sale_order_import/__openerp__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'category': 'Sales Management',
'version': '8.0.1.0',
'author': 'Rooms For (Hong Kong) T/A OSCG',
'depends': ['sale_stock', 'base_import_log', 'account_voucher'],
'depends': ['sale_stock', 'base_import_log', 'account_voucher','sale_management'],
'website': 'www.openerp-asia.net',
'description': """
Imports sales data and processes the following:
Expand Down
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions sale_order_import/doc/sale_imort_test.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Group,Customer,Line Product,Line Description,Line Unit Price,Line Qty,Line Tax,Notes,Pricelist,Warehouse,Picking Policy,Order Policy
a,Agrolait,DVD,ニンテンドー3DS シルバー,16000,1,Tax 15.00%,,Public Pricelist,YourCompany,Deliver each product when available,On Demand
a,Agrolait,HEAD,東芝 ロボット掃除機 トルネオ ロボ イエロー VC-RVD1-R,58000,1,Tax 15.00%,,Public Pricelist,YourCompany,Deliver each product when available,On Demand
b,China Export,LAP-E5,PANASONIC MC-RX1S-W レッド RULO(ルーロ) [ロボット掃除機],75000,1,Tax 15.00%,,Public Pricelist,YourCompany,Deliver each product when available,On Demand
c,Best Designers,HEAD,東芝 ロボット掃除機 トルネオ ロボ イエロー VC-RVD1-R,58000,1,Tax 15.00%,,Public Pricelist,YourCompany,Deliver each product when available,On Demand
4 changes: 2 additions & 2 deletions sale_order_import/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 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/>.

import sale
import sale_import_default
from . import sale
from . import sale_import_default

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2 changes: 1 addition & 1 deletion sale_order_import/views/sale_import_default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</record>

<menuitem id="sale_import_default_menu" name="Sale Import Defaults" parent="base_import_log.import_data_config"
action="sale_import_default_action" sequence="10" groups="base.group_sale_salesman_all_leads"/>
action="sale_import_default_action" sequence="10" groups="sales_team.group_sale_salesman_all_leads"/>

</data>
</openerp>
2 changes: 1 addition & 1 deletion sale_order_import/wizard/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
#
##############################################################################

import import_sale
from . import import_sale

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
262 changes: 153 additions & 109 deletions sale_order_import/wizard/import_sale.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions sale_order_import/wizard/import_sale_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
<field name="model">error.log</field>
<field name="inherit_id" ref="base_import_log.import_error_log_form"/>
<field name="arch" type="xml">
<page string="Error Logs" position="after">
<page string="Sale Orders" attrs="{'invisible': [('model_name', '!=', 'sale.order')]}">
<!-- <page string="Error Logs" position="after"-->
<xpath expr="//form/sheet/notebook/page" position="after">
<page name="sales_orders" string="Sale Orders" attrs="{'invisible': [('model_name', '!=', 'sale.order')]}">
<group>
<div><field name="sale_order_ids" colspan="3" nolabel="1"/></div>
</group>
</page>
</page>
</xpath>
</field>
</record>

Expand Down